[dpdk-dev] [PATCH] net/ice: fix SCTP RSS configuration

2020-10-20 Thread Junyu Jiang
This patch configured RSS for sctp with IP address and port as input set. Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[dpdk-dev] [PATCH v2] app/testpmd: fix flow flush with invalid port

2020-10-15 Thread Junyu Jiang
There is no error info displayed when running flow flush command with invalid port. This patch fixed the issue. Fixes: 2a449871a12d ("app/testpmd: align behaviour of multi-port detach") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang Reviewed-by: Suanming Mou --- app/test-pmd/con

[dpdk-dev] [PATCH] app/testpmd: fix flow flush with invalid port

2020-10-14 Thread Junyu Jiang
There is no error info displayed when running flow flush command with invalid port. This patch fixed the issue. Fixes: 2a449871a12d ("app/testpmd: align behaviour of multi-port detach") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- app/test-pmd/config.c | 9 + 1 file

[dpdk-dev] [PATCH v5] net/i40e: fix incorrect byte counters

2020-09-22 Thread Junyu Jiang
This patch fixed the issue that rx/tx bytes statistics counters overflowed on 48 bit limitation by enlarging the limitation. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang Reviewed-by: Ferruh Yigit --- V5: move this known issue next

[dpdk-dev] [PATCH v4] net/i40e: fix incorrect byte counters

2020-09-22 Thread Junyu Jiang
This patch fixed the issue that rx/tx bytes statistics counters overflowed on 48 bit limitation by enlarging the limitation. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- v4: put reading stats and extending in same function. v3

[dpdk-dev] [PATCH v3] net/i40e: fix incorrect byte counters

2020-09-21 Thread Junyu Jiang
This patch fixed the issue that rx/tx bytes statistics counters overflowed on 48 bit limitation by enlarging the limitation. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- doc/guides/nics/i40e.rst | 7 +++ driver

[dpdk-dev] [PATCH v3 4/5] net/ice: support flow mark in SSE path

2020-09-15 Thread Junyu Jiang
From: Guinan Sun Support flow director mark ID parsing from flexible Rx descriptor in SSE path. Signed-off-by: Guinan Sun --- drivers/net/ice/ice_rxtx_vec_sse.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/net/ice/ice_rxtx_vec_sse.c b/drivers/net

[dpdk-dev] [PATCH v3 3/5] net/ice: support flow mark in AVX path

2020-09-15 Thread Junyu Jiang
From: Guinan Sun Support flow director mark ID parsing from flexible Rx descriptor in AVX path. Signed-off-by: Guinan Sun --- drivers/net/ice/ice_rxtx_vec_avx2.c | 64 - 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_rxtx_vec_avx2.

[dpdk-dev] [PATCH v3 5/5] net/ice: remove devargs flow-mark-support

2020-09-15 Thread Junyu Jiang
From: Guinan Sun Currently, all data paths already support flow mark, so remove devargs "flow-mark-support". FDIR matched ID will display in verbose when packets match the created rule. Signed-off-by: Guinan Sun --- doc/guides/nics/ice.rst | 12 drivers/net/ice/ice_e

[dpdk-dev] [PATCH v3 1/5] net/ice: support flex Rx descriptor RxDID #22

2020-09-15 Thread Junyu Jiang
This patch supports RxDID #22 by the following changes: -add structure and macro definition for RxDID #22. -support RxDID #22 format in normal path. -change RSS hash parsing from RxDID #22 in AVX/SSE data path. Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_ethdev.c| 20

[dpdk-dev] [PATCH v3 2/5] net/ice: add flow director enabled switch value

2020-09-15 Thread Junyu Jiang
From: Guinan Sun The patch adds fdir_enabled flag to identify if parse flow director mark ID from flexible Rx descriptor. Signed-off-by: Guinan Sun --- drivers/net/ice/ice_ethdev.h | 2 ++ drivers/net/ice/ice_fdir_filter.c | 9 - drivers/net/ice/ice_rxtx.h| 30 ++

[dpdk-dev] [PATCH v3 0/5] supports RxDID #22 and FDID

2020-09-15 Thread Junyu Jiang
led switch value net/ice: support flow mark in AVX path net/ice: support flow mark in SSE path net/ice: remove devargs flow-mark-support Junyu Jiang (1): net/ice: support flex Rx descriptor RxDID #22 doc/guides/nics/ice.rst | 12 -- drivers/net/ice/ice_ethdev.c

