Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3845ccea authored by Anjali Singhai Jain's avatar Anjali Singhai Jain Committed by Jeff Kirsher
Browse files

i40e: Enable Geneve offload for FW API ver > 1.4 for XL710/X710 devices



This patch enables the Capability for XL710/X710 devices with FW API
version higher than 1.4 to do geneve Rx offload.

Change-ID: I9a8f87772c48d7d67dc85e3701d2e0b845034c0b
Signed-off-by: default avatarAnjali Singhai Jain <anjali.singhai@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent afb8ece4
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -9158,6 +9158,12 @@ static int i40e_config_netdev(struct i40e_vsi *vsi)
					I40E_VLAN_ANY, false, true);
					I40E_VLAN_ANY, false, true);
			spin_unlock_bh(&vsi->mac_filter_list_lock);
			spin_unlock_bh(&vsi->mac_filter_list_lock);
		}
		}
	} else if ((pf->hw.aq.api_maj_ver > 1) ||
		   ((pf->hw.aq.api_maj_ver == 1) &&
		    (pf->hw.aq.api_min_ver > 4))) {
		/* Supported in FW API version higher than 1.4 */
		pf->flags |= I40E_FLAG_GENEVE_OFFLOAD_CAPABLE;
		pf->auto_disable_flags = I40E_FLAG_HW_ATR_EVICT_CAPABLE;
	} else {
	} else {
		/* relate the VSI_VMDQ name to the VSI_MAIN name */
		/* relate the VSI_VMDQ name to the VSI_MAIN name */
		snprintf(netdev->name, IFNAMSIZ, "%sv%%d",
		snprintf(netdev->name, IFNAMSIZ, "%sv%%d",