aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2023-07-20 11:09:01 +0000
committerDavid S. Miller <[email protected]>2023-07-24 08:39:31 +0000
commitf5f80e32de12fad2813d37270e8364a03e6d3ef0 (patch)
tree40646cf495a3ae868afc96d9d63fba08834be509 /drivers/net/ethernet/intel/ice/ice_main.c
parentnet: add sysctl accept_ra_min_rtr_lft (diff)
downloadkernel-f5f80e32de12fad2813d37270e8364a03e6d3ef0.tar.gz
kernel-f5f80e32de12fad2813d37270e8364a03e6d3ef0.zip
ipv6: remove hard coded limitation on ipv6_pinfo
IPv6 inet sockets are supposed to have a "struct ipv6_pinfo" field at the end of their definition, so that inet6_sk_generic() can derive from socket size the offset of the "struct ipv6_pinfo". This is very fragile, and prevents adding bigger alignment in sockets, because inet6_sk_generic() does not work if the compiler adds padding after the ipv6_pinfo component. We are currently working on a patch series to reorganize TCP structures for better data locality and found issues similar to the one fixed in commit f5d547676ca0 ("tcp: fix tcp_inet6_sk() for 32bit kernels") Alternative would be to force an alignment on "struct ipv6_pinfo", greater or equal to __alignof__(any ipv6 sock) to ensure there is no padding. This does not look great. v2: fix typo in mptcp_proto_v6_init() (Paolo) Signed-off-by: Eric Dumazet <[email protected]> Cc: Chao Wu <[email protected]> Cc: Wei Wang <[email protected]> Cc: Coco Li <[email protected]> Cc: YiFei Zhu <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions