udp: pass udp_offload struct to UDP gro callbacks
authorTom Herbert <therbert@google.com>
Tue, 13 Jan 2015 01:00:37 +0000 (17:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jan 2015 20:20:04 +0000 (15:20 -0500)
commita2b12f3c7ac1ea43ae646db74faf0b56c2bba563
tree4d2e38b8b963db38a3cff21ec16cf2e4e16a27ed
parentd823ab68fbb0fa504a2490bd499ac921bdf497d8
udp: pass udp_offload struct to UDP gro callbacks

This patch introduces udp_offload_callbacks which has the same
GRO functions (but not a GSO function) as offload_callbacks,
except there is an argument to a udp_offload struct passed to
gro_receive and gro_complete functions. This additional argument
can be used to retrieve the per port structure of the encapsulation
for use in gro processing (mostly by doing container_of on the
structure).

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