[dpdk-dev] [PATCH v2] net/i40e: fix incorrect byte counters

2020-09-15 Thread Junyu Jiang
This patch fixed the issue that rx/tx bytes overflowed on 48 bit limitation by enlarging the limitation. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/i40e/i40e_ethdev.c | 47 ++ d

[dpdk-dev] [PATCH] net/i40e: fix incorrect byte counters

2020-09-09 Thread Junyu Jiang
This patch fixed the issue that rx/tx bytes overflowed on 48 bit limitation by enlarging the limitation. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/i40e/i40e_ethdev.c | 47 ++ d

[dpdk-dev] [PATCH v2 5/5] net/ice: remove devargs flow-mark-support

2020-09-07 Thread Junyu Jiang
From: Guinan Sun Remove devargs "flow-mark-support". Signed-off-by: Guinan Sun --- doc/guides/nics/ice.rst | 12 drivers/net/ice/ice_ethdev.c | 10 +- drivers/net/ice/ice_ethdev.h | 1 - drivers/net/ice/ice_rxtx_vec_common.h | 6 -- 4

[dpdk-dev] [PATCH v2 4/5] net/ice: support flow mark in SSE path

2020-09-07 Thread Junyu Jiang
From: Guinan Sun Support Flow Director mark ID parsing from Flex Rx descriptor in SSE path. Signed-off-by: Guinan Sun --- drivers/net/ice/ice_rxtx_vec_sse.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/net/ice/ice_rxtx_vec_sse.c b/drivers/net/ice

[dpdk-dev] [PATCH v2 3/5] net/ice: support flow mark in AVX path

2020-09-07 Thread Junyu Jiang
From: Guinan Sun Support Flow Director mark ID parsing from Flex Rx descriptor in AVX path. Signed-off-by: Guinan Sun --- drivers/net/ice/ice_rxtx_vec_avx2.c | 64 - 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_rxtx_vec_avx2.c b

[dpdk-dev] [PATCH v2 1/5] net/ice: support flex Rx descriptor RxDID #22

2020-09-07 Thread Junyu Jiang
This patch supports RxDID #22 by the following changes: -add structure and macro definition for RxDID #22, -support RxDID #22 format in normal path, -change RSS hash parsing from RxDID #22 in AVX/SSE data path. Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_rxtx.c | 16

[dpdk-dev] [PATCH v2 0/5] supports RxDID #22 and FDID

2020-09-07 Thread Junyu Jiang
net/ice: remove devargs flow-mark-support Junyu Jiang (1): net/ice: support flex Rx descriptor RxDID #22 doc/guides/nics/ice.rst | 12 -- drivers/net/ice/ice_ethdev.c | 10 +- drivers/net/ice/ice_ethdev.h | 3 +- drivers/net/ice/ice_fdir_filter.c | 9 +

[dpdk-dev] [PATCH v2 2/5] net/ice: add flow director enabled switch value

2020-09-07 Thread Junyu Jiang
From: Guinan Sun The commit adds fdir_enabled flag into ice_adapter structure to identify if fdir id is active. Rx data path can be benefit if fdir id parsing is not needed, especially in vector path. Signed-off-by: Guinan Sun --- drivers/net/ice/ice_ethdev.h | 2 ++ drivers/net/ice/ice_

[dpdk-dev] [PATCH] net/iavf: fix mismatch command

2020-09-01 Thread Junyu Jiang
: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/iavf/iavf_vchnl.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index 33acea54a..331018f14 100644 --- a/drivers/net/iavf/iavf_vchnl.c +++ b/driv

[dpdk-dev] [PATCH v3] net/ice: fix incorrect Rx/Tx bytes statistics

2020-07-21 Thread Junyu Jiang
This patch fixed the issue that rx/tx bytes overflowed on 40 bit limitation by enlarging the limitation. Fixes: a37bde56314d ("net/ice: support statistics") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_ethdev.c | 28 drive

[dpdk-dev] [PATCH v2] net/ice: fix incorrect Rx/Tx bytes statistics

2020-07-16 Thread Junyu Jiang
This patch fixed the issue that rx/tx bytes overflowed on 40 bit limitation by enlarging the limitation. Fixes: a37bde56314d ("net/ice: support statistics") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_ethdev.c | 36 d

