summaryrefslogtreecommitdiff
path: root/drivers/net/i40e/rte_pmd_i40e.c
diff options
context:
space:
mode:
authorHaiyue Wang <haiyue.wang@intel.com>2018-10-22 15:47:41 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-26 22:14:06 +0200
commit2c6d4f0338efc2134efc55a574f73ac481b323b4 (patch)
treead54e0faee2ea2dd11e4ace5e99f2dafe603473f /drivers/net/i40e/rte_pmd_i40e.c
parentd0dd0cf06135ec043c587bf14b66ec55adde876a (diff)
downloaddpdk-2c6d4f0338efc2134efc55a574f73ac481b323b4.zip
dpdk-2c6d4f0338efc2134efc55a574f73ac481b323b4.tar.gz
dpdk-2c6d4f0338efc2134efc55a574f73ac481b323b4.tar.xz
net/i40e: enable loopback function for X722 MAC
In FVL, there was an issue and it didn't support the loopback function before FW 5.0. For FPK (X722) it should work. So it needs to distinguish between the devices by checking MAC type. Fixes: 689bba33272d ("i40e: add VEB switching support") Fixes: bce83974ba2c ("net/i40e: set Tx loopback from PF") Cc: stable@dpdk.org Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Diffstat (limited to 'drivers/net/i40e/rte_pmd_i40e.c')
-rw-r--r--drivers/net/i40e/rte_pmd_i40e.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/i40e/rte_pmd_i40e.c b/drivers/net/i40e/rte_pmd_i40e.c
index bba62b1..7ce5d02 100644
--- a/drivers/net/i40e/rte_pmd_i40e.c
+++ b/drivers/net/i40e/rte_pmd_i40e.c
@@ -338,7 +338,7 @@ i40e_vsi_set_tx_loopback(struct i40e_vsi *vsi, uint8_t on)
hw = I40E_VSI_TO_HW(vsi);
/* Use the FW API if FW >= v5.0 */
- if (hw->aq.fw_maj_ver < 5) {
+ if (hw->aq.fw_maj_ver < 5 && hw->mac.type != I40E_MAC_X722) {
PMD_INIT_LOG(ERR, "FW < v5.0, cannot enable loopback");
return -ENOTSUP;
}