]> git.baikalelectronics.ru Git - kernel.git/commit
fou: eliminate IPv4,v6 specific GRO functions
authorTom Herbert <therbert@google.com>
Fri, 3 Oct 2014 22:48:08 +0000 (15:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Oct 2014 23:53:32 +0000 (16:53 -0700)
commit0dc61818c4b5fea4d8c9c1b02d796edaf80738ad
tree59358c5df14d19067e5562d0d37c272156b0c221
parent8d3f4d4b6668d0f4c0be9791dca577b9311f8be0
fou: eliminate IPv4,v6 specific GRO functions

This patch removes fou[46]_gro_receive and fou[46]_gro_complete
functions. The v4 or v6 variants were chosen for the UDP offloads
based on the address family of the socket this is not necessary
or correct. Alternatively, this patch adds is_ipv6 to napi_gro_skb.
This is set in udp6_gro_receive and unset in udp4_gro_receive. In
fou_gro_receive the value is used to select the correct inet_offloads
for the protocol of the outer IP header.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/ipv4/fou.c
net/ipv4/udp_offload.c
net/ipv6/udp_offload.c