[PATCH v1] net/ice/base: fix symm RSS hash not valid for inner IPv4/6

2022-08-02 Thread Ting Xu
Inner IPv4 and IPv6 symmetric RSS hash is not valid for raw pattern. This patch fixes the issue by adding the corresponding protocol ID for inner IPv4/6. Fixes: 0837da2e27ae ("net/ice/base: support add HW profile for RSS raw flow") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drive

[PATCH v3] net/ice: fix raw flow input pattern value change in FDIR

2022-04-17 Thread Ting Xu
t;net/ice: enable protocol agnostic flow offloading in FDIR") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_fdir_filter.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drive

[PATCH v1] net/ice: fix not support VXLAN RSS hash in raw flow

2022-03-31 Thread Ting Xu
ned-off-by: Ting Xu --- drivers/net/ice/ice_hash.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c index afbb357fa3..6b338dc3e1 100644 --- a/drivers/net/ice/ice_hash.c +++ b/drivers/net/ice/ice_hash.c @@ -656,6 +656,7 @@ ice_hash_parse_r

[PATCH v2] net/ice: fix raw flow input pattern value change in FDIR

2022-03-27 Thread Ting Xu
t;net/ice: enable protocol agnostic flow offloading in FDIR") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_fdir_filter.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drive

[PATCH] net/ice: fix raw flow input pattern value change in FDIR

2022-03-17 Thread Ting Xu
t;net/ice: enable protocol agnostic flow offloading in FDIR") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_fdir_filter.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drive

[dpdk-dev] [PATCH v4 2/2] net/ice: enable protocol agnostic flow offloading in RSS

2021-11-03 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Library feature. Current rte_flow raw API is utilized. Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_21_11.rst | 1 + drivers/net/ice/ice_ethdev.h

[dpdk-dev] [PATCH v4 1/2] net/ice/base: support add HW profile for RSS raw flow

2021-11-03 Thread Ting Xu
Based on the parser library, we can directly set HW profile and associate VSI for RSS raw flows. Add symmetric hash configuration for raw flow. Signed-off-by: Ting Xu --- drivers/net/ice/base/ice_flow.c | 109 drivers/net/ice/base/ice_flow.h | 16 + 2 files

[dpdk-dev] [PATCH v4 0/2] enable protocol agnostic flow offloading in RSS

2021-11-03 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Library feature. Current rte_flow raw API is utilized. Ting Xu (2): net/ice/base: support add HW profile for RSS raw flow net/ice: enable protocol agnostic flow

[dpdk-dev] [PATCH v3 3/3] doc: add protocol agnostic flow offloading for RSS

2021-11-01 Thread Ting Xu
Protocol agnostic flow offloading for RSS hash is supported. Raw pattern input can be used to create RSS hash flow rules, using current rte_flow raw API. Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_21_11.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH v3 2/3] net/ice: enable protocol agnostic flow offloading in RSS

2021-11-01 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Library feature. Current rte_flow raw API is utilized. Signed-off-by: Ting Xu --- drivers/net/ice/ice_ethdev.h | 9 ++ drivers/net/ice/ice_hash.c | 286

[dpdk-dev] [PATCH v3 1/3] net/ice/base: support add HW profile for RSS raw flow

2021-11-01 Thread Ting Xu
Based on the parser library, we can directly set HW profile and associate VSI for RSS raw flows. Add symmetric hash configuration for raw flow. Signed-off-by: Ting Xu --- drivers/net/ice/base/ice_flow.c | 109 drivers/net/ice/base/ice_flow.h | 16 + 2 files

[dpdk-dev] [PATCH v3 0/3] enable protocol agnostic flow offloading in RSS

2021-11-01 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Library feature. Current rte_flow raw API is utilized. Ting Xu (3): net/ice/base: support add HW profile for RSS raw flow net/ice: enable protocol agnostic flow

[dpdk-dev] [PATCH v2 3/3] doc: add protocol agnostic flow offloading for RSS

2021-11-01 Thread Ting Xu
Protocol agnostic flow offloading for RSS hash is supported. Raw pattern input can be used to create RSS hash flow rules, using current rte_flow raw API. Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_21_11.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH v2 2/3] net/ice: enable protocol agnostic flow offloading in RSS

2021-11-01 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Libary feature. Current rte_flow raw API is utilized. Signed-off-by: Ting Xu --- drivers/net/ice/ice_ethdev.h | 9 ++ drivers/net/ice/ice_hash.c | 286

[dpdk-dev] [PATCH v2 1/3] net/ice/base: support add HW profile for RSS raw flow

