From: Rosen Xu Date: Mon, 15 Jan 2018 10:05:55 +0000 (+0800) Subject: net/i40e: fix packet type for X722 X-Git-Tag: spdx-start~79 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e8ef26c4db76b9e2f959b8f94a70bf52ba74dc09;p=dpdk.git net/i40e: fix packet type for X722 Move setting PCType after setting port's MAC type, which can resolve the issue of PCType doesn't take effect on X722. Fixes: a286ebeb0714 ("net/i40e: add dynamic mapping of SW flow types to HW pctypes") Cc: stable@dpdk.org Signed-off-by: Rosen Xu Acked-by: Beilei Xing --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index a0887d0cdb..9626c6a52e 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -1057,7 +1057,6 @@ eth_i40e_dev_init(struct rte_eth_dev *dev) return 0; } i40e_set_default_ptype_table(dev); - i40e_set_default_pctype_table(dev); pci_dev = RTE_ETH_DEV_TO_PCI(dev); intr_handle = &pci_dev->intr_handle; @@ -1103,6 +1102,8 @@ eth_i40e_dev_init(struct rte_eth_dev *dev) return ret; } + i40e_set_default_pctype_table(dev); + /* * To work around the NVM issue, initialize registers * for packet type of QinQ by software.