1. 26 Aug, 2024 3 commits
    • Jakub Kicinski's avatar
      Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · e540e3bc
      Jakub Kicinski authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2024-08-23
      
      We've added 10 non-merge commits during the last 15 day(s) which contain
      a total of 10 files changed, 222 insertions(+), 190 deletions(-).
      
      The main changes are:
      
      1) Add TCP_BPF_SOCK_OPS_CB_FLAGS to bpf_*sockopt() to address the case
         when long-lived sockets miss a chance to set additional callbacks
         if a sockops program was not attached early in their lifetime,
         from Alan Maguire.
      
      2) Add a batch of BPF selftest improvements which fix a few bugs and add
         missing features to improve the test coverage of sockmap/sockhash,
         from Michal Luczaj.
      
      3) Fix a false-positive Smatch-reported off-by-one in tcp_validate_cookie()
         which is part of the test_tcp_custom_syncookie BPF selftest,
         from Kuniyuki Iwashima.
      
      4) Fix the flow_dissector BPF selftest which had a bug in IP header's
         tot_len calculation doing subtraction after htons() instead of inside
         htons(), from Asbjørn Sloth Tønnesen.
      
      * tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next:
        selftest: bpf: Remove mssind boundary check in test_tcp_custom_syncookie.c.
        selftests/bpf: Introduce __attribute__((cleanup)) in create_pair()
        selftests/bpf: Exercise SOCK_STREAM unix_inet_redir_to_connected()
        selftests/bpf: Honour the sotype of af_unix redir tests
        selftests/bpf: Simplify inet_socketpair() and vsock_socketpair_connectible()
        selftests/bpf: Socket pair creation, cleanups
        selftests/bpf: Support more socket types in create_pair()
        selftests/bpf: Avoid subtraction after htons() in ipip tests
        selftests/bpf: add sockopt tests for TCP_BPF_SOCK_OPS_CB_FLAGS
        bpf/bpf_get,set_sockopt: add option to set TCP-BPF sock ops flags
      ====================
      
      Link: https://patch.msgid.link/20240823134959.1091-1-daniel@iogearbox.netSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e540e3bc
    • Jakub Kicinski's avatar
      Merge tag 'nf-next-24-08-23' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next · b2ede25b
      Jakub Kicinski authored
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter updates for net-next
      
      The following batch contains Netfilter updates for net-next:
      
      Patch #1 fix checksum calculation in nfnetlink_queue with SCTP,
      	 segment GSO packet since skb_zerocopy() does not support
      	 GSO_BY_FRAGS, from Antonio Ojea.
      
      Patch #2 extend nfnetlink_queue coverage to handle SCTP packets,
      	 from Antonio Ojea.
      
      Patch #3 uses consume_skb() instead of kfree_skb() in nfnetlink,
               from Donald Hunter.
      
      Patch #4 adds a dedicate commit list for sets to speed up
      	 intra-transaction lookups, from Florian Westphal.
      
      Patch #5 skips removal of element from abort path for the pipapo
               backend, ditching the shadow copy of this datastructure
      	 is sufficient.
      
      Patch #6 moves nf_ct_netns_get() out of nf_conncount_init() to
      	 let users of conncoiunt decide when to enable conntrack,
      	 this is needed by openvswitch, from Xin Long.
      
      Patch #7 pass context to all nft_parse_register_load() in
      	 preparation for the next patch.
      
      Patches #8 and #9 reject loads from uninitialized registers from
      	 control plane to remove register initialization from
      	 datapath. From Florian Westphal.
      
      * tag 'nf-next-24-08-23' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next:
        netfilter: nf_tables: don't initialize registers in nft_do_chain()
        netfilter: nf_tables: allow loads only when register is initialized
        netfilter: nf_tables: pass context structure to nft_parse_register_load
        netfilter: move nf_ct_netns_get out of nf_conncount_init
        netfilter: nf_tables: do not remove elements if set backend implements .abort
        netfilter: nf_tables: store new sets in dedicated list
        netfilter: nfnetlink: convert kfree_skb to consume_skb
        selftests: netfilter: nft_queue.sh: sctp coverage
        netfilter: nfnetlink_queue: unbreak SCTP traffic
      ====================
      
      Link: https://patch.msgid.link/20240822221939.157858-1-pablo@netfilter.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      b2ede25b
    • Christophe JAILLET's avatar
      net: netlink: Remove the dump_cb_mutex field from struct netlink_sock · 18aaa82b
      Christophe JAILLET authored
      Commit 5fbf57a9 ("net: netlink: remove the cb_mutex "injection" from
      netlink core") has removed the usage of the 'dump_cb_mutex' field from the
      struct netlink_sock.
      
      Remove the field itself now. It saves a few bytes in the structure.
      Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      18aaa82b
  2. 24 Aug, 2024 1 commit
  3. 23 Aug, 2024 27 commits
  4. 22 Aug, 2024 9 commits