[dpdk-dev] [PATCH v3] net/ice: support show RSS hash configuration

2020-10-28 Thread taox . zhu
From: Zhu Tao Implement interface 'ice_rss_hash_conf_get' to support show RSS hash configuration. Note: Not support the same time setting RSS with RTE and classify API. Only return rss_hf from latest dev_configure or dev_rss_hash_update. All configures from rte_flow are ignored. Signed-off-by:

[dpdk-dev] [PATCH v2] net/ice: support show RSS hash configuration

2020-10-28 Thread taox . zhu
From: Zhu Tao Implement interface 'ice_rss_hash_conf_get' to support show RSS hash configuration. Note: Not support the same time setting RSS with RTE and classify API. Signed-off-by: Zhu Tao --- drivers/net/ice/ice_ethdev.c | 15 +-- drivers/net/ice/ice_ethdev.h | 1 + 2 fil

[dpdk-dev] [DPDK] net/ice: support show RSS hash configuration

2020-10-28 Thread taox . zhu
From: Zhu Tao Implement interface 'ice_rss_hash_conf_get' to support show RSS hash configuration. Note: Not support the same time set RSS with RTE and classify API. Signed-off-by: Zhu Tao --- drivers/net/ice/ice_ethdev.c | 15 +-- drivers/net/ice/ice_ethdev.h | 1 + 2 files c

[dpdk-dev] [PATCH v6] net/ixgbe: fix resource leak after thread exits normally

2020-04-21 Thread taox . zhu
From: Zhu Tao When the thread exits normally, pthread_join() is not called, which can result in a resource leak. Therefore, the thread is set to separation mode using function pthread_detach(), so that no program call pthread_join() is required to recycle, and when the thread exits, the system au

[dpdk-dev] [PATCH v5] net/ixgbe: fix resource leak after thread exits normally

2020-04-21 Thread taox . zhu
From: Zhu Tao When the thread exits normally, pthread_join() is not called, which can result in a resource leak. Therefore, the thread is set to separation mode using function pthread_detach(), so that no program call pthread_join() is required to recycle, and when the thread exits, the system au

[dpdk-dev] [PATCH v4] net/ixgbe: fix resource leak after thread exits normally

2020-04-14 Thread taox . zhu
From: Zhu Tao When the thread exits normally, pthread_join() is not called, which can result in a resource leak. Therefore, the thread is set to separation mode using function pthread_detach(), so that no program call pthread_join() is required to recycle, and when the thread exits, the system au

[dpdk-dev] [PATCH v3] net/ixgbe: fix resource leak after thread exits normally

2020-04-14 Thread taox . zhu
From: Zhu Tao When the thread exits normally, pthread_join() is not called, which can result in a resource leak. Therefore, the thread is set to separation mode using function pthread_detach(), so that no program call pthread_join() is required to recycle, and when the thread exits, the system au

[dpdk-dev] [PATCH v2] net/ixgbe: fix resource leak after thread exits normally

2020-04-09 Thread taox . zhu
From: Zhu Tao When the thread exits normally, pthread_join() is not called, which can result in a resource leak. Therefore, the thread is set to separation mode using function pthread_detach(), so that no program call pthread_join() is required to recycle, and when the thread exits, the system au

[dpdk-dev] [PATCH] net/ixgbe: fix resource leak after thread exits normally

2020-04-09 Thread taox . zhu
From: "Zhu, Tao" When the thread exits normally, pthread_join() is not called, which can result in a resource leak. Therefore, the thread is set to separation mode using function pthread_detach(), so that no program call pthread_join() is required to recycle, and when the thread exits, the system

[dpdk-dev] [PATCH v3] net/ice: fix hash flow segmentation fault

2020-03-02 Thread taox . zhu
From: Zhu Tao Macro rte_errno is not a static value, so it needs to be updated in all error handling code. Patch 'dc36bd5dfdeb' mistakenly consider that rte_errno is a constant, which causes the unrecognized flow rule to be marked as recognition success. Later, when the code tried to parse the f

[dpdk-dev] [PATCH v2] net/ice: fix hash flow segmentation fault

2020-03-02 Thread taox . zhu
From: Zhu Tao Macro rte_errno is not a static value, so it needs to be updated in all error handling code. Patch 'dc36bd5dfdeb' mistakenly consider that rte_errno is a constant, which causes the unrecognized flow rule to be marked as recognition success. Later, when the code tried to parse the f

[dpdk-dev] [DPDK] net/ice: fix hash flow segmentation fault

2020-03-02 Thread taox . zhu
From: Zhu Tao Macro rte_errno is not a static value, so it needs to be updated in all error handling code. Patch 'dc36bd5dfd' mistakenly consider that rte_errno is a constant, which causes the unrecognized flow rule to be marked as recognition success. Later, when the code tried to parse the flo

[dpdk-dev] [PATCH] net/ixgbe: fix link status inconsistencies

