[dpdk-dev] [PATCH] net/igc: fix Rx packet size error

2021-04-15 Thread Alvin Zhang
to whether DEV_RX_OFFLOAD_KEEP_CRC is enabled. Fixes: a5aeb2b9e225 ("net/igc: support Rx and Tx") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_txrx.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers/net/igc/

[dpdk-dev] [PATCH] net/iavf: fix hash configuration on Fortville VF

2021-04-18 Thread Alvin Zhang
rt of hash configuration for Fortville VF by sending VIRTCHNL_OP_SET_RSS_HENA message to the PF after checking that the PF does not support VIRTCHNL_VF_OFFLOAD_ADV_RSS_PF capability. Fixes: c678299594a8 ("net/iavf: fix default RSS configuration") Cc: sta...@dpdk.org Signed-off-

[dpdk-dev] [PATCH v2] net/iavf: fix hash configuration on i40e VF

2021-04-19 Thread Alvin Zhang
hash configuration for i40e VF by sending VIRTCHNL_OP_SET_RSS_HENA message to the PF after checking that the PF does not support VIRTCHNL_VF_OFFLOAD_ADV_RSS_PF capability. Fixes: c678299594a8 ("net/iavf: fix default RSS configuration") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang -

[dpdk-dev] [PATCH v2] net/igc: fix Rx packet size error

2021-04-19 Thread Alvin Zhang
to whether DEV_RX_OFFLOAD_KEEP_CRC is enabled. Fixes: a5aeb2b9e225 ("net/igc: support Rx and Tx") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- v2: Refine the codes. --- drivers/net/igc/igc_txrx.c | 30 -- 1 file changed, 16 insertions(+), 14 deletion

[dpdk-dev] [PATCH v3] net/iavf: fix hash configuration on i40e VF

2021-04-20 Thread Alvin Zhang
hash configuration for i40e VF by sending VIRTCHNL_OP_SET_RSS_HENA message to the PF after checking that the PF does not support VIRTCHNL_VF_OFFLOAD_ADV_RSS_PF capability. Fixes: c678299594a8 ("net/iavf: fix default RSS configuration") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --

[dpdk-dev] [PATCH v4] net/iavf: fix hash configuration on i40e VF

2021-04-21 Thread Alvin Zhang
hash configuration for i40e VF by sending VIRTCHNL_OP_SET_RSS_HENA message to the PF after checking that the PF does not support VIRTCHNL_VF_OFFLOAD_ADV_RSS_PF capability. Fixes: c678299594a8 ("net/iavf: fix default RSS configuration") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --

[dpdk-dev] [PATCH v5] net/iavf: fix hash configuration on i40e VF

2021-04-21 Thread Alvin Zhang
hash configuration for i40e VF by sending VIRTCHNL_OP_SET_RSS_HENA message to the PF after checking that the PF does not support VIRTCHNL_VF_OFFLOAD_ADV_RSS_PF capability. Fixes: c678299594a8 ("net/iavf: fix default RSS configuration") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang

[dpdk-dev] [PATCH] net/iavf: fix PF returning error

2021-04-24 Thread Alvin Zhang
.@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_vchnl.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index 45096cb..6586fc3 100644 --- a/drivers/net/iavf/iavf_vchnl.c +++ b/driver

[dpdk-dev] [PATCH v6] net/iavf: fix RSS configuration on i40e VF

2021-04-24 Thread Alvin Zhang
not support VIRTCHNL_VF_OFFLOAD_ADV_RSS_PF capability. Fixes: c678299594a8 ("net/iavf: fix default RSS configuration") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- v2: Update commit log. v3: Increase compatibility with old drivers. v4: Fix compile issues. v5:

[dpdk-dev] [PATCH] net/ice: fix mbuf fast freeing

2021-04-24 Thread Alvin Zhang
As i40e support per queue MBUF_FAST_FREE, ice should have the same implemenation. Fixes: 6eac0b7fde95 ("net/ice: support advance Rx/Tx") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/ice/ice_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH v2] net/ice: fix mbuf fast freeing

2021-04-24 Thread Alvin Zhang
As i40e support per queue MBUF_FAST_FREE, ice should have the same implementation. Fixes: 6eac0b7fde95 ("net/ice: support advance Rx/Tx") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/ice/ice_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[dpdk-dev] [PATCH v2] net/iavf: fix PF returning error

2021-04-25 Thread Alvin Zhang
.@dpdk.org Signed-off-by: Alvin Zhang --- v2: Refine codes according to comments. --- drivers/net/iavf/iavf.h | 4 ++-- drivers/net/iavf/iavf_vchnl.c | 18 -- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/net/iavf/iavf.h b/drivers/net/iavf/iavf.h ind

[dpdk-dev] [DPDK] net/ice: fix txq mbuf release mode

