-
- Downloads
net: allow gro_max_size to exceed 65536
Allow the gro_max_size to exceed a value larger than 65536. There weren't really any external limitations that prevented this other than the fact that IPv4 only supports a 16 bit length field. Since we have the option of adding a hop-by-hop header for IPv6 we can allow IPv6 to exceed this value and for IPv4 and non-TCP flows we can cap things at 65536 via a constant rather than relying on gro_max_size. [edumazet] limit GRO_MAX_SIZE to (8 * 65535) to avoid overflows. Signed-off-by:Alexander Duyck <alexanderduyck@fb.com> Signed-off-by:
Eric Dumazet <edumazet@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c 1 addition, 1 deletiondrivers/net/ethernet/mellanox/mlx5/core/en_rx.c
- include/linux/netdevice.h 5 additions, 1 deletioninclude/linux/netdevice.h
- include/net/ipv6.h 1 addition, 1 deletioninclude/net/ipv6.h
- net/core/dev.c 1 addition, 1 deletionnet/core/dev.c
- net/core/gro.c 8 additions, 0 deletionsnet/core/gro.c
- net/core/rtnetlink.c 0 additions, 8 deletionsnet/core/rtnetlink.c
Loading
Please register or sign in to comment