[RFC] net/ice: support represented port flow action

2022-06-13 Thread zhichaox . zeng
From: Zhichao Zeng Add support for action REPRESENTED_PORT, which send traffic to the VF represented by the given ethdev. Signed-off-by: Zhichao Zeng --- doc/guides/nics/features/ice.ini| 1 + drivers/net/ice/ice_switch_filter.c | 43 + 2 files changed, 44 inse

[PATCH v4] lib/eal: fix segfaults due to thread exit order

2022-06-14 Thread zhichaox . zeng
From: Zhichao Zeng The eal-intr-thread is not closed before memory cleanup in the process of exiting. There is a small probability that when the eal-intr-thread is about to use some pointers, the memory were just cleaned, which cause the segment fault error caught by ASan. This patch close the e

[PATCH] net/igc: fix segmentation fault in secondary dpdk-symmetric_mp

2022-06-15 Thread zhichaox . zeng
From: Zhichao Zeng In the secondary dpdk-symmetric_mp process, the "smp_port_init" was skipped, which cause some function pointers not to be initialized, and a segmentation fault occurred when calling these function pointers. This patch assigns initial values to rx_pkt_burst, tx_pkt_burst and tx

[PATCH v2] net/igc: fix segmentation fault in secondary dpdk-symmetric_mp

2022-06-22 Thread zhichaox . zeng
From: Zhichao Zeng In the secondary dpdk-symmetric_mp process, the "smp_port_init" was skipped, which cause some function pointers not to be initialized, and a segmentation fault occurred when calling these function pointers. This patch assigns initial values to rx_pkt_burst, tx_pkt_burst and tx

[PATCH v3] net/igc: move the initialization of data path into dev_init

2022-06-27 Thread zhichaox . zeng
From: Zhichao Zeng The upper-layer application usually call the common interface "dev_init" to initialize the data path, but in the igc driver, the initialization of data path is in "igc_rx_init" and "eth_igc_tx_queue_setup", while in other drivers it is in "dev_init". So when upper-layer applica

[PATCH v4] net/igc: add support for secondary processes

2022-06-30 Thread zhichaox . zeng
From: Zhichao Zeng The RX function was not specified in the secondary process, causing the secondary process to segfault in a multi-process environment. This patch specify RX/TX functions in "dev_init" to support secondary processes. Fixes: 66fde1b943eb ("net/igc: add skeleton") Cc: alvinx.zh..

[DPDK] eal/linux: fix segfaults due to thread exit order

2022-05-17 Thread zhichaox . zeng
From: Zhichao Zeng The eal-intr-thread is not closed before exiting the main thread. There is a small probability that when the eal-intr-thread is about to use some pointers, the pointers were just released in the process of exiting, which cause the segment fault error caught by ASan. Close the

[DPDK v2] lib/eal: fix segfaults due to thread exit order

2022-05-17 Thread zhichaox . zeng
From: Zhichao Zeng The eal-intr-thread is not closed before exiting the main thread. There is a small probability that when the eal-intr-thread is about to use some pointers, the pointers were just released in the process of exiting, which cause the segment fault error caught by ASan. Close the

[PATCH v2] lib/eal: fix segfaults due to thread exit order

2022-05-22 Thread zhichaox . zeng
From: Zhichao Zeng The eal-intr-thread is not closed before memory cleanup in the process of exiting. There is a small probability that when the eal-intr-thread is about to use some pointers, the memory were just cleaned, which cause the segment fault error caught by ASan. This patch close the e

[PATCH v3] lib/eal: fix segfaults due to thread exit order

2022-05-29 Thread zhichaox . zeng
From: Zhichao Zeng The eal-intr-thread is not closed before memory cleanup in the process of exiting. There is a small probability that when the eal-intr-thread is about to use some pointers, the memory were just cleaned, which cause the segment fault error caught by ASan. This patch close the e

[PATCH] net/iavf: fix processing vlan tci in vector path

2022-07-22 Thread zhichaox . zeng
From: Zhichao Zeng The vector RX path does not process vlan tci correctly when it's stored in L2TAG2, so that the vlan tci could not be extracted from descriptor, then would not be put into mbuf also. Add processing when vlan tci is stored in L2TAG2. Fixes: 1162f5a0ef31 ("net/iavf: support flex

[PATCH] net/iavf: fix processing vlan tci in vector path

2022-07-22 Thread zhichaox . zeng
From: Zhichao Zeng The vector RX path does not process vlan tci correctly when it's stored in L2TAG2, so that the vlan tci could not be extracted from descriptor, then would not be put into mbuf also. Add processing when vlan tci is stored in L2TAG2. Fixes: 1162f5a0ef31 ("net/iavf: support flex

[PATCH] net/ice: support disabling ACL engine in DCF via devargs

2022-07-24 Thread zhichaox . zeng
From: Zhichao Zeng Support disabling DCF ACL engine via devarg "acl=off" in cmdline, aiming to shorten the DCF startup time. Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_dcf_ethdev.c | 58 +++--- drivers/net/ice/ice_dcf_ethdev.h | 6 drivers/net/ice/ice

[PATCH] net/ice: support represented port flow action

2022-07-24 Thread zhichaox . zeng
From: Zhichao Zeng Add support for action REPRESENTED_PORT in DCF. Supposed to send matching traffic to the entity (VF) represented by the given ethdev, at embedded switch level. Signed-off-by: Zhichao Zeng --- doc/guides/nics/features/ice.ini| 1 + drivers/net/ice/ice_switch_filter.c | 2

[PATCH] net/ice: fix RSS hash update

2022-08-04 Thread zhichaox . zeng
From: Zhichao Zeng This patch fixes the issue that the RSS does not update correctly when the user sets it to none. Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config") Cc: sta...@dpdk.org Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_ethdev.c | 4 +--- 1 file

[PATCH] net/ice: remove deprecated VF flow action

2022-08-09 Thread zhichaox . zeng
From: Zhichao Zeng According to the ABI and API Deprecation, remove deprecated VF action as hard-to-use / ambiguous. Action REPRESENTED_PORT should be used instead. Signed-off-by: Zhichao Zeng --- doc/guides/nics/features/ice.ini| 1 - drivers/net/ice/ice_switch_filter.c | 22 ---

[PATCH v2] net/ice: support disabling ACL engine in DCF via devargs

2022-08-17 Thread zhichaox . zeng
From: Zhichao Zeng Support disabling DCF ACL engine via devarg "acl=off" in cmdline, aiming to shorten the DCF startup time. Signed-off-by: Zhichao Zeng --- v2: add document for the new devarg --- doc/guides/nics/ice.rst| 11 ++ drivers/net/ice/ice_dcf_ethdev.c | 58

[PATCH] net/ice: support original represented_port action

2022-08-26 Thread zhichaox . zeng
From: Zhichao Zeng Add support to send matching traffic to the original DCF port with represented_port action by using DCF port id as ethdev_port_id. Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_switch_filter.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dri

[DPDK] drivers/net/ixgbe: remove expired symbols

2022-04-11 Thread zhichaox . zeng
From: zhichao zeng Remove expired experimental symbols. Signed-off-by: zhichao zeng --- drivers/net/ixgbe/rte_pmd_ixgbe.h | 20 +--- drivers/net/ixgbe/version.map | 10 +- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/drivers/net/ixgbe/rte_pmd_ixg

[DPDK v2] net/ixgbe: promote MDIO API

2022-04-12 Thread zhichaox . zeng
From: zhichao zeng Promote the MDIO APIs to be stable. Signed-off-by: zhichao zeng --- drivers/net/ixgbe/rte_pmd_ixgbe.h | 20 +--- drivers/net/ixgbe/version.map | 10 +- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/drivers/net/ixgbe/rte_pmd_ixgb

[DPDK v3] net/ixgbe: promote MDIO API

2022-04-12 Thread zhichaox . zeng
From: zhichao zeng Promote the MDIO APIs to be stable. Signed-off-by: zhichao zeng --- drivers/net/ixgbe/rte_pmd_ixgbe.h | 5 - drivers/net/ixgbe/version.map | 10 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/net/ixgbe/rte_pmd_ixgbe.h b/drivers/n

[DPDK v4] net/ixgbe: promote MDIO API

2022-04-18 Thread zhichaox . zeng
From: Zhichao Zeng Promote the MDIO APIs to be stable. Signed-off-by: Zhichao Zeng --- drivers/net/ixgbe/rte_pmd_ixgbe.h | 5 - drivers/net/ixgbe/version.map | 10 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/net/ixgbe/rte_pmd_ixgbe.h b/drivers/n