2021-04-25 Thread Alvin Zhang
VX512 offload path") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/ice/ice_rxtx.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index 92fbbc1..49abcb2 100644 --- a/drivers/net/ice/

[dpdk-dev] [PATCH] net/i40e: fix offload flag checking in simple Tx datapath

2021-04-27 Thread Alvin Zhang
atapath. Fixes: 146ffa81d05e ("net/i40e: add Tx preparation for simple Tx datapath") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/i40e/i40e_rxtx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/

[dpdk-dev] [PATCH] net/i40e: fix L2 payload RSS mask input set

2021-06-18 Thread Alvin Zhang
Allow VLAN tag being added to L2 payload packet type RSS input set. Fixes: ef4c16fd9148 ("net/i40e: refactor RSS flow") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/i40e/i40e_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver

[dpdk-dev] [PATCH] net/igc: fix Rx error counter for badlen packets

2021-03-31 Thread Alvin Zhang
When the size of the packet is less than the minimum or greater than the maximum, the packet will be counted twice in the error packet counter. Fixes: e6defdfddc3b ("net/igc: enable statistics") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_ethdev.c | 3 +

[dpdk-dev] [PATCH] net/igc: fix Rx error counter for badlen packets

2021-03-31 Thread Alvin Zhang
When the size of the packet is less than the minimum or greater than the maximum, the packet will be counted twice in the error packet counter. Fixes: e6defdfddc3b ("net/igc: enable statistics") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_ethdev.c | 3 +

[dpdk-dev] [PATCH] net/e1000: fix Rx error counters for badlen packets

2021-03-31 Thread Alvin Zhang
When the size of the packet is less than the minimum or greater than the maximum, the packet will be counted twice in the error packet counter. Fixes: 70bdb18657da ("ethdev: add Rx error counters for missed, badcrc and badlen packets") Cc: sta...@dpdk.org Signed-off-by: A

[dpdk-dev] [PATCH v2] net/igc: fix Rx error counter for badlen packets

2021-03-31 Thread Alvin Zhang
error packet twice when counting the total number of received error packets. Fixes: e6defdfddc3b ("net/igc: enable statistics") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- V2: Refine commit log --- drivers/net/igc/igc_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletion

[dpdk-dev] [PATCH v2] net/e1000: fix Rx error counter for badlen packets

2021-03-31 Thread Alvin Zhang
error packet twice when counting the total number of received error packets. Fixes: 70bdb18657da ("ethdev: add Rx error counters for missed, badcrc and badlen packets") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- V2: Refine commit log --- drivers/net/e1000/em_ethdev.c | 3 +-- d

[dpdk-dev] [PATCH v2] net/igc: fix Rx error counter for badlen packets

2021-03-31 Thread Alvin Zhang
error packet twice when counting the total number of received error packets. Fixes: e6defdfddc3b ("net/igc: enable statistics") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- V2: Refine commit log --- drivers/net/igc/igc_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletion

[dpdk-dev] [PATCH v2] net/e1000: fix Rx error counter for badlen packets

2021-03-31 Thread Alvin Zhang
error packet twice when counting the total number of received error packets. Fixes: 70bdb18657da ("ethdev: add Rx error counters for missed, badcrc and badlen packets") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- V2: Refine commit log --- drivers/net/e1000/em_ethdev.c | 3 +-- d

[dpdk-dev] [PATCH] net/e1000: fix max Rx packet size

2021-04-08 Thread Alvin Zhang
: fix max RX packet size and support dual VLAN") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/e1000/igb_ethdev.c | 5 ++--- drivers/net/e1000/igb_rxtx.c | 9 ++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers

[dpdk-dev] [PATCH v2] net/e1000: fix max Rx packet size

2021-04-08 Thread Alvin Zhang
t;igb: fix max RX packet size and support dual VLAN") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- V2: Update commit log --- drivers/net/e1000/igb_ethdev.c | 5 ++--- drivers/net/e1000/igb_rxtx.c | 9 ++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH] net/i40e: fix IPv6 fragment RSS offload type in flow

2021-10-12 Thread Alvin Zhang
ned-off-by: Alvin Zhang --- drivers/net/i40e/i40e_hash.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/i40e/i40e_hash.c b/drivers/net/i40e/i40e_hash.c index 6579b1a..508a2cf 100644 --- a/drivers/net/i40e/i40e_hash.c +++ b/drivers/net/i40e/i40e_hash.c @@ -28,6 +28,7 @

[dpdk-dev] [PATCH v2] net/i40e: fix IPv6 fragment RSS offload type in flow

2021-10-18 Thread Alvin Zhang
Signed-off-by: Alvin Zhang --- v2: Update the flow pattern, the previous is "eth / ipv6_frag_ext", now is "eth / ipv6 / ipv6_frag_ext" --- doc/guides/nics/features/i40e.ini | 1 + drivers/net/i40e/i40e_hash.c | 13 - 2 files changed, 13 insertions(+), 1

