diff options
author | Tom Herbert <therbert@google.com> | 2015-01-12 17:00:37 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-14 15:20:04 -0500 |
commit | a2b12f3c7ac1ea43ae646db74faf0b56c2bba563 (patch) | |
tree | 4d2e38b8b963db38a3cff21ec16cf2e4e16a27ed /net/ipv4/geneve.c | |
parent | d823ab68fbb0fa504a2490bd499ac921bdf497d8 (diff) | |
download | linux-a2b12f3c7ac1ea43ae646db74faf0b56c2bba563.tar.bz2 |
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>
Diffstat (limited to 'net/ipv4/geneve.c')
-rw-r--r-- | net/ipv4/geneve.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/geneve.c b/net/ipv4/geneve.c index 23744c7a9718..9568594ca2f1 100644 --- a/net/ipv4/geneve.c +++ b/net/ipv4/geneve.c @@ -147,7 +147,8 @@ static int geneve_hlen(struct genevehdr *gh) } static struct sk_buff **geneve_gro_receive(struct sk_buff **head, - struct sk_buff *skb) + struct sk_buff *skb, + struct udp_offload *uoff) { struct sk_buff *p, **pp = NULL; struct genevehdr *gh, *gh2; @@ -211,7 +212,8 @@ out: return pp; } -static int geneve_gro_complete(struct sk_buff *skb, int nhoff) +static int geneve_gro_complete(struct sk_buff *skb, int nhoff, + struct udp_offload *uoff) { struct genevehdr *gh; struct packet_offload *ptype; |