1. 26 Dec, 2023 4 commits
  2. 25 Dec, 2023 1 commit
  3. 23 Dec, 2023 30 commits
  4. 22 Dec, 2023 5 commits
    • Dmitry Safonov's avatar
      selftest/tcp-ao: Rectify out-of-tree build · 826eb9bc
      Dmitry Safonov authored
      Trivial fix for out-of-tree build that I wasn't testing previously:
      
      1. Create a directory for library object files, fixes:
      > gcc lib/kconfig.c -Wall -O2 -g -D_GNU_SOURCE -fno-strict-aliasing -I ../../../../../usr/include/ -iquote /tmp/kselftest/kselftest/net/tcp_ao/lib -I ../../../../include/  -o /tmp/kselftest/kselftest/net/tcp_ao/lib/kconfig.o -c
      > Assembler messages:
      > Fatal error: can't create /tmp/kselftest/kselftest/net/tcp_ao/lib/kconfig.o: No such file or directory
      > make[1]: *** [Makefile:46: /tmp/kselftest/kselftest/net/tcp_ao/lib/kconfig.o] Error 1
      
      2. Include $(KHDR_INCLUDES) that's exported by selftests/Makefile, fixes:
      > In file included from lib/kconfig.c:6:
      > lib/aolib.h:320:45: warning: ‘struct tcp_ao_add’ declared inside parameter list will not be visible outside of this definition or declaration
      >   320 | extern int test_prepare_key_sockaddr(struct tcp_ao_add *ao, const char *alg,
      >       |                                             ^~~~~~~~~~
      ...
      
      3. While at here, clean-up $(KSFT_KHDR_INSTALL): it's not needed anymore
         since commit f2745dc0 ("selftests: stop using KSFT_KHDR_INSTALL")
      
      4. Also, while at here, drop .DEFAULT_GOAL definition: that has a
         self-explaining comment, that was valid when I made these selftests
         compile on local v4.19 kernel, but not needed since
         commit 8ce72dc3 ("selftests: fix headers_install circular dependency")
      
      Fixes: cfbab37b ("selftests/net: Add TCP-AO library")
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Closes: https://lore.kernel.org/oe-kbuild-all/202312190645.q76MmHyq-lkp@intel.com/Signed-off-by: default avatarDmitry Safonov <dima@arista.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      826eb9bc
    • Jonathan Corbet's avatar
      tipc: Remove some excess struct member documentation · 45248f29
      Jonathan Corbet authored
      Remove documentation for nonexistent struct members, addressing these
      warnings:
      
        ./net/tipc/link.c:228: warning: Excess struct member 'media_addr' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'timer' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'refcnt' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'proto_msg' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'pmsg' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'backlog_limit' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'exp_msg_count' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'reset_rcv_checkpt' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'transmitq' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'snt_nxt' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'deferred_queue' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'unacked_window' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'next_out' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'long_msg_seq_no' description in 'tipc_link'
        ./net/tipc/link.c:228: warning: Excess struct member 'bc_rcvr' description in 'tipc_link'
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      45248f29
    • Jonathan Corbet's avatar
      net: skbuff: Remove some excess struct-member documentation · dcc3e464
      Jonathan Corbet authored
      Remove documentation for nonexistent structure members, addressing these
      warnings:
      
        ./include/linux/skbuff.h:1063: warning: Excess struct member 'sp' description in 'sk_buff'
        ./include/linux/skbuff.h:1063: warning: Excess struct member 'nf_bridge' description in 'sk_buff'
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      dcc3e464
    • David S. Miller's avatar
      Merge branch 'tcp-refactor-bhash2' · 5f123035
      David S. Miller authored
      Kuniyuki Iwashima says:
      
      ====================
      tcp: Refactor bhash2 and remove sk_bind2_node.
      
      This series refactors code around bhash2 and remove some bhash2-specific
      fields; sock.sk_bind2_node, and inet_timewait_sock.tw_bind2_node.
      
        patch 1      : optimise bind() for non-wildcard v4-mapped-v6 address
        patch 2 -  4 : optimise bind() conflict tests
        patch 5 - 12 : Link bhash2 to bhash and unlink sk from bhash2 to
                       remove sk_bind2_node
      
      The patch 8 will trigger a false-positive error by checkpatch.
      
      v2: resend of https://lore.kernel.org/netdev/20231213082029.35149-1-kuniyu@amazon.com/
        * Rebase on latest net-next
        * Patch 11
          * Add change in inet_diag_dump_icsk() for recent bhash dump patch
      
      v1: https://lore.kernel.org/netdev/20231023190255.39190-1-kuniyu@amazon.com/
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5f123035
    • Kuniyuki Iwashima's avatar
      tcp: Remove dead code and fields for bhash2. · 8191792c
      Kuniyuki Iwashima authored
      Now all sockets including TIME_WAIT are linked to bhash2 using
      sock_common.skc_bind_node.
      
      We no longer use inet_bind2_bucket.deathrow, sock.sk_bind2_node,
      and inet_timewait_sock.tw_bind2_node.
      Signed-off-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
      Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8191792c