Skip to content

Commit 3845cce

Browse files
anjalisinghai1Jeff Kirsher
authored andcommitted
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: Anjali Singhai Jain <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent afb8ece commit 3845cce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9158,6 +9158,12 @@ static int i40e_config_netdev(struct i40e_vsi *vsi)
91589158
I40E_VLAN_ANY, false, true);
91599159
spin_unlock_bh(&vsi->mac_filter_list_lock);
91609160
}
9161+
} else if ((pf->hw.aq.api_maj_ver > 1) ||
9162+
((pf->hw.aq.api_maj_ver == 1) &&
9163+
(pf->hw.aq.api_min_ver > 4))) {
9164+
/* Supported in FW API version higher than 1.4 */
9165+
pf->flags |= I40E_FLAG_GENEVE_OFFLOAD_CAPABLE;
9166+
pf->auto_disable_flags = I40E_FLAG_HW_ATR_EVICT_CAPABLE;
91619167
} else {
91629168
/* relate the VSI_VMDQ name to the VSI_MAIN name */
91639169
snprintf(netdev->name, IFNAMSIZ, "%sv%%d",

0 commit comments

Comments
 (0)