2021-11-01 Thread Ting Xu
Based on the parser library, we can directly set HW profile and associate VSI for RSS raw flows. Add symmetric hash configuration for raw flow. Signed-off-by: Ting Xu --- drivers/net/ice/base/ice_flow.c | 109 drivers/net/ice/base/ice_flow.h | 16 + 2 files

[dpdk-dev] [PATCH v2 0/3] enable protocol agnostic flow offloading in RSS

2021-11-01 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Libary feature. Current rte_flow raw API is utilized. Ting Xu (3): net/ice/base: support add HW profile for RSS raw flow net/ice: enable protocol agnostic flow

[dpdk-dev] [PATCH v2 3/3] doc: add protocol agnostic flow offloading for RSS

2021-11-01 Thread Ting Xu
Protocol agnostic flow offloading for RSS hash is supported. Raw pattern input can be used to create RSS hash flow rules, using current rte_flow raw API. Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_21_11.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH v2 2/3] net/ice: enable protocol agnostic flow offloading in RSS

2021-11-01 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Libary feature. Current rte_flow raw API is utilized. Signed-off-by: Ting Xu --- drivers/net/ice/ice_ethdev.h | 9 ++ drivers/net/ice/ice_hash.c | 286

[dpdk-dev] [PATCH v2 1/3] net/ice: enable protocol agnostic flow offloading in RSS

2021-11-01 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Libary feature. Current rte_flow raw API is utilized. Signed-off-by: Ting Xu --- drivers/net/ice/ice_hash.c | 182 - 1 file changed

[dpdk-dev] [PATCH v2 0/3] enable protocol agnostic flow offloading in RSS

2021-11-01 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Libary feature. Current rte_flow raw API is utilized. Ting Xu (3): net/ice/base: support add HW profile for RSS raw flow net/ice: enable protocol agnostic flow

[dpdk-dev] [PATCH v2] net/ice: fix TM hierarchy commit flag not reset correctly

2021-10-20 Thread Ting Xu
stop. Then users can delete and add nodes to commit a new TM hierarchy configuration. Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf_ethdev.c | 7 +++ drivers/net/ice/ice_dcf_sched.c | 8 +

[dpdk-dev] [PATCH] net/ice: fix TM hierarchy commit flag not reset correctly

2021-10-13 Thread Ting Xu
stop. Then users can delete and add nodes to commit a new TM hierarchy configuration. Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf_ethdev.c | 7 +++ drivers/net/ice/ice_dcf_sched.c | 8 +

[dpdk-dev] [PATCH v1 2/2] doc: add protocol agnostic flow offloading for RSS hash

2021-10-08 Thread Ting Xu
Protocol agnostic flow offloading for RSS hash is supported. Raw pattern input can be used to create RSS hash flow rules, using current rte_flow raw API. Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_21_11.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes

[dpdk-dev] [PATCH v1 1/2] net/ice: enable protocol agnostic flow offloading in RSS

2021-10-08 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Libary feature. Current rte_flow raw API is utilized. Signed-off-by: Ting Xu --- drivers/net/ice/ice_hash.c | 182 - 1 file changed

[dpdk-dev] [PATCH v1 0/2] enable protocol agnostic flow offloading in RSS

2021-10-08 Thread Ting Xu
Enable protocol agnostic flow offloading to support raw pattern input for RSS hash flow rule creation. It is based on Parser Libary feature. Current rte_flow raw API is utilized. Ting Xu (2): net/ice: enable protocol agnostic flow offloading in RSS doc: add protocol agnostic flow offloading

[dpdk-dev] [PATCH v1] net/ice: fix wrong bandwidth config size in memory copy

2021-07-27 Thread Ting Xu
The memory size of bandwidth config parameters is not set correctly in memory copy process, which leads to the wrong values. This patch fixed the size to the correct value. Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF") Signed-off-by: Ting Xu --- drive

[dpdk-dev] [PATCH v1] net/ice: fix IPv6 fragment RSS L3 dst/src not work

2021-07-18 Thread Ting Xu
Since the header type of IPv6 fragment is wrong, the L3 dst/src RSS hash fields cannot work properly. This patch changed the header type from any to outer. Fixes: f1ea76eb6394 ("net/ice: support RSS hash for IP fragment") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drive

[dpdk-dev] [PATCH v2] net/iavf: fix wrong bandwidth unit in TM capability querying

2021-07-15 Thread Ting Xu
.@dpdk.org Signed-off-by: Ting Xu --- drivers/net/iavf/iavf_tm.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/net/iavf/iavf_tm.c b/drivers/net/iavf/iavf_tm.c index 558021014e..3c80276ff3 100644 --- a/drivers/net/iavf/iavf_tm.c +++ b/driver

