diff options
author | Tom Herbert <tom@herbertland.com> | 2016-04-05 11:22:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-07 16:53:29 -0400 |
commit | 38fd2af24fcfda93f9fea3e53f26e48775ae9e09 (patch) | |
tree | fbc6732f03f34c49e3754cc0c084ecf665631c3f /include/net/udp_tunnel.h | |
parent | a6024562ffd7e0f31bc6671817840ad1e91de7b4 (diff) |
udp: Add socket based GRO and config
Add gro_receive and gro_complete to struct udp_tunnel_sock_cfg.
Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/udp_tunnel.h')
-rw-r--r-- | include/net/udp_tunnel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/udp_tunnel.h b/include/net/udp_tunnel.h index b83114077cee..2dcf1de948ac 100644 --- a/include/net/udp_tunnel.h +++ b/include/net/udp_tunnel.h | |||
@@ -64,6 +64,11 @@ static inline int udp_sock_create(struct net *net, | |||
64 | 64 | ||
65 | typedef int (*udp_tunnel_encap_rcv_t)(struct sock *sk, struct sk_buff *skb); | 65 | typedef int (*udp_tunnel_encap_rcv_t)(struct sock *sk, struct sk_buff *skb); |
66 | typedef void (*udp_tunnel_encap_destroy_t)(struct sock *sk); | 66 | typedef void (*udp_tunnel_encap_destroy_t)(struct sock *sk); |
67 | typedef struct sk_buff **(*udp_tunnel_gro_receive_t)(struct sock *sk, | ||
68 | struct sk_buff **head, | ||
69 | struct sk_buff *skb); | ||
70 | typedef int (*udp_tunnel_gro_complete_t)(struct sock *sk, struct sk_buff *skb, | ||
71 | int nhoff); | ||
67 | 72 | ||
68 | struct udp_tunnel_sock_cfg { | 73 | struct udp_tunnel_sock_cfg { |
69 | void *sk_user_data; /* user data used by encap_rcv call back */ | 74 | void *sk_user_data; /* user data used by encap_rcv call back */ |
@@ -71,6 +76,8 @@ struct udp_tunnel_sock_cfg { | |||
71 | __u8 encap_type; | 76 | __u8 encap_type; |
72 | udp_tunnel_encap_rcv_t encap_rcv; | 77 | udp_tunnel_encap_rcv_t encap_rcv; |
73 | udp_tunnel_encap_destroy_t encap_destroy; | 78 | udp_tunnel_encap_destroy_t encap_destroy; |
79 | udp_tunnel_gro_receive_t gro_receive; | ||
80 | udp_tunnel_gro_complete_t gro_complete; | ||
74 | }; | 81 | }; |
75 | 82 | ||
76 | /* Setup the given (UDP) sock to receive UDP encapsulated packets */ | 83 | /* Setup the given (UDP) sock to receive UDP encapsulated packets */ |