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>
This commit is contained in:
parent
a6024562ff
commit
38fd2af24f
2 changed files with 9 additions and 0 deletions
|
@ -69,6 +69,8 @@ void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
|
|||
udp_sk(sk)->encap_type = cfg->encap_type;
|
||||
udp_sk(sk)->encap_rcv = cfg->encap_rcv;
|
||||
udp_sk(sk)->encap_destroy = cfg->encap_destroy;
|
||||
udp_sk(sk)->gro_receive = cfg->gro_receive;
|
||||
udp_sk(sk)->gro_complete = cfg->gro_complete;
|
||||
|
||||
udp_tunnel_encap_enable(sock);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue