net/i40e: fix setting TPID with AQ command
authorBeilei Xing <beilei.xing@intel.com>
Thu, 5 Jul 2018 07:03:08 +0000 (15:03 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 23 Jul 2018 21:55:26 +0000 (23:55 +0200)
commit2c99142384db1796e42209f5fc112c8babc402c0
tree7a45623b34ae573577529bc78ad0e55756d03f1d
parent840f15cdab1693d0a8f2915d32dbe92a57dff1f2
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: 73cd7d6dc8e1 ("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>
drivers/net/i40e/i40e_ethdev.c