]> www.infradead.org Git - users/hch/dma-mapping.git/commit
net: Add netif_get_gro_max_size helper for GRO
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 23 Sep 2024 21:22:41 +0000 (23:22 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 1 Oct 2024 08:48:51 +0000 (10:48 +0200)
commite8d4d34df715133c319fabcf63fdec684be75ff8
treecffeb3608883c041a82159859b8c6f900127f9b4
parent6c24a03a61a245fe34d47582898331fa034b6ccd
net: Add netif_get_gro_max_size helper for GRO

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>
include/linux/netdevice.h
net/core/gro.c