diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-05-19 15:30:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-22 12:22:58 +0200 |
commit | fe79bd65c819cc520aa66de65caae8e4cea29c5a (patch) | |
tree | 33015363adb396d45edc5e721ab5938fef7be794 /drivers/net | |
parent | net: phy: add helpers for comparing phy IDs (diff) | |
download | linux-fe79bd65c819cc520aa66de65caae8e4cea29c5a.tar.xz linux-fe79bd65c819cc520aa66de65caae8e4cea29c5a.zip |
net/tcp: refactor tcp_inet6_sk()
Don't keep hand coded offset caluclations and replace it with
container_of(). It should be type safer and a bit less confusing.
It also makes it with a macro instead of inline function to preserve
constness, which was previously casted out like in case of
tcp_v6_send_synack().
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions