From e8ef26c4db76b9e2f959b8f94a70bf52ba74dc09 Mon Sep 17 00:00:00 2001 From: Rosen Xu Date: Mon, 15 Jan 2018 18:05:55 +0800 Subject: [PATCH] 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 --- drivers/net/i40e/i40e_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.20.1