datapath: backport: udp: Add socket based GRO and config
[cascardo/ovs.git] / datapath / linux / compat / udp_tunnel.c
index daa3fa1..0ad3c2a 100644 (file)
@@ -132,6 +132,10 @@ void rpl_setup_udp_tunnel_sock(struct net *net, struct socket *sock,
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)
        udp_sk(sk)->encap_destroy = cfg->encap_destroy;
 #endif
+#ifdef HAVE_UDP_TUNNEL_SOCK_CFG_GRO_RECEIVE
+       udp_sk(sk)->gro_receive = cfg->gro_receive;
+       udp_sk(sk)->gro_complete = cfg->gro_complete;
+#endif
 
        udp_tunnel_encap_enable(sock);
 }