net: Add netif_get_gro_max_size helper for GRO
[ Upstream commit e8d4d34d ] Add a small netif_get_gro_max_size() helper which returns the maximum IPv4 or IPv6 GRO size of the netdevice. We later add a netif_get_gso_max_size() equivalent as well for GSO, so that these helpers can be used consistently instead of open-coded checks. Signed-off-by:Daniel Borkmann <daniel@iogearbox.net> Cc: Eric Dumazet <edumazet@google.com> Cc: Paolo Abeni <pabeni@redhat.com> Reviewed-by:
Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20240923212242.15669-1-daniel@iogearbox.net Signed-off-by:
Paolo Abeni <pabeni@redhat.com> Stable-dep-of: e609c959 ("net: Fix gso_features_check to check for both dev->gso_{ipv4_,}max_size") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment