1. 21 Mar, 2023 14 commits
  2. 20 Mar, 2023 15 commits
  3. 19 Mar, 2023 9 commits
  4. 18 Mar, 2023 2 commits
    • David S. Miller's avatar
      Merge branch 'net-better-const' · df28e869
      David S. Miller authored
      Eric Dumazet says:
      
      ====================
      net: better const qualifier awareness
      
      This is a follow-up of d27d367d ("inet: better const qualifier awareness")
      
      Adopting container_of_const() to perform (struct sock *)->(protocol sock *)
      operation is allowing us to propagate const qualifier and thus detect
      misuses at compile time.
      
      Most conversions are trivial, because most protocols did not adopt yet
      const sk pointers where it could make sense.
      
      Only mptcp and tcp patches (end of this series) are requiring small
      adjustments.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      df28e869
    • Eric Dumazet's avatar
      tcp: preserve const qualifier in tcp_sk() · e9d9da91
      Eric Dumazet authored
      We can change tcp_sk() to propagate its argument const qualifier,
      thanks to container_of_const().
      
      We have two places where a const sock pointer has to be upgraded
      to a write one. We have been using const qualifier for lockless
      listeners to clearly identify points where writes could happen.
      
      Add tcp_sk_rw() helper to better document these.
      
      tcp_inbound_md5_hash(), __tcp_grow_window(), tcp_reset_check()
      and tcp_rack_reo_wnd() get an additional const qualififer
      for their @tp local variables.
      
      smc_check_reset_syn_req() also needs a similar change.
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e9d9da91