[dpdk-dev] [PATCH] net/i40e: disable source pruning

2021-10-19 Thread Alvin Zhang
VRRP advertisement packets are dropped on i40e PF devices because when a MAC address is added to a device, packets originating from that MAC address are dropped. This patch disables source pruning to work around that issue. Signed-off-by: Alvin Zhang --- drivers/net/i40e/i40e_ethdev.c | 4

[dpdk-dev] [PATCH v2] net/i40e: disable source pruning

2021-10-19 Thread Alvin Zhang
VRRP advertisement packets are dropped on i40e PF devices because when a MAC address is added to a device, packets originating from that MAC address are dropped. This patch adds a devarg to support disabling source pruning to work around above issue. Signed-off-by: Alvin Zhang --- doc/guides

[dpdk-dev] [PATCH v3] net/i40e: disable source pruning

2021-10-19 Thread Alvin Zhang
VRRP advertisement packets are dropped on i40e PF devices because when a MAC address is added to a device, packets originating from that MAC address are dropped. This patch adds a devarg to support disabling source pruning to work around above issue. Bugzilla ID: 648 Signed-off-by: Alvin Zhang

[dpdk-dev] [PATCH] net/ice: add ability to reduce the Rx latency

2021-09-13 Thread Alvin Zhang
This patch adds a devarg parameter to enable/disable reducing the Rx latency. Signed-off-by: Alvin Zhang --- doc/guides/nics/ice.rst | 8 drivers/net/ice/ice_ethdev.c | 26 +++--- drivers/net/ice/ice_ethdev.h | 1 + 3 files changed, 32 insertions(+), 3

[dpdk-dev] [PATCH v8] ethdev: add IPv4 and L4 checksum RSS offload types

2021-09-14 Thread Alvin Zhang
uot;, this flow causes all matching packets to be distributed to queues on basis of IPv4 checksum. Signed-off-by: Alvin Zhang Reviewed-by: Qi Zhang Acked-by: Ajit Khaparde Acked-by: Aman Deep Singh --- v6: rebase to eeedef70, update some note v7: fix code style issues v8: rebase to 22a9f34e67

[dpdk-dev] [PATCH v2 1/2] app/testpmd: update forward engine beginning

2021-09-16 Thread Alvin Zhang
ding, this patch updates it's return type, then we can add some checks in it to confirm whether the forwarding can be started. In addition, this patch puts the calling part of the callback up to before some forwarding related status being set. Signed-off-by: Alvin Zhang --- app/test-pmd/iee

[dpdk-dev] [PATCH v2 2/2] app/testpmd: fix txonly forwording