[dpdk-dev] [PATCH v2] net/iavf: fix wrong bandwidth unit in TM capability querying

2021-07-15 Thread Ting Xu
.@dpdk.org Signed-off-by: Ting Xu --- drivers/net/iavf/iavf_tm.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/net/iavf/iavf_tm.c b/drivers/net/iavf/iavf_tm.c index 558021014e..613c472619 100644 --- a/drivers/net/iavf/iavf_tm.c +++ b/driver

[dpdk-dev] [PATCH v1] net/ice: fix not clear bandwidth correctly when DCF close

2021-07-14 Thread Ting Xu
starts next time. Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.c | 10 ++--- drivers/net/ice/ice_dcf.h | 1 + drivers/net/ice/ice_dcf_sched.c | 39 ++

[dpdk-dev] [PATCH v1] net/iavf: fix wrong bandwidth unit in TM capability querying

2021-07-14 Thread Ting Xu
.@dpdk.org Signed-off-by: Ting Xu --- drivers/net/iavf/iavf_tm.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/iavf/iavf_tm.c b/drivers/net/iavf/iavf_tm.c index 558021014e..c2908986b9 100644 --- a/drivers/net/iavf/iavf_tm.c +++ b/drivers/net/iavf

[dpdk-dev] [PATCH v2] net/ice: support QoS BW config after VF reset in DCF

2021-07-07 Thread Ting Xu
changed, bandwidth configuration will be replayed. Signed-off-by: Ting Xu --- v1->v2: rebase --- drivers/net/ice/ice_dcf.c| 11 +-- drivers/net/ice/ice_dcf.h| 2 ++ drivers/net/ice/ice_dcf_ethdev.c | 1 - drivers/net/ice/ice_dcf_parent.c | 3 ++ drivers/net/ice/ice_dcf_sche

[dpdk-dev] [PATCH v2] net/ice: fix error check for QoS in DCF

2021-07-07 Thread Ting Xu
This patch fixed some unreasonable error check. Move all checks into one helper function before configuring. Skip the check for DCF (VF0). Fixes: 3a5a5bfc618b ("net/ice: support QoS config VF bandwidth in DCF") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- v1->v2: rebase --- dr

[dpdk-dev] [PATCH] net/ice: fix unmatched integer type

2021-07-07 Thread Ting Xu
This patch fixed the unmatched interger type issue in the comparison, which causing compilation failure on RHEL. Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf_sched.c | 2 +- 1 file

[dpdk-dev] [PATCH v1] net/ice: fix error check for QoS in DCF

2021-07-06 Thread Ting Xu
This patch fixed some unreasonable error check. Move all checks into one helper function before configuring. Skip the check for DCF (VF0). Fixes: 3a5a5bfc618b ("net/ice: support QoS config VF bandwidth in DCF") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf_sc

[dpdk-dev] [PATCH v1] net/ice: fix DCF be configured with bandwidth limit

2021-07-06 Thread Ting Xu
the step to configure DCF bandwidth. Fixes: 3a5a5bfc618b ("net/ice: support QoS config VF bandwidth in DCF") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf_sched.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_dcf

[dpdk-dev] [PATCH v1] net/ice: support QoS BW config after VF reset in DCF

2021-07-02 Thread Ting Xu
changed, bandwidth configuration will be replayed. Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.c| 11 +-- drivers/net/ice/ice_dcf.h| 2 ++ drivers/net/ice/ice_dcf_ethdev.c | 1 - drivers/net/ice/ice_dcf_parent.c | 3 ++ drivers/net/ice/ice_dcf_sched.c | 53

[dpdk-dev] [PATCH v5 7/7] doc: release note for ETS-based Tx QoS

2021-07-01 Thread Ting Xu
Add 21.08 release note for ETS-based Tx QoS Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_21_08.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/rel_notes/release_21_08.rst b/doc/guides/rel_notes/release_21_08.rst index a6ecfdf3ce..35aa76a270 100644 --- a/doc

[dpdk-dev] [PATCH v5 6/7] net/iavf: check Tx packet with correct UP and queue

2021-07-01 Thread Ting Xu
Add check in the Tx packet preparation function, to guarantee that the packet with specific user priority is distributed to the correct Tx queue according to the configured Tx queue TC mapping. Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h | 10 drivers/net/iavf/iavf_rxtx.c

[dpdk-dev] [PATCH v5 5/7] net/iavf: query QoS cap and set queue TC mapping

2021-07-01 Thread Ting Xu
virtchnl. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h| 46 +++ drivers/net/iavf/iavf_ethdev.c | 37 ++ drivers/net/iavf/iavf_tm.c | 730 + drivers/net/iavf/iavf_vchnl.c | 56 ++- drivers/net/iavf/meson.build | 1

[dpdk-dev] [PATCH v5 4/7] net/ice: support QoS config VF bandwidth in DCF

2021-07-01 Thread Ting Xu
This patch supports the ETS-based QoS configuration. It enables the DCF to configure bandwidth limits for each VF VSI of different TCs. A hierarchy scheduler tree is built with port, TC and VSI nodes. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.c| 9

[dpdk-dev] [PATCH v5 3/7] net/ice: support DCF link status event handling

2021-07-01 Thread Ting Xu
When link status changes, DCF will receive virtchnl PF event message. Add support to handle this event, change link status and update link info. Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.h| 6 drivers/net/ice/ice_dcf_ethdev.c | 54 ++-- drivers

[dpdk-dev] [PATCH v5 2/7] net/ice/base: support DCF query port ETS adminq

2021-07-01 Thread Ting Xu
In the adminq command query port ETS function, the root node teid is needed. However, for DCF, the root node is not initialized, which will cause error when we refer to the variable. In this patch, we will check whether the root node is available or not first. Signed-off-by: Ting Xu --- drivers

[dpdk-dev] [PATCH v5 1/7] common/iavf: support ETS-based QoS offload configuration

2021-07-01 Thread Ting Xu
continuous and all allocated queues should be mapped. Signed-off-by: Ting Xu --- drivers/common/iavf/iavf_type.h | 2 + drivers/common/iavf/virtchnl.h | 131 2 files changed, 133 insertions(+) diff --git a/drivers/common/iavf/iavf_type.h b/drivers/common/iavf

[dpdk-dev] [PATCH v5 0/7] Enable ETS-based Tx QoS for VF in DCF

2021-07-01 Thread Ting Xu
. The scheduler tree will be passed to hardware to enable all above functions. Ting Xu (7): common/iavf: support ETS-based QoS offload configuration net/ice/base: support DCF query port ETS adminq net/ice: support DCF link status event handling net/ice: support QoS config VF bandwidth in DCF

[dpdk-dev] [PATCH v5 7/7] doc: release note for ETS-based Tx QoS

2021-07-01 Thread Ting Xu
Add 21.08 release note for ETS-based Tx QoS Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_21_08.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/rel_notes/release_21_08.rst b/doc/guides/rel_notes/release_21_08.rst index a6ecfdf3ce..35aa76a270 100644 --- a/doc

[dpdk-dev] [PATCH v5 6/7] net/iavf: check Tx packet with correct UP and queue

2021-07-01 Thread Ting Xu
Add check in the Tx packet preparation function, to guarantee that the packet with specific user priority is distributed to the correct Tx queue according to the configured Tx queue TC mapping. Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h | 10 + drivers/net/iavf/iavf_rxtx.c

[dpdk-dev] [PATCH v5 5/7] net/iavf: query QoS cap and set queue TC mapping

2021-07-01 Thread Ting Xu
virtchnl. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h| 46 +++ drivers/net/iavf/iavf_ethdev.c | 34 ++ drivers/net/iavf/iavf_tm.c | 724 + drivers/net/iavf/iavf_vchnl.c | 56 ++- drivers/net/iavf/meson.build | 1

[dpdk-dev] [PATCH v5 4/7] net/ice: support QoS config VF bandwidth in DCF

2021-07-01 Thread Ting Xu
This patch supports the ETS-based QoS configuration. It enables the DCF to configure bandwidth limits for each VF VSI of different TCs. A hierarchy scheduler tree is built with port, TC and VSI nodes. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.c| 9

[dpdk-dev] [PATCH v5 3/7] net/ice: support DCF link status event handling

2021-07-01 Thread Ting Xu
When link status changes, DCF will receive virtchnl PF event message. Add support to handle this event, change link status and update link info. Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.h| 6 drivers/net/ice/ice_dcf_ethdev.c | 54 ++-- drivers

[dpdk-dev] [PATCH v5 2/7] net/ice/base: support DCF query port ETS adminq

2021-07-01 Thread Ting Xu
In the adminq command query port ETS function, the root node teid is needed. However, for DCF, the root node is not initialized, which will cause error when we refer to the variable. In this patch, we will check whether the root node is available or not first. Signed-off-by: Ting Xu --- drivers

[dpdk-dev] [PATCH v5 1/7] common/iavf: support ETS-based QoS offload configuration

2021-07-01 Thread Ting Xu
continuous and all allocated queues should be mapped. Signed-off-by: Ting Xu --- drivers/common/iavf/iavf_type.h | 2 + drivers/common/iavf/virtchnl.h | 131 2 files changed, 133 insertions(+) diff --git a/drivers/common/iavf/iavf_type.h b/drivers/common/iavf

