]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: gro: remove is_ipv6 from napi_gro_cb
authorRichard Gobert <richardbgobert@gmail.com>
Tue, 23 Sep 2025 08:59:04 +0000 (10:59 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 25 Sep 2025 10:42:49 +0000 (12:42 +0200)
commit25c550464acd40803d63868dfa4a42506df48b88
treee3a22243b7cdf4ace367053738e2e56310919393
parentbb6a22651b893c08c7855b34aa618b2a71bece9e
net: gro: remove is_ipv6 from napi_gro_cb

Remove is_ipv6 from napi_gro_cb and use sk->sk_family instead.
This frees up space for another ip_fixedid bit that will be added
in the next commit.

udp_sock_create always creates either a AF_INET or a AF_INET6 socket,
so using sk->sk_family is reliable. In IPv6-FOU, cfg->ipv6_v6only is
always enabled.

Signed-off-by: Richard Gobert <richardbgobert@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250923085908.4687-2-richardbgobert@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/gro.h
net/ipv4/fou_core.c
net/ipv4/udp_offload.c
net/ipv6/udp_offload.c