OSDN Git Service

net: check UDP tunnel RX port offload feature before calling tunnel ndo ndo
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 21 Jul 2017 10:49:29 +0000 (12:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jul 2017 20:52:59 +0000 (13:52 -0700)
commit7a27fc6d536b36a29c0ed4bfff7035420f4df216
treea3633eddac899dba0e748d375f3906d61e5765cf
parentd764a122cc7af7ab1c40c08745f0fcd33cc2f7db
net: check UDP tunnel RX port offload feature before calling tunnel ndo ndo

If NETIF_F_RX_UDP_TUNNEL_PORT was disabled on a given netdevice, skip
the tunnel offload ndo call during tunnel port creation and deletion.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp_tunnel.c