]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i40e: Do not drop support for IPv6 VXLAN or GENEVE tunnels
authorAlexander Duyck <aduyck@mirantis.com>
Mon, 25 Jan 2016 05:17:43 +0000 (21:17 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:37:41 +0000 (08:37 -0800)
Orabug: 22342532

All of the documentation in the datasheets for the XL710 do not call out
any reason to exclude support for IPv6 based tunnels.  As such I am
dropping the code that was excluding these tunnel types from having their
port numbers recognized.  This way we can take advantage of things such as
checksum offload for inner headers over IPv6 based VXLAN or GENEVE
tunnels.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 84d5946d49cf9552d0f1740ad62d0f126cb3b6a9)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index f5240afe9a8c8ac6f443c66246d4337271a6ff2f..e18fa88cde147c72b1f4683a055315c0d005569a 100644 (file)
@@ -8571,9 +8571,6 @@ static void i40e_add_vxlan_port(struct net_device *netdev,
        u8 next_idx;
        u8 idx;
 
-       if (sa_family == AF_INET6)
-               return;
-
        idx = i40e_get_udp_port_idx(pf, port);
 
        /* Check if port already exists */
@@ -8613,9 +8610,6 @@ static void i40e_del_vxlan_port(struct net_device *netdev,
        struct i40e_pf *pf = vsi->back;
        u8 idx;
 
-       if (sa_family == AF_INET6)
-               return;
-
        idx = i40e_get_udp_port_idx(pf, port);
 
        /* Check if port already exists */
@@ -8652,9 +8646,6 @@ static void i40e_add_geneve_port(struct net_device *netdev,
        if (!(pf->flags & I40E_FLAG_GENEVE_OFFLOAD_CAPABLE))
                return;
 
-       if (sa_family == AF_INET6)
-               return;
-
        idx = i40e_get_udp_port_idx(pf, port);
 
        /* Check if port already exists */
@@ -8696,9 +8687,6 @@ static void i40e_del_geneve_port(struct net_device *netdev,
        struct i40e_pf *pf = vsi->back;
        u8 idx;
 
-       if (sa_family == AF_INET6)
-               return;
-
        if (!(pf->flags & I40E_FLAG_GENEVE_OFFLOAD_CAPABLE))
                return;