[PATCH v3] net/ice: fix DCF state checking mechanism

2022-05-20 Thread peng1x . zhang
From: Peng Zhang DCF state previously checking mechanism cannot detect DCF state correctly in given situation,so PMD will report incorrect error code and mislead user. In this patch, DCF state checking mechanism is fixed through create or delete rule successfully or not. Then error code will

[PATCH v4] net/ice: retry sending adminQ command after failure

2022-05-31 Thread peng1x . zhang
From: Peng Zhang The origin design is if error happen during the step 3 of following given situation, it will return error directly without retry. While in current patch, it will retry again and again during certain time. If retry succeed, rule can be continuously created. It will improve succe

[PATCH v5] net/ice: add retry mechanism for DCF after failure

2022-06-07 Thread peng1x . zhang
From: Peng Zhang The origin design is if error happen during the step 3 of given situation, it will return error directly without retry. While in current patch, it will retry at every interval time during certain time. If retry succeed, rule can be continuously created. The given situation as

[PATCH v2] app/testpmd: fix incorrect queues state of secondary process

2022-08-18 Thread peng1x . zhang
From: Peng Zhang Primary process could set up queues state correctly when starting port, but under multi-process scenario, "stream_init" function would get wrong queues state for secondary process. This commit is to get queues state from ethdev which is located in shared memory. Fixes: 3c4426db

[PATCH v2] app/testpmd: fix incorrect queues state of secondary process

2022-08-18 Thread peng1x . zhang
From: Peng Zhang Primary process could set up queues state correctly when starting port, but under multi-process scenario, "stream_init" function would get wrong queues state for secondary process. This commit is to get queues state from ethdev which is located in shared memory. Fixes: 3c4426db

[PATCH] app/testpmd: fix secondary process cannot dump packet

2022-06-23 Thread peng1x . zhang
From: Peng Zhang The origin design is whether testpmd is primary or not, if state of receive queue is stop, then packets will not be dumped for show. While to secondary process, receive queue will not be set up, and state will still be stop even if testpmd is started. So packets of stated seconda

[PATCH v6] net/ice: add retry mechanism for DCF after failure

2022-07-05 Thread peng1x . zhang
From: Peng Zhang The origin design is if error happen during the step 3 of given situation, it will return error directly without retry. While in current patch, it will retry at every interval time during certain time if receive designed error code 'VIRTCHNL_STATUS_ERR_RETRY' from kernel. If retr

[PATCH 1/2] net/iavf: enable TSO offloading for tunnel cases

2022-08-12 Thread peng1x . zhang
From: Peng Zhang Hardware limits that max buffer size per Tx descriptor should be (16K-1)B. So when TSO enabled under unencrypt scenario, the mbuf data size may exceed the limit and cause malicious behavior to the NIC. This patch supports Tx descriptors for this kind of large buffer. Signed-off

[PATCH 2/2] net/iavf: support inner and outer checksum offload

2022-08-12 Thread peng1x . zhang
From: Peng Zhang Add the support of inner and outer Tx checksum offload for tunneling packets by configuring tunneling parameters in Tx descriptors, including outer L3/L4 checksum offload. Signed-off-by: Peng Zhang --- drivers/net/iavf/iavf_ethdev.c | 3 +- drivers/net/iavf/iavf_rxtx.c | 51

[PATCH] net/ice: promote dynflag API

2022-04-13 Thread peng1x . zhang
From: Peng Zhang Promote dynflag APIs to be stable. Signed-off-by: Peng Zhang --- drivers/net/ice/rte_pmd_ice.h | 1 - drivers/net/ice/version.map | 15 +-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice/rte_pmd_ice.h b/drivers/net/ice/rte_pmd_ice

[PATCH] net/ice: Modify DCF state checking mechanism and error code

2022-05-05 Thread peng1x . zhang
From: Peng Zhang Add DCF state checking mechanism which will conduct whether reset is done.And modify error code to avoid misleading. Fixes: b71573ec2fc2 ("net/ice: retry getting VF VSI map after failure") Cc: sta...@dpdk.org Signed-off-by: Peng Zhang --- drivers/net/ice/ice_dcf.c |

[PATCH v2] net/ice: fix DCF state checking mechanism

2022-05-11 Thread peng1x . zhang
From: Peng Zhang DCF state previous checking mechanism can not fully detect DCF state whether is on or not,so PMD will report uncorrect error code in some cases and mislead user.Fix DCF state checking mechanism which will mention user resource temporarily unavailable when DCF state is not on. Fi