2021-09-16 Thread Alvin Zhang
e all above conditions are meet. Bugzilla ID: 797 Fixes: 79bec05b32b7 ("app/testpmd: add ability to split outgoing packets") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- app/test-pmd/txonly.c | 67 ++- 1 file changed, 55 insertions(+

[dpdk-dev] [PATCH v2] net/ice: add support for low Rx latency

2021-09-17 Thread Alvin Zhang
This patch adds a devarg parameter to enable/disable low Rx latency. Signed-off-by: Alvin Zhang --- doc/guides/nics/ice.rst | 12 drivers/net/ice/ice_ethdev.c | 26 +++--- drivers/net/ice/ice_ethdev.h | 1 + 3 files changed, 36 insertions(+), 3 deletions

[dpdk-dev] [PATCH v3 1/2] app/testpmd: update forward engine beginning

2021-09-17 Thread Alvin Zhang
ding, this patch updates it's return type, then we can add some checks in it to confirm whether the forwarding can be started. In addition, this patch puts the calling part of the callback up to before some forwarding related status being set. Signed-off-by: Alvin Zhang --- app/test-pmd/flo

[dpdk-dev] [PATCH v3 2/2] app/testpmd: fix txonly forwording

2021-09-17 Thread Alvin Zhang
e all above conditions are meet. Bugzilla ID: 797 Fixes: 79bec05b32b7 ("app/testpmd: add ability to split outgoing packets") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- app/test-pmd/txonly.c | 67 ++- 1 file changed, 55 insertions(+

[dpdk-dev] [PATCH v4 1/2] app/testpmd: update forward engine beginning

2021-09-21 Thread Alvin Zhang
ding, this patch updates its return value then we can add some checks in it to confirm whether the forwarding can be started. In addition, this patch calls the callback before the forwarding stats is reset and then launches the forwarding engine. Bugzilla ID: 797 Cc: sta...@dpdk.org Signed-off

[dpdk-dev] [PATCH v4 2/2] app/testpmd: fix txonly forwording

2021-09-21 Thread Alvin Zhang
e all above conditions are met. Bugzilla ID: 797 Fixes: 79bec05b32b7 ("app/testpmd: add ability to split outgoing packets") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- app/test-pmd/txonly.c | 67 ++- 1 file changed, 55 insertions(+

[dpdk-dev] [PATCH v5 1/2] app/testpmd: update forward engine beginning

2021-09-22 Thread Alvin Zhang
ding, this patch updates its return value then we can add some checks in it to confirm whether the forwarding can be started. In addition, this patch calls the callback before the forwarding stats is reset and then launches the forwarding engine. Bugzilla ID: 797 Cc: sta...@dpdk.org Signed-off

[dpdk-dev] [PATCH v5 2/2] app/testpmd: fix txonly forwording

2021-09-22 Thread Alvin Zhang
e all above conditions are met. Bugzilla ID: 797 Fixes: 79bec05b32b7 ("app/testpmd: add ability to split outgoing packets") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang Acked-by: Xiaoyun Li --- v5: fixes a compilation issue --- app/test-pm

[dpdk-dev] [PATCH v6 1/2] app/testpmd: update forward engine beginning

2021-09-23 Thread Alvin Zhang
ding, this patch updates its return value then we can add some checks in it to confirm whether the forwarding can be started. In addition, this patch calls the callback before the forwarding stats is reset and then launches the forwarding engine. Bugzilla ID: 797 Cc: sta...@dpdk.org Signed-off

[dpdk-dev] [PATCH v6 2/2] app/testpmd: fix txonly forwarding

2021-09-23 Thread Alvin Zhang
e all above conditions are met. Bugzilla ID: 797 Fixes: 79bec05b32b7 ("app/testpmd: add ability to split outgoing packets") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang Acked-by: Xiaoyun Li --- v5: fixes a compilation issue v6: update the commit summary and some logs --- app/test-pm

[dpdk-dev] [PATCH v3] net/ice: add support for low Rx latency

2021-09-24 Thread Alvin Zhang
This patch adds a devarg parameter to enable/disable low Rx latency. Signed-off-by: Alvin Zhang --- v3: rebase to dpdk-next-net-intel --- doc/guides/nics/ice.rst | 12 drivers/net/ice/ice_ethdev.c | 26 +++--- drivers/net/ice/ice_ethdev.h | 1 + 3 files

[dpdk-dev] [PATCH v2] net/ice: support IPv4/L4 checksum RSS offload

2021-09-24 Thread Alvin Zhang
Add supports for RSS_IPV4_CHKSUM & RSS_L4_CHKSUM RSS offload types in RSS flow. Signed-off-by: Alvin Zhang --- v2: rebase to dpdk-next-net-intel --- drivers/net/ice/ice_hash.c | 33 ++--- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/drivers/net

[dpdk-dev] [PATCH v2 1/2] common/iavf: enable hash calculation based on IPv4 checksum

2021-09-24 Thread Alvin Zhang
Add IPv4 header checksum field selector, it can be used in creating FDIR or RSS rules related to IPv4 header checksum. Signed-off-by: Alvin Zhang --- v2: rebase to dpdk-next-net-intel --- drivers/common/iavf/virtchnl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/common/iavf

[dpdk-dev] [PATCH v2 2/2] net/iavf: support IPv4/L4 checksum RSS offload

2021-09-24 Thread Alvin Zhang
Add supports for RSS_IPV4_CHKSUM & RSS_L4_CHKSUM RSS offload types in RSS flow. Signed-off-by: Alvin Zhang --- v2: rebase to dpdk-next-net-intel --- drivers/net/iavf/iavf_hash.c | 38 +++--- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/dri

[dpdk-dev] [PATCH v4] net/ice: add support for low Rx latency

2021-09-24 Thread Alvin Zhang
This patch adds a devarg parameter to enable/disable low Rx latency. Signed-off-by: Alvin Zhang --- v3: rebase to dpdk-next-net-intel v4: rename arg rx-low-latency to rx_low_latency --- doc/guides/nics/ice.rst | 12 drivers/net/ice/ice_ethdev.c | 26

[dpdk-dev] [PATCH v5] net/ice: add support for low Rx latency

2021-09-24 Thread Alvin Zhang
This patch adds a devarg parameter to enable/disable low Rx latency. Signed-off-by: Alvin Zhang --- v3: rebase to dpdk-next-net-intel v4: rename arg rx-low-latency to rx_low_latency v5: rename macro ICE_RX_LOW_LATENCY to ICE_RX_LOW_LATENCY_ARG --- doc/guides/nics/ice.rst | 12

[dpdk-dev] [PATCH v3] net/ice: support IPv4/L4 checksum RSS offload

2021-09-24 Thread Alvin Zhang
Add supports for RSS_IPV4_CHKSUM & RSS_L4_CHKSUM RSS offload types in RSS flow. Signed-off-by: Alvin Zhang --- v2: rebase to dpdk-next-net-intel v3: add release note --- doc/guides/rel_notes/release_21_11.rst | 3 ++- drivers/net/ice/ice_hash.c

[dpdk-dev] [PATCH v3 1/2] common/iavf: enable hash calculation based on IPv4 checksum

2021-09-24 Thread Alvin Zhang
Add IPv4 header checksum field selector, it can be used in creating FDIR or RSS rules related to IPv4 header checksum. Signed-off-by: Alvin Zhang --- v2: rebase to dpdk-next-net-intel --- drivers/common/iavf/virtchnl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/common/iavf

[dpdk-dev] [PATCH v3 2/2] net/iavf: support IPv4/L4 checksum RSS offload

2021-09-24 Thread Alvin Zhang
Add supports for RSS_IPV4_CHKSUM & RSS_L4_CHKSUM RSS offload types in RSS flow. Signed-off-by: Alvin Zhang --- v2: rebase to dpdk-next-net-intel v3: add release note --- doc/guides/rel_notes/release_21_11.rst | 4 drivers/net/iavf/iavf_hash.c

[dpdk-dev] [PATCH] net/i40e: fix Rx packet statistics

2021-09-26 Thread Alvin Zhang
RXERR1' counter when reporting DPDK statistics. Fixes: f4a91c38b4ad ("i40e: add extended stats") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/i40e/i40e_ethdev.c | 16 +--- drivers/net/i40e/i40e_ethdev.h | 10 ++ 2 files changed, 23 insertions

[dpdk-dev] [PATCH v2] net/i40e: fix Rx packet statistics

2021-09-27 Thread Alvin Zhang
ster 'GL_RXERR1' can count above discarded packets. This patch adds reading and calculation of the 'GL_RXERR1' counter when reporting DPDK statistics. Fixes: f4a91c38b4ad ("i40e: add extended stats") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/n

[dpdk-dev] [PATCH v4] ethdev: add IPv4 and L4 checksum RSS offload types

2021-07-12 Thread Alvin Zhang
uot;, this flow causes all matching packets to be distributed to queues on basis of IPv4 checksum. Signed-off-by: Alvin Zhang Reviewed-by: Andrew Rybchenko Acked-by: Ajit Khaparde Acked-by: Aman Deep Singh --- v3: Add L4 checksum RSS offload type v4: Add doc and help string, update commit lo

[dpdk-dev] [PATCH v2] net/ice/base: support MPLS ethertype switch filter

2021-07-12 Thread Alvin Zhang
ded to queue 2. Signed-off-by: Alvin Zhang --- drivers/net/ice/base/ice_switch.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 229b355..5926635 100644 --- a/drivers/

[dpdk-dev] [PATCH] net/iavf: fix virtual channel RSS command error handling

2021-07-20 Thread Alvin Zhang
error result of above two commands and will print warnings instead. Fixes: 5a038d19962d ("net/iavf: fix RSS configuration on i40e VF") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_ethdev.c | 26 ++ 1 file changed, 14 insertions(+), 12

[dpdk-dev] [PATCH v2] net/iavf: fix virtual channel RSS command error handling

2021-07-26 Thread Alvin Zhang
error result of above two commands and will print warnings instead. Fixes: 5a038d19962d ("net/iavf: fix RSS configuration on i40e VF") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_ethdev.c | 34 ++ 1 file changed, 22 inserti

[PATCH] net/iavf: fix pointer of meter data

2021-11-10 Thread Alvin Zhang
This patch fixes coverity issue by directly passing the address of the meter data to subfunction. Coverity issue: 373858 Fixes: 91f27b2e39ab ("net/iavf: refactor RSS") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_hash.c | 5 ++--- 1 file changed, 2 insert

[PATCH v2] net/iavf: fix pointer of meter data

2021-11-10 Thread Alvin Zhang
This patch fixes coverity issue by directly passing the address of the meter data to lower function. Coverity issue: 373867 Fixes: 91f27b2e39ab ("net/iavf: refactor RSS") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_hash.c | 5 ++--- 1 file changed, 2

[PATCH] net/ice: fix pointer of the meta data

2021-11-11 Thread Alvin Zhang
This patch fixes coverity issue by directly passing the address of the meter data to lower function. Coverity issue: 373867 Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/ice/ice_hash.c | 5 ++--- 1 file

[PATCH v2] net/ice: fix pointer of the meta data

2021-11-11 Thread Alvin Zhang
This patch fixes coverity issue by directly passing the address of the meta data to subfunction. Coverity issue: 373867 Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/ice/ice_hash.c | 5 ++--- 1 file changed, 2

[PATCH] net/ice: fix secondary process Rx offload path

2021-11-11 Thread Alvin Zhang
rg Signed-off-by: Alvin Zhang --- drivers/net/ice/ice_ethdev.h | 1 + drivers/net/ice/ice_rxtx.c | 19 +++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b/drivers/net/ice/ice_ethdev.h index 3a5bb9b..52daae0 100644 --- a/drive

[PATCH v2] net/ice: fix secondary process Rx offload path

2021-11-14 Thread Alvin Zhang
rg Signed-off-by: Alvin Zhang --- drivers/net/ice/ice_ethdev.h | 1 + drivers/net/ice/ice_rxtx.c | 19 +++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b/drivers/net/ice/ice_ethdev.h index 3a5bb9b..52daae0 100644 --- a/drive

[PATCH v3] net/ice: fix secondary process Rx offload path

2021-11-15 Thread Alvin Zhang
rg Signed-off-by: Alvin Zhang --- v3: Modify the patch according to comment. --- drivers/net/ice/ice_ethdev.h | 1 + drivers/net/ice/ice_rxtx.c | 10 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b/drivers/net/ice/ice_ethdev.h ind

[dpdk-dev] [PATCH] net/ice: fix VLAN filter with PF

2021-02-18 Thread Alvin Zhang
x27;t enable/disable the TX VLAN filter in the similar function ice_cfg_vlan_pruning. This patch removes the setting about the TX VLAN filter in function ice_vsi_config_vlan_filter. Fixes: e0dcf94a0d7f ("net/ice: support VLAN ops") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang ---

[dpdk-dev] [PATCH] net/ice: fix VLAN filter with PF

2021-02-18 Thread Alvin Zhang
x27;t enable/disable the TX VLAN filter in the similar function ice_cfg_vlan_pruning. This patch removes the setting about the TX VLAN filter in function ice_vsi_config_vlan_filter. Fixes: e0dcf94a0d7f ("net/ice: support VLAN ops") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang ---

[dpdk-dev] [PATCH v3] net/i40e: fix inputset field mask

2021-02-28 Thread Alvin Zhang
uot;i40e: allow filtering on more IP header fields") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- v2: Update commit log v3: Rename 'i40e_fd_get_field_offset' to 'i40e_get_inset_field_offset' --- drivers/net/i40e/i40e_ethdev.c | 158

[dpdk-dev] [PATCH v3] net/i40e: fix inputset field mask

2021-02-28 Thread Alvin Zhang
uot;i40e: allow filtering on more IP header fields") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- v2: Update commit log v3: Rename 'i40e_fd_get_field_offset' to 'i40e_get_inset_field_offset' --- drivers/net/i40e/i40e_ethdev.c | 158

[dpdk-dev] [PATCH v3] net/i40e: fix Rx packet statistics

2021-09-29 Thread Alvin Zhang
ster 'GL_RXERR1' can count above discarded packets. This patch adds reading and calculation of the 'GL_RXERR1' counter when reporting DPDK statistics. Fixes: f4a91c38b4ad ("i40e: add extended stats") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- v3:

[dpdk-dev] [PATCH v5] ethdev: add IPv4 and L4 checksum RSS offload types

2021-08-17 Thread Alvin Zhang
uot;, this flow causes all matching packets to be distributed to queues on basis of IPv4 checksum. Signed-off-by: Alvin Zhang Acked-by: Ajit Khaparde Acked-by: Aman Deep Singh --- v5: Add release note and code commands. --- app/test-pmd/cmdline.c | 4 ++- app/test-pm

[dpdk-dev] [PATCH v6] ethdev: add IPv4 and L4 checksum RSS offload types

2021-08-31 Thread Alvin Zhang
uot;, this flow causes all matching packets to be distributed to queues on basis of IPv4 checksum. Signed-off-by: Alvin Zhang Acked-by: Ajit Khaparde Acked-by: Aman Deep Singh --- v6: rebase to eeedef70, update some note --- app/test-pmd/cmdline.c | 4 +++- app/test-pm

[dpdk-dev] [PATCH v7] ethdev: add IPv4 and L4 checksum RSS offload types

2021-08-31 Thread Alvin Zhang
uot;, this flow causes all matching packets to be distributed to queues on basis of IPv4 checksum. Signed-off-by: Alvin Zhang Acked-by: Ajit Khaparde Acked-by: Aman Deep Singh --- v6: rebase to eeedef70, update some note v7: fix code style issues --- app/test-pmd/cmdline.c | 4

[dpdk-dev] [PATCH] app/testpmd: fix random number of Tx segments

2021-09-02 Thread Alvin Zhang
Fixes: 79bec05b32b7 ("app/testpmd: add ability to split outgoing packets") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- app/test-pmd/config.c | 16 +++- app/test-pmd/testpmd.c | 5 + app/test-pmd/testpmd.h | 5 + app/test-pmd/txonly.c | 7 +-- 4 fi

[dpdk-dev] [PATCH] net/ice: support IPv4/L4 checksum RSS offload

2021-09-08 Thread Alvin Zhang
Add supports for RSS_IPV4_CHKSUM & RSS_L4_CHKSUM RSS offload types in RSS flow. Signed-off-by: Alvin Zhang --- drivers/net/ice/ice_hash.c | 33 ++--- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice/ice_hash.c b/drivers/net

[dpdk-dev] [PATCH 1/2] common/iavf: enable hash calculation based on IPv4 checksum

2021-09-08 Thread Alvin Zhang
Add IPv4 header checksum field selector, it can be used in creating FDIR or RSS rules related to IPv4 header checksum. Signed-off-by: Alvin Zhang --- drivers/common/iavf/virtchnl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf

[dpdk-dev] [PATCH 2/2] net/iavf: support IPv4/L4 checksum RSS offload

2021-09-08 Thread Alvin Zhang
Add supports for RSS_IPV4_CHKSUM & RSS_L4_CHKSUM RSS offload types in RSS flow. Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_hash.c | 38 +++--- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/

[dpdk-dev] [PATCH] net/igc: fix Rx RSS hash offload capabilities

2021-03-24 Thread Alvin Zhang
Add DEV_RX_OFFLOAD_RSS_HASH flag to the PMD's Rx offload capabilities for it supports RSS hash delivery. Fixes: 4f09bc55ac3d ("net/igc: implement device base operations") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_ethdev.c | 3 +++ drivers/net/igc/i

[dpdk-dev] [PATCH] net/ice/base: support MPLS ethertype switch filter

2021-03-28 Thread Alvin Zhang
2. Signed-off-by: Alvin Zhang --- drivers/net/ice/base/ice_switch.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 3dc7642..5a64cb7 100644 --- a/drivers/net/ice/base

[dpdk-dev] [PATCH v2] net/ice: fix txq vector path selection

2021-05-07 Thread Alvin Zhang
If Tx vector mode is disabled, the txq vector mode should be disabled too. This patch adds checking of Tx vector mode before enabling txq vector mode. Fixes: 28f9002ab67f ("net/ice: add Tx AVX512 offload path") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- v2: Update

[dpdk-dev] [PATCH v3] net/ice: fix txq vector path selection

2021-05-07 Thread Alvin Zhang
If vector mode is not allowed for Tx, no need to perform vector related setup for Tx queue. The patch deferred vector setup for Tx queue to the place that vector mode is confirmed to be allowed. Fixes: 28f9002ab67f ("net/ice: add Tx AVX512 offload path") Signed-off-by: Alvin Zhang

[dpdk-dev] [PATCH 1/3] net/i40e: fix return status for unsupported VF message

2021-05-10 Thread Alvin Zhang
This patch modifies the return status for unsupported VF messages, in order to make it the same as the return status of the kernel driver. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/i40e/i40e_pf.c | 4 ++-- 1 fi

[dpdk-dev] [PATCH] net/iavf: fix error logs

2021-05-10 Thread Alvin Zhang
uot;) Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_vchnl.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index ca5c56e..dfa7ce3 100644 --- a/drivers/net/iavf/iavf_vchnl.c +++ b/drivers/n

[dpdk-dev] [PATCH 2/3] common/iavf: fix V-channel status

2021-05-10 Thread Alvin Zhang
Add VIRTCHNL_STATUS_ERR_NOT_IMPLEMENTED to enum virtchnl_status_code. Fixes: e5b2a9e957e7 ("net/avf/base: add base code for avf PMD") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/common/iavf/virtchnl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/c

[dpdk-dev] [PATCH 3/3] net/iavf: fix V-channel status

2021-05-10 Thread Alvin Zhang
: 0c35eecfe8b5 ("net/iavf: fix VF to PF command failure handling") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_vchnl.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index 5d57e8

[dpdk-dev] [PATCH v2 1/3] net/i40e: fix return status for unsupported VF message

2021-05-10 Thread Alvin Zhang
This patch modifies the return status for unsupported VF messages, in order to make it the same as the return status of the kernel driver. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/i40e/i40e_pf.c | 4 ++-- 1 fi

[dpdk-dev] [PATCH v2 2/3] common/iavf: fix V-channel status

2021-05-10 Thread Alvin Zhang
Add VIRTCHNL_STATUS_ERR_NOT_IMPLEMENTED to enum virtchnl_status_code. Fixes: e5b2a9e957e7 ("net/avf/base: add base code for avf PMD") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/common/iavf/virtchnl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/c

[dpdk-dev] [PATCH v2 3/3] net/iavf: fix V-channel message status

2021-05-10 Thread Alvin Zhang
: 0c35eecfe8b5 ("net/iavf: fix VF to PF command failure handling") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_vchnl.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index 5d57e8

[dpdk-dev] [PATCH v3 1/3] net/i40e: fix return status for unsupported VF message

2021-05-10 Thread Alvin Zhang
This patch modifies the return status for unsupported VF messages, in order to make it the same as the return status of the kernel driver. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/i40e/i40e_pf.c | 4 ++-- 1 fi

[dpdk-dev] [PATCH v3 2/3] common/iavf: fix V-channel status

2021-05-10 Thread Alvin Zhang
Add VIRTCHNL_STATUS_ERR_NOT_IMPLEMENTED to enum virtchnl_status_code. Fixes: e5b2a9e957e7 ("net/avf/base: add base code for avf PMD") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/common/iavf/virtchnl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/c

[dpdk-dev] [PATCH v3 3/3] net/iavf: fix V-channel message status

2021-05-10 Thread Alvin Zhang
: 0c35eecfe8b5 ("net/iavf: fix VF to PF command failure handling") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_vchnl.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index 5d57e8

[dpdk-dev] [PATCH v2] net/iavf: fix error logs

2021-05-10 Thread Alvin Zhang
S") Signed-off-by: Alvin Zhang --- drivers/net/iavf/iavf_vchnl.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index ca5c56e..dfa7ce3 100644 --- a/drivers/net/iavf/iavf_vchnl.c +++ b/drivers/n

[dpdk-dev] [PATCH v2] net/i40e: fix offload flag checking in simple Tx datapath

2021-05-10 Thread Alvin Zhang
SK. Fixes: 146ffa81d05e ("net/i40e: add Tx preparation for simple Tx datapath") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/i40e/i40e_rxtx.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i4

[dpdk-dev] [PATCH v3] net/i40e: fix offload flag checking in simple Tx datapath

2021-05-11 Thread Alvin Zhang
SK. Fixes: 146ffa81d05e ("net/i40e: add Tx preparation for simple Tx datapath") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- v3: Update codes according to comments --- drivers/net/i40e/i40e_rxtx.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --gi

[dpdk-dev] [PATCH] net/i40e: fix VF RSS configuration

2021-05-11 Thread Alvin Zhang
The kernel driver supports VF RSS configuration message "VIRTCHNL_OP_GET_RSS_HENA_CAPS and VIRTCHNL_OP_SET_RSS_HENA", this patch adds PMD support for these messages. Fixes: b81295c474b0 ("net/i40e: add user callback for VF to PF message") Cc: sta...@dpdk.org Signed

[dpdk-dev] [PATCH v2] net/i40e: fix VF RSS configuration

2021-05-11 Thread Alvin Zhang
The kernel driver supports VF RSS configuration message "VIRTCHNL_OP_GET_RSS_HENA_CAPS and VIRTCHNL_OP_SET_RSS_HENA", this patch adds PMD support for these messages. Fixes: b81295c474b0 ("net/i40e: add user callback for VF to PF message") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH v3] net/i40e: fix VF RSS configuration

2021-05-12 Thread Alvin Zhang
The kernel driver supports VF RSS configuration message "VIRTCHNL_OP_GET_RSS_HENA_CAPS and VIRTCHNL_OP_SET_RSS_HENA", this patch adds PMD support for these messages. Fixes: b81295c474b0 ("net/i40e: add user callback for VF to PF message") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [DPDK] net/igc: fix speed configuration

2021-05-12 Thread Alvin Zhang
Fixed speed mode is not supported currently, this patch removes configurations for this mode and adds fault handling for ETH_LINK_SPEED_FIXED. Fixes: 4f09bc55ac3d ("net/igc: implement device base operations") Cc: sta...@dpdk.org Signed-off-by: Alvin Zhang --- drivers/net/igc/igc_eth

[dpdk-dev] [PATCH v4] net/i40e: fix VF RSS configuration

2021-05-12 Thread Alvin Zhang
The kernel driver supports VF RSS configuration message "VIRTCHNL_OP_GET_RSS_HENA_CAPS and VIRTCHNL_OP_SET_RSS_HENA", this patch adds PMD support for these messages. Fixes: b81295c474b0 ("net/i40e: add user callback for VF to PF message") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH] ethdev: add RSS offload type for L3 checksum

2021-06-02 Thread Alvin Zhang
Add ETH_RSS_L3_CHKSUM macro. Signed-off-by: Alvin Zhang --- lib/ethdev/rte_ethdev.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h index faf3bd9..4220ec5 100644 --- a/lib/ethdev/rte_ethdev.h +++ b/lib/ethdev/rte_ethdev.h @@ -537,6 +537,7

[dpdk-dev] [PATCH v2] ethdev: add IPv4 checksum RSS offload type

2021-06-03 Thread Alvin Zhang
l matching packets to be distributed to queues on basis of IPv4 checksum. Signed-off-by: Alvin Zhang --- app/test-pmd/cmdline.c | 2 ++ app/test-pmd/config.c | 1 + lib/ethdev/rte_ethdev.h | 1 + 3 files changed, 4 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c ind

  1   2   >