[dpdk-dev] [PATCH v5 0/7] Enable ETS-based Tx QoS for VF in DCF

2021-07-01 Thread Ting Xu
. The scheduler tree will be passed to hardware to enable all above functions. Ting Xu (7): common/iavf: support ETS-based QoS offload configuration net/ice/base: support DCF query port ETS adminq net/ice: support DCF link status event handling net/ice: support QoS config VF bandwidth in DCF

[dpdk-dev] [PATCH v4 7/7] doc: release note for ETS-based Tx QoS

2021-06-29 Thread Ting Xu
Add 21.08 release note for ETS-based Tx QoS Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_21_08.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/rel_notes/release_21_08.rst b/doc/guides/rel_notes/release_21_08.rst index a6ecfdf3ce..35aa76a270 100644 --- a/doc

[dpdk-dev] [PATCH v4 6/7] net/iavf: check Tx packet with correct UP and queue

2021-06-29 Thread Ting Xu
Add check in the Tx packet preparation function, to guarantee that the packet with specific user priority is distributed to the correct Tx queue according to the configured Tx queue TC mapping. Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h | 10 + drivers/net/iavf/iavf_rxtx.c

[dpdk-dev] [PATCH v4 5/7] net/iavf: query QoS cap and set queue TC mapping

2021-06-29 Thread Ting Xu
virtchnl. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h| 46 +++ drivers/net/iavf/iavf_ethdev.c | 34 ++ drivers/net/iavf/iavf_tm.c | 714 + drivers/net/iavf/iavf_vchnl.c | 56 ++- drivers/net/iavf/meson.build | 1

[dpdk-dev] [PATCH v4 4/7] net/ice: support QoS config VF bandwidth in DCF

2021-06-29 Thread Ting Xu
This patch supports the ETS-based QoS configuration. It enables the DCF to configure bandwidth limits for each VF VSI of different TCs. A hierarchy scheduler tree is built with port, TC and VSI nodes. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.c| 9

[dpdk-dev] [PATCH v4 3/7] net/ice: support DCF link status event handling

2021-06-29 Thread Ting Xu
When link status changes, DCF will receive virtchnl PF event message. Add support to handle this event, change link status and update link info. Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.h| 6 drivers/net/ice/ice_dcf_ethdev.c | 54 ++-- drivers

[dpdk-dev] [PATCH v4 2/7] net/ice/base: support DCF query port ETS adminq

2021-06-29 Thread Ting Xu
In the adminq command query port ETS function, the root node teid is needed. However, for DCF, the root node is not initialized, which will cause error when we refer to the variable. In this patch, we will check whether the root node is available or not first. Signed-off-by: Ting Xu --- drivers

[dpdk-dev] [PATCH v4 1/7] common/iavf: support ETS-based QoS offload configuration

2021-06-29 Thread Ting Xu
continuous and all allocated queues should be mapped. Signed-off-by: Ting Xu --- drivers/common/iavf/iavf_type.h | 2 + drivers/common/iavf/virtchnl.h | 131 2 files changed, 133 insertions(+) diff --git a/drivers/common/iavf/iavf_type.h b/drivers/common/iavf

[dpdk-dev] [PATCH v4 0/7] Enable ETS-based Tx QoS for VF in DCF

2021-06-29 Thread Ting Xu
. The scheduler tree will be passed to hardware to enable all above functions. Ting Xu (7): common/iavf: support ETS-based QoS offload configuration net/ice/base: support DCF query port ETS adminq net/ice: support DCF link status event handling net/ice: support QoS config VF bandwidth in DCF

[dpdk-dev] [PATCH v3 5/5] net/iavf: query QoS cap and set queue TC mapping

2021-06-25 Thread Ting Xu
virtchnl. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h| 45 +++ drivers/net/iavf/iavf_ethdev.c | 31 ++ drivers/net/iavf/iavf_tm.c | 667 + drivers/net/iavf/iavf_vchnl.c | 56 ++- drivers/net/iavf/meson.build | 1

[dpdk-dev] [PATCH v3 4/5] net/ice: support QoS config VF bandwidth in DCF

2021-06-25 Thread Ting Xu
This patch supports the ETS-based QoS configuration. It enables the DCF to configure bandwidth limits for each VF VSI of different TCs. A hierarchy scheduler tree is built with port, TC and VSI nodes. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.c| 6

[dpdk-dev] [PATCH v3 3/5] net/ice: support DCF link status event handling

2021-06-25 Thread Ting Xu
When link status changes, DCF will receive virtchnl PF event message. Add support to handle this event, change link status and update link info. Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.h| 6 drivers/net/ice/ice_dcf_ethdev.c | 54 ++-- drivers

