net/i40e: fix setting TPID with AQ command
TPID can be set by set_switch_config AdminQ command on
new FW release. But find fail to set 0x88A8 on some NICs.
According to the datasheet, Switch Tag value should not
be identical to either the First Tag or Second Tag values.
So set something other than common Ethertype for internal
switching.
Fixes: 73cd7d6dc8
("net/i40e: use set switch AQ instead of register setting")
Cc: stable@dpdk.org
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
parent
840f15cdab
commit
2c99142384
@ -1242,6 +1242,13 @@ eth_i40e_dev_init(struct rte_eth_dev *dev, void *init_params __rte_unused)
|
||||
hw->bus.func = pci_dev->addr.function;
|
||||
hw->adapter_stopped = 0;
|
||||
|
||||
/*
|
||||
* Switch Tag value should not be identical to either the First Tag
|
||||
* or Second Tag values. So set something other than common Ethertype
|
||||
* for internal switching.
|
||||
*/
|
||||
hw->switch_tag = 0xffff;
|
||||
|
||||
/* Check if need to support multi-driver */
|
||||
i40e_support_multi_driver(dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user