]> git.baikalelectronics.ru Git - kernel.git/commit
gso: Remove arbitrary checks for unsupported GSO
authorTom Herbert <tom@herbertland.com>
Wed, 18 May 2016 16:06:09 +0000 (09:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 May 2016 22:03:15 +0000 (18:03 -0400)
commit1e9bf971f52189fd3d8f60f9590e22c4df24c42e
tree52b8e3c7b4e57e1379d24587023083302af9ce4c
parent25d0ede46c825f996eaf71dc0198337c72ebcc21
gso: Remove arbitrary checks for unsupported GSO

In several gso_segment functions there are checks of gso_type against
a seemingly arbitrary list of SKB_GSO_* flags. This seems like an
attempt to identify unsupported GSO types, but since the stack is
the one that set these GSO types in the first place this seems
unnecessary to do. If a combination isn't valid in the first
place that stack should not allow setting it.

This is a code simplication especially for add new GSO types.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
net/ipv4/gre_offload.c
net/ipv4/tcp_offload.c
net/ipv4/udp_offload.c
net/ipv6/ip6_offload.c
net/ipv6/udp_offload.c
net/mpls/mpls_gso.c