[dpdk-dev] [PATCH v3 2/5] net/ice/base: support DCF query port ETS adminq

2021-06-25 Thread Ting Xu
In the adminq command query port ETS function, the root node teid is needed. However, for DCF, the root node is not initialized, which will cause error when we refer to the variable. In this patch, we will check whether the root node is available or not first. Signed-off-by: Ting Xu --- drivers

[dpdk-dev] [PATCH v3 1/5] common/iavf: support ETS-based QoS offload configuration

2021-06-25 Thread Ting Xu
continuous and all allocated queues should be mapped. Signed-off-by: Ting Xu --- drivers/common/iavf/iavf_type.h | 2 + drivers/common/iavf/virtchnl.h | 131 2 files changed, 133 insertions(+) diff --git a/drivers/common/iavf/iavf_type.h b/drivers/common/iavf

[dpdk-dev] [PATCH v3 0/5] Enable ETS-based Tx QoS for VF in DCF

2021-06-25 Thread Ting Xu
. The scheduler tree will be passed to hardware to enable all above functions. Ting Xu (5): common/iavf: support ETS-based QoS offload configuration net/ice/base: support DCF query port ETS adminq net/ice: support DCF link status event handling net/ice: support QoS config VF bandwidth in DCF

[dpdk-dev] [PATCH v2 5/5] net/iavf: query QoS cap and set queue TC mapping

2021-06-17 Thread Ting Xu
virtchnl. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h| 45 +++ drivers/net/iavf/iavf_ethdev.c | 31 ++ drivers/net/iavf/iavf_tm.c | 663 + drivers/net/iavf/iavf_vchnl.c | 56 ++- drivers/net/iavf/meson.build | 1

[dpdk-dev] [PATCH v2 4/5] net/ice: support QoS config VF bandwidth in DCF

2021-06-17 Thread Ting Xu
This patch supports the ETS-based QoS configuration. It enables the DCF to configure bandwidth limits for each VF VSI of different TCs. A hierarchy scheduler tree is built with port, TC and VSI nodes. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.c| 6

[dpdk-dev] [PATCH v2 3/5] net/ice: support DCF link status event handling

2021-06-17 Thread Ting Xu
When link status changes, DCF will receive virtchnl PF event message. Add support to handle this event, change link status and update link info. Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.h| 6 drivers/net/ice/ice_dcf_ethdev.c | 54 ++-- drivers

[dpdk-dev] [PATCH v2 2/5] net/ice/base: support DCF query port ETS adminq

2021-06-17 Thread Ting Xu
In the adminq command query port ETS function, the root node teid is needed. However, for DCF, the root node is not initialized, which will cause error when we refer to the variable. In this patch, we will check whether the root node is available or not first. Signed-off-by: Ting Xu --- drivers

[dpdk-dev] [PATCH v2 1/5] common/iavf: support ETS-based QoS offload configuration

2021-06-17 Thread Ting Xu
continuous and all allocated queues should be mapped. Signed-off-by: Ting Xu --- drivers/common/iavf/iavf_type.h | 2 + drivers/common/iavf/virtchnl.h | 125 2 files changed, 127 insertions(+) diff --git a/drivers/common/iavf/iavf_type.h b/drivers/common/iavf

[dpdk-dev] [PATCH v2 0/5] Enable ETS-based Tx QoS for VF in DCF

2021-06-17 Thread Ting Xu
. The scheduler tree will be passed to hardware to enable all above functions. Ting Xu (5): common/iavf: support ETS-based QoS offload configuration net/ice/base: support DCF query port ETS adminq net/ice: support DCF link status event handling net/ice: support QoS config VF bandwidth in DCF

[dpdk-dev] [PATCH v1] net/ice/base: fix wrong ptype bitmap for IP fragment

2021-06-09 Thread Ting Xu
bitmaps. Fixes: 843452817561 ("net/ice/base: support IP fragment RSS and FDIR") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/base/ice_flow.c | 36 ++--- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/drivers/net/ice/base/ic

[dpdk-dev] [PATCH v1] net/ice: fix wrong FDIR flow type for IPv4 fragment

2021-06-02 Thread Ting Xu
flow director for IP fragment packet") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_fdir_filter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index 092c704503..5cba56918a 100644 --- a/drive

[dpdk-dev] [PATCH v1 5/5] net/iavf: query QoS cap and set queue TC mapping

2021-05-31 Thread Ting Xu
virtchnl. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h| 45 +++ drivers/net/iavf/iavf_ethdev.c | 31 ++ drivers/net/iavf/iavf_tm.c | 675 + drivers/net/iavf/iavf_vchnl.c | 56 ++- drivers/net/iavf/meson.build | 1

