enic: drop IP proto check for vxlan tunnel delete
authorGovindarajulu Varadarajan <gvaradar@cisco.com>
Tue, 13 Mar 2018 12:24:33 +0000 (05:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2018 13:50:40 +0000 (09:50 -0400)
commitce3db6aade20e0aef88878ef65f3e066175bf3bc
treeb79be908d4727739d61128ce060c4837aaa70c2f
parent650b4eca47399420a1644056c41b66735e250d35
enic: drop IP proto check for vxlan tunnel delete

Commit d11790941dd3 ("enic: Add vxlan offload support for IPv6 pkts")
added vxlan offload support for IPv6 pkts. Required change in
enic_udp_tunnel_del was not made. This creates a bug where once user
adds IPv6 tunnel, hw offload for that cannot be deleted.

This patch removes check for IP proto in tunnel delete path. Driver need
not check for IP proto since same UDP port cannot be used to create two
tunnels.

Fixes: d11790941dd3 ("enic: Add vxlan offload support for IPv6 pkts")
Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_main.c