[PATCH v2] net/iavf: fix port stats not cleared

2023-09-06 Thread Yiding Zhou
avf: initialize PMD") Cc: sta...@dpdk.org Signed-off-by: Kuan Xu Signed-off-by: Yiding Zhou --- drivers/net/iavf/iavf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index f2fc5a5621..24c6342dee 100644 --

[PATCH] net/iavf: fix port stats not cleared

2023-08-29 Thread Yiding Zhou
Call 'iavf_dev_stats_reset' during the initialization of the VF in order to clear any statistics that may exist from the last use of the VF and to avoid statistics errors. Fixes: 22b123a36d07 ("net/avf: initialize PMD") Cc: sta...@dpdk.org Signed-off-by: Kuan Xu Signed

[PATCH] ice: fix build error on 32bit configure

2023-07-05 Thread Yiding Zhou
68a52b8b38c ("net/ice: support vector SSE in Rx") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/ice/ice_rxtx_vec_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_rxtx_vec_common.h b/drivers/net/ice/ice_rxtx_vec_common.h i

[PATCH v5] net/iavf: revert fix VLAN insertion

2022-11-13 Thread Yiding Zhou
d6d1 ("net/iavf: fix VLAN insertion") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- v5: move the document v4: document this issue as kown issue and add some commit log v3: rebase and change commit log --- doc/guides/nics/intel_vf.rst| 13 + drivers/net/ia

[PATCH v4] net/iavf: revert fix VLAN insertion

2022-11-11 Thread Yiding Zhou
d6d1 ("net/iavf: fix VLAN insertion") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- v4: document this issue as kown issue and add some commit log v3: rebase and change commit log --- doc/guides/rel_notes/known_issues.rst | 23 +++ drivers/net/iavf/iavf_rxtx_

[PATCH v3] net/iavf: revert fix VLAN insertion

2022-11-03 Thread Yiding Zhou
if necessary. Fixes: 0d58caa7d6d1 ("net/iavf: fix VLAN insertion") Signed-off-by: Yiding Zhou --- v3: rebase and change commit log --- drivers/net/iavf/iavf_rxtx_vec_common.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_common.h b/drivers/net/iavf/iavf_rxtx

[PATCH v5] net/iavf: add thread for event callbacks

2022-10-19 Thread Yiding Zhou
("net/iavf: support asynchronous virtual channel message") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- v5: reword the title and log v4: add 'reset' and 'ipsec' handling v3: fix CI errors --- drivers/net/iavf/iavf.h| 2 + drivers/net/iavf/iavf_ethdev.c

[PATCH v2] net/iavf: revert fix VLAN insertion

2022-10-19 Thread Yiding Zhou
in a performance loss of around 40%. So it needs to be reverted and the original issue needed to be fixed by rework. To reverts commit 0d58caa7d6d1 ("net/iavf: fix VLAN insertion") Fixes: 0d58caa7d6d1 ("net/iavf: fix VLAN insertion") Signed-off-by: Yiding Zhou -

[PATCH] net/iavf: revert fix VLAN insertion

2022-10-18 Thread Yiding Zhou
VLAN insertion") Signed-off-by: Yiding Zhou --- drivers/net/iavf/iavf_rxtx_vec_common.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_common.h b/drivers/net/iavf/iavf_rxtx_vec_common.h index 4ab22c6b2b..a59cb2ceee 100644 --- a/drivers/net/iavf/iavf_rxtx_ve

[PATCH] net/ice/base: fix duplicate flow rules

2022-10-12 Thread Yiding Zhou
a new switch recipe") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/ice/base/ice_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 4b115ce660..a2581f404d 100644 --- a/dri

[PATCH v4] net/iavf: fix error of virtchnl command

2022-10-12 Thread Yiding Zhou
events to fix this issue. Fixes: 48de41ca11f0 ("net/avf: enable link status update") CC: sta...@dpdk.org Signed-off-by: Yiding Zhou --- v4: add 'reset' and 'ipsec' event handling v3: fix CI errors --- drivers/net/iavf/iavf.h| 2 + drivers/net/iavf/iavf_ethde