[dpdk-dev] [PATCH v1 4/5] net/ice: support QoS config VF bandwidth in DCF

2021-05-31 Thread Ting Xu
This patch supports the ETS-based QoS configuration. It enables the DCF to configure bandwidth limits for each VF VSI of different TCs. A hierarchy scheduler tree is built with port, TC and VSI nodes. Signed-off-by: Qiming Yang Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.c| 6

[dpdk-dev] [PATCH v1 3/5] net/ice: support DCF link status event handling

2021-05-31 Thread Ting Xu
When link status changes, DCF will receive virtchnl PF event message. Add support to handle this event, change link status and update link info. Signed-off-by: Ting Xu --- drivers/net/ice/ice_dcf.h| 6 drivers/net/ice/ice_dcf_ethdev.c | 54 ++-- drivers

[dpdk-dev] [PATCH v1 2/5] net/ice/base: support DCF query port ETS adminq

2021-05-31 Thread Ting Xu
In the adminq command query port ETS function, the root node teid is needed. However, for DCF, the root node is not initialized, which will cause error when we refer to the variable. In this patch, we will check whether the root node is available or not first. Signed-off-by: Ting Xu --- drivers

[dpdk-dev] [PATCH v1 1/5] common/iavf: add support for ETS-based Tx QoS

2021-05-31 Thread Ting Xu
This patch adds support to configure ETS-based Tx QoS. Three parts of new virtchnl structures and opcodes are added to achieve: 1. Configure VF TC bandwidth limits. 2. VF queries current QoS configuration from PF. 3. Set up VF queue TC mapping. Signed-off-by: Ting Xu --- drivers/common/iavf

[dpdk-dev] [PATCH v1 0/5] Enable ETS-based Tx QoS for VF in DCF

2021-05-31 Thread Ting Xu
. The scheduler tree will be passed to hardware to enable all above functions. Ting Xu (5): common/iavf: add support for ETS-based Tx QoS net/ice/base: support DCF query port ETS adminq net/ice: support DCF link status event handling net/ice: support QoS config VF bandwidth in DCF net/iavf

[dpdk-dev] [PATCH v1] net/ice: fix wrong IP RSS configuration template

2021-05-08 Thread Ting Xu
, this patch only selects one of the above two segment header types based on rss types. Fixes: 672f321d09ed ("net/ice: support RSS hash for IP fragment") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_hash.c | 21 +++-- 1 file changed, 11 inserti

[dpdk-dev] [PATCH v1] net/ice: fix wrong IP RSS configuration template

2021-05-07 Thread Ting Xu
types. Fixes: 672f321d09ed ("net/ice: support RSS hash for IP fragment") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/ice/ice_hash.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/

[dpdk-dev] [PATCH v2] common/iavf: fix wrong order of protocol header types

2021-04-24 Thread Ting Xu
The new virtchnl protocol header types for IPv4 and IPv6 fragment are not added in order, which will break ABI. Move them to the end of the list. Signed-off-by: Ting Xu Fixes: e6a42fd9158b ("common/iavf: add protocol header for IP fragment") Cc: sta...@dpdk.org --- drivers/c

[dpdk-dev] [PATCH v1 2/2] common/iavf: fix wrong order of protocol header types

2021-04-23 Thread Ting Xu
The new virtchnl protocol header types for IPv4 and IPv6 fragment are not added in order, which will break ABI. Move them to the end of the list. Signed-off-by: Ting Xu Fixes: e6a42fd9158b ("common/iavf: add protocol header for IP fragment") Cc: sta...@dpdk.org --- drivers/c

[dpdk-dev] [PATCH v1 1/2] common/iavf: add header types for PPPoL2TPv2oUDP

2021-04-23 Thread Ting Xu
Added two virtchnl protocol header types for L2TPv2 and PPP to support the RSS hash for PPPoL2TPv2oUDP. Signed-off-by: Ting Xu --- drivers/common/iavf/virtchnl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index

[dpdk-dev] [PATCH v1] common/iavf: fix wrong order of protocol header types

2021-04-22 Thread Ting Xu
The new virtchnl protocol header types for IPv4 and IPv6 fragment are not added in order, which will break ABI. Move them to the end of the list. Also add PPP and L2TPv2 to align with virtchnl. Signed-off-by: Ting Xu Fixes: e6a42fd9158b ("common/iavf: add protocol header for IP fragment

[dpdk-dev] [PATCH v1] net/iavf: fix not release memory issue in large VF

2020-12-13 Thread Ting Xu
;) Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/iavf/iavf_vchnl.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index 33d03af653..c17ae06227 100644 --- a/drivers/net/iavf/iavf_vch