2020-02-26 Thread taox . zhu
From: Zhu Tao Setting LINK UP or LINK DOWN is divided into two parts, with the main task done in a separate thread, which can take up to 9 seconds. If cancel the thread in execution, may cause state inconsistencies. Therefore, must wait for the previous setting to exit normally before setting the

[dpdk-dev] [PATCH] net/ice: fix queue bind MSI-X interrupt error

2020-02-19 Thread taox . zhu
From: Zhu Tao To bind a queue to an MSI-X interrupt, need to set some register. The register consists of many parts, each of which has several bits; therefore, the shift operator '<<' was used; so the operator '<' in the code should be '<<'. Old code adds 1 on even MSI-X interrupt vector index u

[dpdk-dev] [PATCH] mempool/octeontx2: fix compile issue

2020-02-17 Thread taox . zhu
From: Tao Zhu Change the definition of C99 style to C90 style. compile log as below: otx2_mempool_ops.c: In function ‘otx2_npa_populate’: /dpdk/drivers/mempool/octeontx2/otx2_mempool_ops.c:790:2: error: \ ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i <

[dpdk-dev] [PATCH v8] net/i40e: add PF MDD event handler

2020-01-16 Thread taox . zhu
From: Zhu Tao Add warning and counter to handle the malicious driver detection event. When the hardware determines that a malicious driver on VF, this VF will become unworkable, the PF records and gives a warning message. Signed-off-by: Zhu Tao Acked-by: Qiming Yang --- doc/guides/nics/i40e.r

[dpdk-dev] [PATCH v7] net/i40e: add PF MDD event handler

2020-01-16 Thread taox . zhu
From: Zhu Tao Add warning and counter to handle the malicious driver detection event. When the hardware determines that a malicious driver on VF, this VF will become unworkable, the PF records and gives a warning message. Signed-off-by: Zhu Tao Acked-by: Qiming Yang --- doc/guides/nics/i40e.r

[dpdk-dev] [PATCH v5] net/i40e: add PF MDD event handler

2020-01-16 Thread taox . zhu
From: Zhu Tao Add warning and counter to handle the malicious driver detection event. When the hardware determines that a malicious driver on VF, this VF will become unworkable, the PF records and gives a warning message. Signed-off-by: Zhu Tao Acked-by: Qiming Yang --- doc/guides/nics/i40e.r

[dpdk-dev] [PATCH] net/ice: fix flow fdir/switch memory leak.

2020-01-16 Thread taox . zhu
From: Tao Zhu 1. Fix ice fdir and hash flow memory leak. 2. Fix the ice definition of LIST_FOR_EACH_ENTRY_SAFE not save tmp which cause list deletion incompletely. Fixes: 5f0978e9622 ("net/ice/base: add OS specific implementation") Fixes: f5cafa961fa ("net/ice: add flow director create and d

[dpdk-dev] [PATCH v5] net/i40e: add PF MDD event handler

2020-01-15 Thread taox . zhu
From: Zhu Tao add warning and counter to handle the maliciouse driver detection event. When the hardware determines that a VF has maliciouse driver, this VF will become unworkable, the PF records and gives a warning message. Signed-off-by: Zhu Tao Acked-by: Qiming Yang --- doc/guides/nics/i40

[dpdk-dev] [PATCH v2] net/ixgbe: fix blocking system events

2020-01-15 Thread taox . zhu
From: Zhu Tao IXGBE link status task use rte alarm thread in old implementation. Sometime ixgbe link status task takes up to 9 seconds. This will severely affect the rte-alarm-thread-dependent a task in the system, like interrupt or hotplug event. So replace with a independent thread which has th

[dpdk-dev] [PATCH v4] net/i40e: add PF MDD event handler

2020-01-15 Thread taox . zhu
From: Zhu Tao add warning and counter to handle the maliciouse driver detection event. update doc/guides/nics/i40e.rst update doc/guides/rel_notes/release_20_02.rst Signed-off-by: Zhu Tao --- doc/guides/nics/i40e.rst | 1 + doc/guides/rel_notes/release_20_02.rst | 4 +- drivers

[dpdk-dev] [PATCH v3] net/i40e: add PF MDD event handler

2020-01-14 Thread taox . zhu
From: Zhu Tao add warning and counter to handle the maliciouse driver detection event. Signed-off-by: Zhu Tao --- doc/guides/nics/i40e.rst | 1 + doc/guides/rel_notes/release_20_02.rst | 4 ++ drivers/net/i40e/i40e_ethdev.c | 89 +- drivers/net/i

[dpdk-dev] [PATCH] net/ixgbe: fix blocking system events

2019-12-25 Thread taox . zhu
From: Zhu Tao IXGBE link status task use rte alarm thread in old implementation. Sometime ixgbe link status task takes up to 9 seconds. This will severely affect the rte-alarm-thread-dependent a task in the system, like interrupt or hotplug event. So replace with a independent thread which has t

[dpdk-dev] [DPDK v2] net/i40e: add PF MDD event handler

2019-12-09 Thread taox . zhu
From: Zhu Tao This patch adds a handler for malicious driver detection event. We just gave a warning log and a statistical count on the PF. Signed-off-by: Zhu Tao --- doc/guides/nics/i40e.rst | 1 + doc/guides/rel_notes/release_20_02.rst | 4 ++ drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCH] net/i40e: add PF MDD event handler