[PATCH v3] net/iavf: fix error of virtchnl command

2022-10-08 Thread Yiding Zhou
events to fix this issue. Fixes: 48de41ca11f0 ("net/avf: enable link status update") CC: sta...@dpdk.org Signed-off-by: Yiding Zhou --- v3: fix CI errors --- drivers/net/iavf/iavf.h| 2 + drivers/net/iavf/iavf_ethdev.c | 5 ++ drivers/net/iavf/iavf_vchn

[PATCH v3] net/iavf: fix error of virtchnl command

2022-10-08 Thread Yiding Zhou
events to fix this issue. Fixes: 48de41ca11f0 ("net/avf: enable link status update") CC: sta...@dpdk.org Signed-off-by: Yiding Zhou --- v3: fix CI error --- drivers/net/iavf/iavf.h| 2 + drivers/net/iavf/iavf_ethdev.c | 5 ++ drivers/net/iavf/iavf_vchn

[PATCH v2] net/iavf: fix error of virtchnl command

2022-09-19 Thread Yiding Zhou
events to fix this issue. Fixes: 48de41ca11f0 ("net/avf: enable link status update") CC: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/iavf/iavf.h| 2 + drivers/net/iavf/iavf_ethdev.c | 5 ++ drivers/net/iavf/iavf_vchnl.c | 131

[PATCH] net/iavf: fix error of virtchnl command

2022-09-18 Thread Yiding Zhou
events to fix this issue. Fixes: 48de41ca11f0 ("net/avf: enable link status update") CC: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/iavf/iavf.h| 2 + drivers/net/iavf/iavf_ethdev.c | 5 ++ drivers/net/iavf/iavf_vchnl.c | 130

[PATCH v2] net/pcap: fix timeout of stopping device

2022-09-06 Thread Yiding Zhou
ase dumper. Fixes: 0ecfb6c04d54 ("net/pcap: move handler to process private") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- v2: use alarm handler to release dumper --- drivers/net/pcap/pcap_ethdev.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --gi

[PATCH] net/pcap: reduce time for stopping device

2022-08-25 Thread Yiding Zhou
ath Fixes: 4c173302c307 ("pcap: add new driver") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/pcap/pcap_ethdev.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/net/pcap/pcap_ethdev.c b/drivers/net/pcap/pcap_ethde

[PATCH] net/pcap: reduce time for stopping device

2022-08-24 Thread Yiding Zhou
ath Fixes: 4c173302c307 ("pcap: add new driver") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/pcap/pcap_ethdev.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/net/pcap/pcap_ethdev.c b/drivers/net/pcap/pcap_ethde

[PATCH] net/iavf: fix VLAN insertion

2022-08-11 Thread Yiding Zhou
/iavf: fix VLAN insert") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/iavf/iavf_rxtx_vec_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx_vec_common.h b/drivers/net/iavf/iavf_rxtx_vec_common.h index a59cb2ceee..4ab22c6b2b 100644 ---

[PATCH] net/iavf: fix VLAN insertion

2022-08-11 Thread Yiding Zhou
VLAN insert") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/iavf/iavf_rxtx_vec_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx_vec_common.h b/drivers/net/iavf/iavf_rxtx_vec_common.h index a59cb2ceee..4ab22c6b2b 100644 --- a/driver

[PATCH] net/iavf: fix issue of VF resetting

2022-06-27 Thread Yiding Zhou
: 676d986b4b86 ("net/iavf: fix crash after VF reset failure") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/iavf/iavf_ethdev.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index

[PATCH v3] net/iavf: fix segfaults when calling API after VF reset failed

2022-05-11 Thread Yiding Zhou
coredump. Fixes: e74e1bb6280d ("net/iavf: enable port reset") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/iavf/iavf.h| 1 + drivers/net/iavf/iavf_ethdev.c | 57 +++--- drivers/net/iavf/iavf_rxtx.c | 10 ++ drivers/net/iavf

[PATCH v2] net/iavf: fix mismatch between rx_pkt_burst and RX descriptor