[dpdk-dev] [PATCH v1] net/iavf: fix RSS queue region size exceeds

2020-11-10 Thread Ting Xu
: e436cd43835b ("net/iavf: negotiate large VF and request more queues") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/iavf/iavf_fdir.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/iavf/iavf_fdir.c b/drivers/net/iavf/iavf_fdir.c index f584e5624c..d683a468c1 10

[dpdk-dev] [PATCH v1] net/iavf: fix cannot release mbufs issue

2020-11-10 Thread Ting Xu
out releasing directly. In this patch, rxrearm_nb is initialized to be zero in rx queue reset. Fixes: 319c421f3890 ("net/avf: enable SSE Rx Tx") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- drivers/net/iavf/iavf_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/iav

[dpdk-dev] [PATCH v2] doc: fix missing release note for large VF

2020-11-09 Thread Ting Xu
Update release note for large VF, supporting up to 256 queue pairs per VF. Fixes: e436cd43835b ("net/iavf: negotiate large VF and request more queues") Cc: sta...@dpdk.org Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_20_11.rst | 1 + 1 file changed, 1 insertion(+) diff -

[dpdk-dev] [PATCH v1] doc: update release note for large VF

2020-11-05 Thread Ting Xu
Update release note for large VF, supporting up to 256 queue pairs per VF. Signed-off-by: Ting Xu --- doc/guides/rel_notes/release_20_11.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst index 57e4b13ec0

[dpdk-dev] [PATCH v8 6/6] net/iavf: add enable/disable queues for large VF

2020-10-21 Thread Ting Xu
The current virtchnl structure for enable/disable queues only supports max 32 queue pairs. Use a new opcode and structure to indicate up to 256 queue pairs, in order to enable/disable queues in large VF case. Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h | 5 ++ drivers/net/iavf

[dpdk-dev] [PATCH v8 4/6] net/iavf: enable multiple queues configurations for large VF

2020-10-21 Thread Ting Xu
-by: Ting Xu --- drivers/net/iavf/iavf.h| 4 +++- drivers/net/iavf/iavf_ethdev.c | 18 +- drivers/net/iavf/iavf_vchnl.c | 11 ++- 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/drivers/net/iavf/iavf.h b/drivers/net/iavf/iavf.h index 49ccfeece

[dpdk-dev] [PATCH v8 3/6] net/iavf: negotiate large VF and request more queues

2020-10-21 Thread Ting Xu
region cannot be 16 anymore. Add the function to query max RSS queue region from PF, use it in the RSS initialization and future filters configuration. Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h| 7 +++- drivers/net/iavf/iavf_ethdev.c | 74 -- drivers

[dpdk-dev] [PATCH v8 5/6] net/iavf: enable IRQ mapping configuration for large VF

2020-10-21 Thread Ting Xu
virtchnl message multiple times if needed. Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h| 12 +--- drivers/net/iavf/iavf_ethdev.c | 50 +- drivers/net/iavf/iavf_vchnl.c | 50 +++--- 3 files changed, 97 insertions(+), 15

[dpdk-dev] [PATCH v8 0/6] enable large VF configuration

2020-10-21 Thread Ting Xu
VSI queues, IRQ mapping and enable/disable queues. Also, enable VF to query the max RSS queue region for RSS and filter configuration. Ting Xu (6): net/iavf: handle virtchnl event message without interrupt net/iavf: add IAVF request queues function net/iavf: negotiate large VF and request more

[dpdk-dev] [PATCH v8 2/6] net/iavf: add IAVF request queues function

2020-10-21 Thread Ting Xu
by interrupt first, the request queues command cannot receive the correct PF response and will wait until timeout. Therefore, disable interrupt before requesting queues in order to handle the event message asynchronously. Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h | 1 + drivers

[dpdk-dev] [PATCH v8 1/6] net/iavf: handle virtchnl event message without interrupt

2020-10-21 Thread Ting Xu
and handle it with interrupt disabled. To solve this issue, we add the virtchnl event message handling in the process of reading vitchnl messages in adminq from PF. Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h | 8 ++ drivers/net/iavf/iavf_vchnl.c | 138

[dpdk-dev] [PATCH v7 6/6] net/iavf: add enable/disable queues for large VF

2020-10-18 Thread Ting Xu
The current virtchnl structure for enable/disable queues only supports max 32 queue pairs. Use a new opcode and structure to indicate up to 256 queue pairs, in order to enable/disable queues in large VF case. Signed-off-by: Ting Xu --- drivers/net/iavf/iavf.h | 5 ++ drivers/net/iavf

  1   2   3   >