[dpdk-dev] [PATCH 1/2] net/ice: fix incorrect Rx bytes statistics

2020-07-15 Thread Junyu Jiang
This patch fixed the issue that rx_bytes overflowed on 40 bit limitation by enlarging the limitation. Fixes: a37bde56314d ("net/ice: support statistics") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_ethdev.c | 14 ++ 1 file changed, 14 insertion

[dpdk-dev] [PATCH 2/2] net/ice: fix incorrect Tx bytes statistics

2020-07-15 Thread Junyu Jiang
This patch fixed the issue that tx_bytes overflowed on 40 bit limitation by enlarging the limitation. Fixes: a37bde56314d ("net/ice: support statistics") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_ethdev.c | 10 ++ 1 file changed, 10 insertion

[dpdk-dev] [PATCH 0/2] fix incorrect statistics data

2020-07-15 Thread Junyu Jiang
This patchset fixed the issue that rx_bytes and tx_bytes overflowed on 40 bit limitation by enlarging the limitation. Junyu Jiang (2): net/ice: fix incorrect Rx bytes statistics net/ice: fix incorrect Tx bytes statistics drivers/net/ice/ice_ethdev.c | 24 1 file

[dpdk-dev] [PATCH v4] net/ice: initialize and update RSS based on user request

2020-06-23 Thread Junyu Jiang
Initialize and update RSS configure based on user request (rte_eth_rss_conf) from dev_configure and .rss_hash_update ops. All previous default configure has been removed. Signed-off-by: Junyu Jiang --- v3->v4: change the return value to success when rss_hf value update to 0. v2->v3: chan

[dpdk-dev] [PATCH v3] net/ice: initialize and update RSS based on user request

2020-06-23 Thread Junyu Jiang
Initialize and update RSS configure based on user request (rte_eth_rss_conf) from dev_configure and .rss_hash_update ops. All previous default configure has been removed. Signed-off-by: Junyu Jiang --- v2->v3: change the commit log Separate ipv4 and ipv6 Remove the call of ice_rem_vsi_rss_

[dpdk-dev] [PATCH v2] net/ice: support based RSS configure

2020-06-21 Thread Junyu Jiang
Enable/disable RSS for corresponding flow base on the user's requirement. Signed-off-by: Junyu Jiang --- v1->v2: remove gtpu and pppoe/pppod configuration from rss init --- drivers/net/ice/ice_ethdev.c | 162 +-- 1 file changed, 96 insertions(+), 66 d

[dpdk-dev] [PATCH] net/iavf: fix RSS RETA settings invalid

2020-06-19 Thread Junyu Jiang
This patch moved the RSS initialization from dev start to dev configure, to fix the issue that RSS redirection table can not be kept after restarting port. Fixes: 69dd4c3d0898 ("net/avf: enable queue and device") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/iavf/iav

[dpdk-dev] [PATCH] net/ice: support based RSS configure

2020-06-09 Thread Junyu Jiang
Enable/disable RSS for corresponding flow base on the user's requirement. Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_ethdev.c | 181 ++- 1 file changed, 115 insertions(+), 66 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/ne

[dpdk-dev] [PATCH v2] net/ice: fix core dumped issue in switch filter

2020-05-05 Thread Junyu Jiang
The number of queues in queue group should be checked before using it. This patch fixed the issue. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang Tested-by: Qimai Xiao --- drivers/net/ice/ice_switch_filter.c | 2 ++ 1 file

[dpdk-dev] [PATCH] net/ice: fix core dumped issue in switch filter

2020-04-29 Thread Junyu Jiang
The number of queues in queue group should be checked before using it to avoid NULL pointer. This patch fixed the issue. Fixes: 47d460d63233 ("net/ice: rework switch filter") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_switch_filter.c | 2 ++ 1 file

[dpdk-dev] [PATCH v5] net/ice: fix RSS advanced rule invalid issue

2020-04-06 Thread Junyu Jiang
This patch moved the RSS initialization from dev start to dev configure to fix RSS advanced rule invalid after running port stop and port start. Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_eth

[dpdk-dev] [PATCH v4] net/ice: fix RSS advanced rule invalid issue

2020-04-01 Thread Junyu Jiang
This patch moved the RSS initialization from dev start to dev configure to fix RSS advanced rule invalid after running port stop and port start. Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_eth