2022-05-07 Thread Yiding Zhou
be filled with wrong values in rx_pkt_burst, which will eventually lead to coredump. This patch fixes mismatch between rx_pkt_burst and rx descriptor. Fixes: 12b435bf8f2f ("net/iavf: support flex desc metadata extraction") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- driver

[PATCH v2] net/iavf: fix mismatch between rx_pkt_burst and RX descriptor

2022-05-07 Thread Yiding Zhou
be filled with wrong values in rx_pkt_burst, which will eventually lead to coredump. This patch fixes mismatch between rx_pkt_burst and rx descriptor. Fixes: 12b435bf8f2f ("net/iavf: support flex desc metadata extraction") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- driver

[PATCH v2] net/iavf: fix mismatch between rx_pkt_burst and RX descriptor

2022-05-07 Thread Yiding Zhou
be filled with wrong values in rx_pkt_burst, which will eventually lead to coredump. This patch fixes mismatch between rx_pkt_burst and rx descriptor. Fixes: 12b435bf8f2f ("net/iavf: support flex desc metadata extraction") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- driver

[PATCH] net/iavf: fix mismatch between rx_pkt_burst and RX descriptor

2022-05-06 Thread Yiding Zhou
be filled with wrong values in rx_pkt_burst, which will eventually lead to coredump. This patch fixes mismatch between rx_pkt_burst and rx descriptor. Fixes: 12b435bf8f2f ("net/iavf: support flex desc metadata extraction") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- driver

[PATCH v2] net/iavf: fix segfaults when calling API after VF reset failed

2022-04-27 Thread Yiding Zhou
coredump. Fixes: e74e1bb6280d ("net/iavf: enable port reset") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/iavf/iavf.h| 1 + drivers/net/iavf/iavf_ethdev.c | 57 +++--- drivers/net/iavf/iavf_rxtx.c | 10 ++ drivers/net/iavf

[PATCH] net/iavf: fix segfaults when calling API after VF reset failed

2022-04-21 Thread Yiding Zhou
coredump. Signed-off-by: Yiding Zhou --- drivers/net/iavf/iavf.h| 1 + drivers/net/iavf/iavf_ethdev.c | 59 -- drivers/net/iavf/iavf_rxtx.c | 10 ++ drivers/net/iavf/iavf_vchnl.c | 17 ++ 4 files changed, 85 insertions(+), 2 deletions(-) dif

[PATCH v2] net/ice: fix gcc error with -DRTE_LIBRTE_ICE_16BYTE_RX_DESC

2022-02-07 Thread Yiding Zhou
gcc will report error "unused parameter 'rxq'" when the macro RTE_LIBRTE_ICE_16BYTE_RX_DESC is defined. use RTE_SET_USED to avoid it Fixes: 7a340b0b4e03 ("net/ice: refactor Rx FlexiMD handling") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- drivers/net/i

[PATCH] net/ice: fix gcc error with -DRTE_LIBRTE_ICE_16BYTE_RX_DESC

2022-02-07 Thread Yiding Zhou
gcc will report error "unused parameter 'rxq'" when the macro RTE_LIBRTE_ICE_16BYTE_RX_DESC is defined. use "(void)rxq" to avoid it Fixes: 7a340b0b4e03 ("net/ice: refactor Rx FlexiMD handling") Cc: sta...@dpdk.org Signed-off-by: Yiding Zhou --- dri

[PATCH] net/ice: add support for setting promisc by DCF

2022-01-26 Thread Yiding Zhou
allow to enable/disable VFs promisc mode over VF0. this feature need to update ice kernel driver (newer than v1.8.0) Signed-off-by: Yiding Zhou --- drivers/net/ice/ice_dcf_vf_representor.c | 56 +--- 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/drivers/net

[PATCH] net/ice: add support for setting promisc by DCF

2022-01-25 Thread Yiding Zhou
allow to enable/disable VFs promisc mode over VF0. this feature need to update ice kernel driver (newer than v1.8.0) Signed-off-by: Yiding Zhou --- drivers/net/ice/ice_dcf_vf_representor.c | 56 +--- 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/drivers/net