2019-12-08 Thread taox . zhu
From: Zhu Tao This patch adds a handler for malicious driver detection event. We just gave a warning log and a statistical count on the PF. Signed-off-by: Zhu Tao --- doc/guides/nics/i40e.rst | 1 + doc/guides/rel_notes/release_20_02.rst | 4 ++ drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCH] net/ice: add TSO offload use basic path

2019-12-02 Thread taox . zhu
From: Zhu Tao ICE choices VECTOR TX path or Basic TX path by macro ICE_NO_VECTOR_FLAGS. TSO offload only processed by Basic TX path. Fixes: f88de4694d ("net/ice: support Tx SSE vector") Signed-off-by: Zhu Tao --- drivers/net/ice/ice_rxtx_vec_common.h | 1 + 1 file changed, 1 insertion(+) dif

[dpdk-dev] [PATCH] net/iavf: add TSO offload use basic path

2019-12-02 Thread taox . zhu
From: Zhu Tao IAVF choices VECTOR TX path or Basic TX path by macro IAVF_NO_VECTOR_FLAGS. TSO offload only processed by Basic TX path. Fixes: 605c6f9ca5 ("net/avf: convert to new Rx and Tx offload API") Signed-off-by: Zhu Tao --- drivers/net/iavf/iavf_rxtx.h | 1 + 1 file changed, 1 insertion

[dpdk-dev] [DPDK] net/ice: set vlan tpid is not supported by ice

2019-10-30 Thread taox . zhu
From: Zhu Tao Set vlan tpid is not supported by ice hardware. Delete driver code that doesn't work. Signed-off-by: Zhu Tao --- drivers/net/ice/ice_ethdev.c | 54 1 file changed, 54 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ic

[dpdk-dev] [PATCH] net/i40e: qinq strip is not supported by i40e

2019-10-30 Thread taox . zhu
From: Zhu Tao Qinq strip is not supported by i40e. When user tries to turn on QinQ strip, the driver gives unsupported return value and log. Signed-off-by: Zhu Tao --- drivers/net/i40e/i40e_ethdev.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drive

[dpdk-dev] [PATCH v2] app/testpmd: fix unused variable compile error

2019-09-25 Thread taox . zhu
From: Zhu Tao This minor patch fixes unused variable ‘ret’ compile error When CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC was selected. Fixes: f5267e485a2a ("app/testpmd: check status of getting ethdev info") Signed-off-by: Zhu Tao --- app/test-pmd/config.c | 2 +- 1 file changed, 1 insertion(+), 1

[dpdk-dev] [DPDK] app/testpmd: fix unused variable compile error

2019-09-25 Thread taox . zhu
From: Zhu Tao This minor patch fixes unused variable ‘ret’ compile error When CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC was selected. Fixes: f5267e485a2a ("app/testpmd: check status of getting ethdev info") Signed-off-by: Zhu Tao --- app/test-pmd/config.c | 2 +- 1 file changed, 1 insertion(+), 1

[dpdk-dev] [PATCH v3] net/i40e: fix request queue fail in VF

2019-07-24 Thread taox . zhu
From: Zhu Tao When the VF configuration is larger than the number of queues reserved by PF, VF sends the request queue command through admin queue. When PF received this command, it may reset the VF and send a notification before resetting. If this notification is read by the timed task alarm, Ta

[dpdk-dev] [PATCH v2] net/i40e: fix request queue fail in VF

2019-07-18 Thread taox . zhu
From: Zhu Tao When the VF configuration is larger than the number of queues reserved by PF, VF sends the request queue command through admin queue. When PF received this command, it may reset the VF and send a notification before resetting. If this notification is read by the timed task alarm, Ta

[dpdk-dev] [PATCH] net/i40e: fix request queue fail in VF

2019-07-17 Thread taox . zhu
From: Zhu Tao When the VF configuration is larger than the number of queues reserved by PF, VF sends the request queue command through admin queue. When PF received this command, it may reset the VF and send a notification before resetting. If this notification is read by the timed task alarm, Ta

[dpdk-dev] [PATCH] examples/ipsec-secgw: add parameter --mtu parse option

2019-07-17 Thread taox . zhu
From: Zhu Tao This patch add parameter --mtu parse key and enumeration value. Signed-off-by: Zhu Tao --- examples/ipsec-secgw/ipsec-secgw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index b1ecbb975..05fffa967 10