[dpdk-dev] [PATCH v3] net/ice: fix RSS advanced rule invalid issue

2020-03-31 Thread Junyu Jiang
This patch moved the ice_init_rss into ice_dev_configure to fix RSS advanced rule invalid after running port stop and port start. Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_ethdev.c | 13 +++

[dpdk-dev] [PATCH v2] net/ice: fix RSS advanced rule invalid issue

2020-03-26 Thread Junyu Jiang
This patch added a restore function for RSS advanced rule to fix the rule invalid after running port stop and port start. Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_eth

[dpdk-dev] [PATCH v2] net/ice: fix RSS advanced rule invalid issue

2020-03-25 Thread Junyu Jiang
This patch added a restore function for RSS advanced rule to fix the rule invalid after running port stop and port start. Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_eth

[dpdk-dev] [PATCH v2 2/2] examples/vmdq: fix RSS configuration

2020-03-24 Thread Junyu Jiang
In order that all queues of pools can receive packets, add enable-rss argument to change rss configuration. Fixes: 6bb97df521aa ("examples/vmdq: new app") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang Acked-by: Xiaoyun Li --- doc/guides/sample_app_ug/vmdq_forwarding.rst | 6 +--

[dpdk-dev] [PATCH v2 0/2] examples/vmdq: fix RSS configuration

2020-03-24 Thread Junyu Jiang
This patch set fixed a bug of vmdq example, and added a documentation for it. *** BLURB HERE *** Junyu Jiang (2): doc: add user guide for VMDq examples/vmdq: fix RSS configuration MAINTAINERS | 1 + doc/guides/sample_app_ug/index.rst | 1

[dpdk-dev] [PATCH v2 1/2] doc: add user guide for VMDq

2020-03-24 Thread Junyu Jiang
currently, there is no documentation for vmdq example, this path added the user guide for vmdq. Signed-off-by: Junyu Jiang --- MAINTAINERS | 1 + doc/guides/sample_app_ug/index.rst | 1 + doc/guides/sample_app_ug/vmdq_forwarding.rst | 208

[dpdk-dev] [PATCH] net/ice: fix RSS advanced rule invalid issue

2020-03-19 Thread Junyu Jiang
This patch added a restore function of RSS advanced rule to fix the rule invalid when after running port stop and port start. Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- drivers/net/ice/ice_eth

[dpdk-dev] [PATCH] examples/vmdq: fix RSS configuration

2020-03-03 Thread Junyu Jiang
In order that all queues of pools can receive packets, add enable-rss argument to change rss configuration. Fixes: 6bb97df521aa ("examples/vmdq: new app") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- examples/vmdq/main.c | 39 ++- 1 file c

[dpdk-dev] [PATCH v3] examples/vmdq: fix the output of pools/queues

2020-03-01 Thread Junyu Jiang
To match the pools/queues configuration, the pools/queues output should start from VMDQ base queue. This patch fixed the issue. Fixes: 6bb97df521aa ("examples/vmdq: new app") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- examples/vmdq/main.c | 9 + 1 file changed, 5

[dpdk-dev] [PATCH v2] examples/vmdq: fix the output of pools/queues

2020-02-26 Thread Junyu Jiang
To match the pools/queues configuration, the pools/queues output should start from VMDQ base queue. This patch fixed the issue. Fixes: 6bb97df521aa ("examples/vmdq: new app") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- examples/vmdq/main.c | 9 + 1 file changed, 5

[dpdk-dev] [PATCH] examples/vmdq: fix the output of pools/queues

2020-02-26 Thread Junyu Jiang
To match the pools/queues configuration, the pools/queues output should start from VMDQ base queue. This patch fixed the issue. Fixes: 6bb97df521aa ("examples/vmdq: new app") Cc: sta...@dpdk.org Signed-off-by: Junyu Jiang --- examples/vmdq/main.c | 9 + 1 file changed, 5

[dpdk-dev] [PATCH] net/ixgbe: enable jumbo frame for VF

2019-12-02 Thread Junyu Jiang
Enable jumbo frame for VF by configuring DPDK PF. Signed-off-by: Junyu Jiang --- drivers/net/ixgbe/ixgbe_pf.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_pf.c b/drivers/net/ixgbe/ixgbe_pf.c index d0d85e138..66b856e11 100644 --- a/drivers/net/ixgbe