[dpdk-dev] [PATCH] net/ice: fix FDIR gtp_psc without qfi pattern issue

2020-01-21 Thread Yahui Cao
("net/ice: support flow director GTPU tunnel") Cc: sta...@dpdk.org Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 12 drivers/net/ice/ice_generic_flow.h | 6 ++ 2 files changed, 18 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drive

[dpdk-dev] [PATCH] net/ice: fix FDIR PASSTHRU issue

2020-01-20 Thread Yahui Cao
The original PASSTHRU implementation is forwarding to queue 0. The corrected implementation is forwarding to the next stage filter. Fixes: f5cafa961fae ("net/ice: add flow director create and destroy") Cc: sta...@dpdk.org Signed-off-by: Yahui Cao --- drivers/net/ice/base/ice_fd

[dpdk-dev] [PATCH v3] net/iavf: fix virtual channel return value error

2019-12-23 Thread Yahui Cao
s or not. However _clear_cmd() also resets the vf->cmd_retval to success, overwriting the actual return value which is used for diagnosis. So iavf_execute_vf_cmd() will always find vf->cmd_retval is success and then return success. Fixes: 22b123a36d07 ("net/avf: initialize PMD")

[dpdk-dev] [PATCH v2] net/iavf: fix virtual channel return value error

2019-12-22 Thread Yahui Cao
ctual return value which is used for diagnosis. So iavf_execute_vf_cmd() will always find vf->cmd_retval is success and then return success. Fixes: 22b123a36d07 ("net/avf: initialize PMD") Cc: sta...@dpdk.org Signed-off-by: Yahui Cao --- drivers/net/iavf/iavf.h | 10 +++

[dpdk-dev] [PATCH] net/iavf: fix virtual channel return value error

2019-12-18 Thread Yahui Cao
Original virtual channel return value is overwritten by _clear_cmd(). Fixes: 22b123a36d07 ("net/avf: initialize PMD") Cc: sta...@dpdk.org Signed-off-by: Yahui Cao --- drivers/net/iavf/iavf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/iavf/iavf.h b/drivers/net/i

[dpdk-dev] [PATCH v3 2/2] net/ice: add missing FDIR support for GTPU without extension header

2019-11-20 Thread Yahui Cao
Add FDIR support for normal GTP-U packet, which doesn't contain GTP_PSC extension header. Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel") Cc: yahui@intel.com Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 9 +++-- drivers/net/ice/ice

[dpdk-dev] [PATCH v3 0/2] fix FDIR support for GTPU

2019-11-20 Thread Yahui Cao
This patch series enables FDIR support for both GTP-U and GTP-U with extension header. - Patch 1 renames GTPU with extension header related variables - Patch 2 adds FDIR support for non-extension-header GTPU -- v3: * Change commit message v2: * Re-organize patch Yahui Cao (2): net/ice: fix

[dpdk-dev] [PATCH v3 1/2] net/ice: fix pattern name of GTPU with extension header

2019-11-20 Thread Yahui Cao
Pattern name of GTP-U flow with extension header should be xxx_gtpu_eh_xxx. So it will not conflict with the pattern name of a GTP-U flow that does not contains extension header. Fixes: 3e4eab9c2192 ("net/ice: add pattern manifest") Cc: ying.a.w...@intel.com Signed-off-by:

[dpdk-dev] [PATCH v2 2/2] net/ice: fix FDIR support for GTPU without extension header

2019-11-19 Thread Yahui Cao
Add FDIR support for normal GTP-U packet, which doesn't contain GTP_PSC extension header. Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel") Cc: yahui@intel.com Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 9 +++-- drivers/net/ice/ice

[dpdk-dev] [PATCH v2 1/2] net/ice: fix GTPU extension header renaming

2019-11-19 Thread Yahui Cao
GTP-U packet with extension header is GTP-U packet with GTP_PSC header inserted between GTP-U header and inner payload. Fixes: 3e4eab9c2192 ("net/ice: add pattern manifest") Cc: ying.a.w...@intel.com Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 5 +++-- drive

[dpdk-dev] [PATCH v2 0/2] fix FDIR support for GTPU

2019-11-19 Thread Yahui Cao
This patch series enables FDIR support for both GTP-U and GTP-U with extension header. - Patch 1 renames GTPU with extension header related variables - Patch 2 adds FDIR support for non-extension-header GTPU -- Yahui Cao (2): net/ice: fix GTPU extension header renaming net/ice: fix FDIR

[dpdk-dev] [PATCH 2/2] net/ice: fix FDIR support for GTPU without extension header

2019-11-19 Thread Yahui Cao
Add FDIR support for normal GTP-U packet, which doesn't contain GTP_PSC extension header. Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel") Cc: yahui@intel.com Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 10 -- 1 file change

[dpdk-dev] [PATCH 1/2] net/ice: fix GTPU and GTPU extension header mix

2019-11-19 Thread Yahui Cao
GTP-U packet with extension header is GTP-U packet with GTP_PSC header inserted between GTP-U header and inner payload. Fixes: 3e4eab9c2192 ("net/ice: add pattern manifest") Cc: ying.a.w...@intel.com Signed-off-by: Yahui Cao --- drivers/net/ice/ice_generic_flow.c | 14 ++--

[dpdk-dev] [PATCH 0/2] fix FDIR support for non-extension-header GTPU

2019-11-19 Thread Yahui Cao
This patch series fixes FDIR support only for GTP-U with extension header by adding support for GTP-U without extension header. - Patch 1 fixes ice flow GTPU with extension header definition - Patch 2 adds FDIR support for non-extension-header GTPU -- Yahui Cao (2): net/ice: fix GTPU and GTPU

[dpdk-dev] [PATCH] net/ice: fix FDIR rule duplication check failure

2019-11-19 Thread Yahui Cao
When FDIR filter detects duplicated rule and then returns EEXIST, ice flow will capture this error and return immediately. Fixes: 4e27d3ed02bd ("net/ice: fix flow API framework") Cc: ying.a.w...@intel.com Signed-off-by: Yahui Cao --- drivers/net/ice/ice_generic_flow.c | 7 +

[dpdk-dev] [PATCH v2 1/2] net/ice: fix FDIR programming status check issue

2019-11-18 Thread Yahui Cao
To make sure if FDIR programming succeed or fail, legacy programming status descriptor WB format is enabled and FDIR queue irq is opened. Fixes: 84dc7a95a2d3 ("net/ice: enable flow director engine") Cc: beilei.x...@intel.com Signed-off-by: Yahui Cao Signed-off-by: Beilei Xing --- d

[dpdk-dev] [PATCH v2 2/2] net/ice: fix FDIR rule failure after device stop

2019-11-18 Thread Yahui Cao
By moving irq enable/disable from device start/stop to FDIR setup/teardown, FDIR queue irq config is independent of LAN queue irq config. So device stop will not cause FDIR rule failure. Fixes: 84dc7a95a2d3 ("net/ice: enable flow director engine") Cc: beilei.x...@intel.com Signed-off

[dpdk-dev] [PATCH v2 0/2] fix testpmd quit error after FDIR rule created

2019-11-18 Thread Yahui Cao
This patch series fixes FDIR error when immediately quit without flushing FDIR rule in testpmd. - Patch 1 adds programming status check mechanism to monitor FDIR status. - Patch 2 moves FDIR queue irq config out of device start/stop. -- v2: * Seperate FDIR/LAN queue irq config Yahui Cao (2

[dpdk-dev] [PATCH] net/ice: fix missing spdx license identifier

2019-11-13 Thread Yahui Cao
Fixes: 84dc7a95a2d3 ("net/ice: enable flow director engine") Cc: beilei.x...@intel.com Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index

[dpdk-dev] [PATCH] net/ice: fix FDIR programming status check issue

2019-11-13 Thread Yahui Cao
To make sure if FDIR programming succeed or fail, legacy programming status descriptor WB format is enabled and FDIR queue irq is opened. Fixes: 84dc7a95a2d3 ("net/ice: enable flow director engine") Cc: beilei.x...@intel.com Signed-off-by: Yahui Cao Signed-off-by: Beilei Xing --- d

[dpdk-dev] [PATCH v2] net/ice: fix FDIR tunnel profile existence check

2019-11-04 Thread Yahui Cao
If first rule is issued and then the second rule is issued with the same input set as first rule's, FDIR driver can't find there is an identical input set. Fixes: d5ea22e9f4a5 ("net/ice: configure HW FDIR rule") Cc: beilei.x...@intel.com Signed-off-by: Yahui Cao

[dpdk-dev] [PATCH] net/ice: fix tunnel profile existence check

2019-11-04 Thread Yahui Cao
Fixes: d5ea22e9f4a5 ("net/ice: configure HW FDIR rule") Cc: beilei.x...@intel.com Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filt

[dpdk-dev] [PATCH v3] net/ice: remove GTPU tunnel support for inner L4

2019-10-30 Thread Yahui Cao
Remove unsupported flow as title. Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel") Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drive

[dpdk-dev] [PATCH v2] net/ice: remove GTPU tunnel support for inner L4

2019-10-30 Thread Yahui Cao
Currently, share code only support inner L3 matching. Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel") Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/net/ice/ice_fdir_filter.c

[dpdk-dev] [PATCH] net/ice: remove GTPU tunnel support for inner L4

2019-10-30 Thread Yahui Cao
Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel") Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index 736ccd54e..d80dafa20 10

[dpdk-dev] [PATCH] net/ice: fix IPv6 UDP port matching failure issue

2019-10-23 Thread Yahui Cao
Reverse the src and dest notion, since the HW expects them to be from Tx perspective where as the input from user is from Rx filter view. Fixes: 2dbef0825ef7 ("net/ice: add FDIR create and destroy") Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 4 ++-- 1 file

[dpdk-dev] [PATCH] app/testpmd: increase rss max queue indices size

2019-10-22 Thread Yahui Cao
tisfy PMD's requirement and it needs to become bigger. Signed-off-by: Yahui Cao --- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index b26b8bfe2..983a33d4a 100644 --- a/ap

[dpdk-dev] [PATCH] net/ice: fix IPv6 dest mac unsupported issue

2019-10-22 Thread Yahui Cao
Fixes: 2dbef0825ef7 ("net/ice: add FDIR create and destroy") Signed-off-by: Yahui Cao --- 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 80da6ee24..a85a02cd0 100644 ---

[dpdk-dev] [PATCH v7 5/9] net/ice: add FDIR counter resource init/release

2019-10-17 Thread Yahui Cao
The patch integrates the counter resource init/release into fdir's init/release scenario Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 33 +++ drivers/net/ice/ice_fdir_filter.c | 92 +++ 2 files changed, 125 inser

[dpdk-dev] [PATCH v7 9/9] net/ice: add FDIR GTPU tunnel support

2019-10-17 Thread Yahui Cao
Enable FDIR GTPU matching for RTE_FLOW Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 4 + drivers/net/ice/ice_fdir_filter.c | 147 -- 2 files changed, 141 insertions(+), 10 deletions(-) diff --git a/drivers/net/ice

[dpdk-dev] [PATCH v7 8/9] net/ice: add FDIR vxlan tunnel support

2019-10-17 Thread Yahui Cao
Enable FDIR vxlan tunnel matching for RTE_FLOW Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 8 +++ drivers/net/ice/ice_fdir_filter.c | 108 ++ 2 files changed, 104 insertions(+), 12 deletions(-) diff --git a/drivers/net/ice

[dpdk-dev] [PATCH v7 6/9] net/ice: add FDIR counter support

2019-10-17 Thread Yahui Cao
This patch add FDIR statistical counter support and it includes RTE_FLOW count actions support and query support. RTE_FLOW count actions support id and shared. RTE_FLOW query record packet hits by default. Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 7

[dpdk-dev] [PATCH v7 3/9] net/ice: add FDIR create and destroy

2019-10-17 Thread Yahui Cao
Add ice_create_fdir_filter to create a rule. If a flow is matched by flow director filter, filter rule will be set to HW. For now common pattern and queue/passthru/drop/mark actions are supported. Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- doc/guides/rel_notes/release_19_11.rst | 1

[dpdk-dev] [PATCH v7 7/9] net/ice: reject duplicate flow for FDIR

2019-10-17 Thread Yahui Cao
Enable duplication lookup for existing flow director rule entry. Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/Makefile | 2 +- drivers/net/ice/ice_ethdev.h | 17 +++ drivers/net/ice/ice_fdir_filter.c | 185 -- 3 files changed, 196

[dpdk-dev] [PATCH v7 2/9] net/ice: configure HW FDIR rule

2019-10-17 Thread Yahui Cao
From: Beilei Xing This patch adds a HW FDIR rule to the FDIR HW table without adding a FDIR filter. Signed-off-by: Beilei Xing Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 2 + drivers/net/ice/ice_fdir_filter.c | 277 +- 2 files changed, 278 inserti

[dpdk-dev] [PATCH v7 4/9] net/ice: enable FDIR queue group

2019-10-17 Thread Yahui Cao
FDIR can send packet to a group of queues and distruibte it by RSS. Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_fdir_filter.c | 68 +++ 1 file changed, 68 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice

[dpdk-dev] [PATCH v7 1/9] net/ice: enable flow director engine

2019-10-17 Thread Yahui Cao
From: Beilei Xing Enable flow director engine, including initialization and teardown. - Control VSI create and release. - Queue pair allocated, set up and release. - Programming packet create and release. - FDIR profile create and release. Signed-off-by: Beilei Xing Acked-by: Qi Zhang ---

[dpdk-dev] [PATCH v7 0/9] net/ice: add ice Flow Director driver

2019-10-17 Thread Yahui Cao
HW FDIR rule Yahui Cao (7): net/ice: add FDIR create and destroy net/ice: enable FDIR queue group net/ice: add FDIR counter resource init/release net/ice: add FDIR counter support net/ice: reject duplicate flow for FDIR net/ice: add FDIR vxlan tunnel support net/ice: add FDIR GTPU

[dpdk-dev] [PATCH v6 9/9] net/ice: add FDIR GTPU tunnel support

2019-10-17 Thread Yahui Cao
Enable FDIR GTPU matching for RTE_FLOW Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 4 + drivers/net/ice/ice_fdir_filter.c | 147 -- 2 files changed, 141 insertions(+), 10 deletions(-) diff --git a/drivers/net/ice

[dpdk-dev] [PATCH v6 4/9] net/ice: enable FDIR queue group

2019-10-17 Thread Yahui Cao
FDIR can send packet to a group of queues and distruibte it by RSS. Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_fdir_filter.c | 68 +++ 1 file changed, 68 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice

[dpdk-dev] [PATCH v6 8/9] net/ice: add FDIR vxlan tunnel support

2019-10-17 Thread Yahui Cao
Enable FDIR vxlan tunnel matching for RTE_FLOW Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 8 +++ drivers/net/ice/ice_fdir_filter.c | 108 ++ 2 files changed, 104 insertions(+), 12 deletions(-) diff --git a/drivers/net/ice

[dpdk-dev] [PATCH v6 5/9] net/ice: add FDIR counter resource init/release

2019-10-17 Thread Yahui Cao
The patch integrates the counter resource init/release into fdir's init/release scenario Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 33 +++ drivers/net/ice/ice_fdir_filter.c | 92 +++ 2 files changed, 125 inser

[dpdk-dev] [PATCH v6 3/9] net/ice: add FDIR create and destroy

2019-10-17 Thread Yahui Cao
Add ice_create_fdir_filter to create a rule. If a flow is matched by flow director filter, filter rule will be set to HW. For now common pattern and queue/passthru/drop/mark actions are supported. Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- doc/guides/rel_notes/release_19_11.rst | 1

[dpdk-dev] [PATCH v6 7/9] net/ice: reject duplicate flow for FDIR

2019-10-17 Thread Yahui Cao
Enable duplication lookup for existing flow director rule entry. Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 17 +++ drivers/net/ice/ice_fdir_filter.c | 185 -- 2 files changed, 195 insertions(+), 7 deletions(-) diff --git a

[dpdk-dev] [PATCH v6 6/9] net/ice: add FDIR counter support

2019-10-17 Thread Yahui Cao
This patch add FDIR statistical counter support and it includes RTE_FLOW count actions support and query support. RTE_FLOW count actions support id and shared. RTE_FLOW query record packet hits by default. Signed-off-by: Yahui Cao Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 7

[dpdk-dev] [PATCH v6 0/9] net/ice: add ice Flow Director driver

2019-10-17 Thread Yahui Cao
: * Move to flexible descriptor. * Distinguish tunnel and non-tunnel rule. * Add uninit function for fdir engine. * Fix coding style. * Change patch organization. * Add release notes. Beilei Xing (2): net/ice: enable flow director engine net/ice: configure HW FDIR rule Yahui Cao (7): net/ice

[dpdk-dev] [PATCH v6 2/9] net/ice: configure HW FDIR rule

2019-10-17 Thread Yahui Cao
From: Beilei Xing This patch adds a HW FDIR rule to the FDIR HW table without adding a FDIR filter. Signed-off-by: Beilei Xing Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.h | 2 + drivers/net/ice/ice_fdir_filter.c | 277 +- 2 files changed, 278 inserti

[dpdk-dev] [PATCH v6 1/9] net/ice: enable flow director engine

2019-10-17 Thread Yahui Cao
From: Beilei Xing Enable flow director engine, including initialization and teardown. - Control VSI create and release. - Queue pair allocated, set up and release. - Programming packet create and release. - FDIR profile create and release. Signed-off-by: Beilei Xing Acked-by: Qi Zhang ---

[dpdk-dev] [PATCH v5 9/9] net/ice: add FDIR GTPU tunnel support

2019-09-29 Thread Yahui Cao
Enable FDIR GTPU matching for RTE_FLOW Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 4 + drivers/net/ice/ice_fdir_filter.c | 145 -- 2 files changed, 140 insertions(+), 9 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b/drivers/net/ice

[dpdk-dev] [PATCH v5 5/9] net/ice: add FDIR counter resource init/release

2019-09-29 Thread Yahui Cao
The patch integrates the counter resource init/release into fdir's init/release scenario Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 33 +++ drivers/net/ice/ice_fdir_filter.c | 92 +++ 2 files changed, 125 insertions(+) diff --

[dpdk-dev] [PATCH v5 6/9] net/ice: add FDIR counter support

2019-09-29 Thread Yahui Cao
This patch add FDIR statistical counter support and it includes RTE_FLOW count actions support and query support. RTE_FLOW count actions support id and shared. RTE_FLOW query record packet hits by default. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 7 ++ drivers/net/ice

[dpdk-dev] [PATCH v5 7/9] net/ice: reject duplicate flow for FDIR

2019-09-29 Thread Yahui Cao
Enable duplication lookup for existing flow director rule entry. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 17 +++ drivers/net/ice/ice_fdir_filter.c | 185 -- 2 files changed, 195 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice

[dpdk-dev] [PATCH v5 8/9] net/ice: add FDIR vxlan tunnel support

2019-09-29 Thread Yahui Cao
Enable FDIR vxlan tunnel matching for RTE_FLOW Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 8 +++ drivers/net/ice/ice_fdir_filter.c | 108 ++ 2 files changed, 104 insertions(+), 12 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b

[dpdk-dev] [PATCH v5 3/9] net/ice: add FDIR create and destroy

2019-09-29 Thread Yahui Cao
Add ice_create_fdir_filter to create a rule. If a flow is matched by flow director filter, filter rule will be set to HW. For now common pattern and queue/passthru/drop/mark actions are supported. Signed-off-by: Yahui Cao --- doc/guides/rel_notes/release_19_11.rst | 1 + drivers/net/ice

[dpdk-dev] [PATCH v5 4/9] net/ice: enable FDIR queue group

2019-09-29 Thread Yahui Cao
FDIR can send packet to a group of queues and distruibte it by RSS. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 68 +++ 1 file changed, 68 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index

[dpdk-dev] [PATCH v5 2/9] net/ice: configure HW FDIR rule

2019-09-29 Thread Yahui Cao
From: Beilei Xing This patch adds a HW FDIR rule to the FDIR HW table without adding a FDIR filter. Signed-off-by: Beilei Xing --- drivers/net/ice/ice_ethdev.h | 2 + drivers/net/ice/ice_fdir_filter.c | 276 +- 2 files changed, 277 insertions(+), 1 deletion(-

[dpdk-dev] [PATCH v5 1/9] net/ice: enable flow director engine

2019-09-29 Thread Yahui Cao
From: Beilei Xing Enable flow director engine, including initialization and teardown. - Control VSI create and release. - Queue pair allocated, set up and release. - Programming packet create and release. - FDIR profile create and release. Signed-off-by: Beilei Xing --- drivers/net/ice/Mak

[dpdk-dev] [PATCH v5 0/9] net/ice: add ice Flow Director driver

2019-09-29 Thread Yahui Cao
FDIR rule Yahui Cao (7): net/ice: add FDIR create and destroy net/ice: enable FDIR queue group net/ice: add FDIR counter resource init/release net/ice: add FDIR counter support net/ice: reject duplicate flow for FDIR net/ice: add FDIR vxlan tunnel support net/ice: add FDIR GTPU

[dpdk-dev] [PATCH v4 8/8] net/ice: add FDIR vxlan tunnel support

2019-09-27 Thread Yahui Cao
Enable FDIR vxlan tunnel matching for RTE_FLOW Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 8 +++ drivers/net/ice/ice_fdir_filter.c | 101 +++--- 2 files changed, 99 insertions(+), 10 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b

[dpdk-dev] [PATCH v4 4/8] net/ice: enable FDIR queue group

2019-09-27 Thread Yahui Cao
FDIR can send packet to a group of queues and distruibte it by RSS. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 68 +++ 1 file changed, 68 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index

[dpdk-dev] [PATCH v4 7/8] net/ice: reject duplicate flow for FDIR

2019-09-27 Thread Yahui Cao
Enable duplication lookup for existing flow director rule entry. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 17 +++ drivers/net/ice/ice_fdir_filter.c | 186 -- 2 files changed, 196 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice

[dpdk-dev] [PATCH v4 5/8] net/ice: add FDIR counter resource init/release

2019-09-27 Thread Yahui Cao
The patch integrates the counter resource init/release into fdir's init/release scenario Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 33 +++ drivers/net/ice/ice_fdir_filter.c | 92 +++ 2 files changed, 125 insertions(+) diff --

[dpdk-dev] [PATCH v4 3/8] net/ice: add FDIR create and destroy

2019-09-27 Thread Yahui Cao
Add ice_create_fdir_filter to create a rule. If a flow is matched by flow director filter, filter rule will be set to HW. For now common pattern and queue/passthru/drop/mark actions are supported. Signed-off-by: Yahui Cao --- doc/guides/rel_notes/release_19_11.rst | 1 + drivers/net/ice

[dpdk-dev] [PATCH v4 6/8] net/ice: add FDIR counter support

2019-09-27 Thread Yahui Cao
This patch add FDIR statistical counter support and it includes RTE_FLOW count actions support and query support. RTE_FLOW count actions support id and shared. RTE_FLOW query record packet hits by default. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 7 ++ drivers/net/ice

[dpdk-dev] [PATCH v4 2/8] net/ice: configure HW FDIR rule

2019-09-27 Thread Yahui Cao
From: Beilei Xing This patch adds a HW FDIR rule to the FDIR HW table without adding a FDIR filter. Signed-off-by: Beilei Xing --- drivers/net/ice/ice_ethdev.h | 1 + drivers/net/ice/ice_fdir_filter.c | 255 +- 2 files changed, 255 insertions(+), 1 deletion(-

[dpdk-dev] [PATCH v4 0/8] net/ice: add ice Flow Director driver

2019-09-27 Thread Yahui Cao
and non-tunnel rule. * Add uninit function for fdir engine. * Fix coding style. * Change patch organization. * Add release notes. Beilei Xing (2): net/ice: enable flow director engine net/ice: configure HW FDIR rule Yahui Cao (6): net/ice: add FDIR create and destroy net/ice: enable FDIR

[dpdk-dev] [PATCH v4 1/8] net/ice: enable flow director engine

2019-09-27 Thread Yahui Cao
From: Beilei Xing Enable flow director engine, including initialization and teardown. - Control VSI create and release. - Queue pair allocated, set up and release. - Programming packet create and release. - FDIR profile create and release. Signed-off-by: Beilei Xing --- drivers/net/ice/Mak

[dpdk-dev] [PATCH v3 8/8] net/ice: add FDIR vxlan tunnel support

2019-09-24 Thread Yahui Cao
Enable FDIR vxlan tunnel matching for RTE_FLOW Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 6 ++ drivers/net/ice/ice_fdir_filter.c | 99 +++ 2 files changed, 95 insertions(+), 10 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b/drivers

[dpdk-dev] [PATCH v3 7/8] net/ice: reject duplicate flow for FDIR

2019-09-24 Thread Yahui Cao
Enable duplication lookup for existing flow director rule entry. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 17 +++ drivers/net/ice/ice_fdir_filter.c | 186 -- 2 files changed, 196 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice

[dpdk-dev] [PATCH v3 6/8] net/ice: add FDIR counter support

2019-09-24 Thread Yahui Cao
This patch add FDIR statistical counter support and it includes RTE_FLOW count actions support and query support. RTE_FLOW count actions support id and shared. RTE_FLOW query record packet hits by default. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 7 ++ drivers/net/ice

[dpdk-dev] [PATCH v3 4/8] net/ice: enable FDIR queue group

2019-09-24 Thread Yahui Cao
FDIR can send packet to a group of queues and distruibte it by RSS. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 68 +++ 1 file changed, 68 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index

[dpdk-dev] [PATCH v3 5/8] net/ice: add FDIR counter resource init/release

2019-09-24 Thread Yahui Cao
The patch integrates the counter resource init/release into fdir's init/release scenario Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 33 +++ drivers/net/ice/ice_fdir_filter.c | 92 +++ 2 files changed, 125 insertions(+) diff --

[dpdk-dev] [PATCH v3 3/8] net/ice: add FDIR create and destroy

2019-09-24 Thread Yahui Cao
Add ice_create_fdir_filter to create a rule. If a flow is matched by flow director filter, filter rule will be set to HW. For now common pattern and queue/passthru/drop/mark actions are supported. Signed-off-by: Yahui Cao --- doc/guides/rel_notes/release_19_11.rst | 1 + drivers/net/ice

[dpdk-dev] [PATCH v3 2/8] net/ice: configure HW FDIR rule

2019-09-24 Thread Yahui Cao
From: Beilei Xing This patch adds a HW FDIR rule to the FDIR HW table without adding a FDIR filter. Signed-off-by: Beilei Xing --- drivers/net/ice/ice_fdir_filter.c | 239 ++ 1 file changed, 239 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/driver

[dpdk-dev] [PATCH v3 1/8] net/ice: enable flow director engine

2019-09-24 Thread Yahui Cao
From: Beilei Xing Enable flow director engine, including initialization and teardown. - Control VSI create and release. - Queue pair allocated, set up and release. - Programming packet create and release. - FDIR profile create and release. Signed-off-by: Beilei Xing --- drivers/net/ice/Mak

[dpdk-dev] [PATCH v3 0/8] net/ice: add ice Flow Director driver

2019-09-24 Thread Yahui Cao
director engine net/ice: configure HW FDIR rule Yahui Cao (6): net/ice: add FDIR create and destroy net/ice: enable FDIR queue group net/ice: add FDIR counter resource init/release net/ice: add FDIR counter support net/ice: reject duplicate flow for FDIR net/ice: add FDIR vxlan tunnel

[dpdk-dev] [PATCH 7/7] net/ice: reject duplicate flow for FDIR

2019-09-23 Thread Yahui Cao
Enable duplication lookup for existing flow director rule entry. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 17 +++ drivers/net/ice/ice_fdir_filter.c | 186 -- 2 files changed, 196 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice

[dpdk-dev] [PATCH 6/7] net/ice: add FDIR counter support for flow id

2019-09-23 Thread Yahui Cao
FDIR statistical counter support hits by default. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 7 ++ drivers/net/ice/ice_fdir_filter.c | 179 +- 2 files changed, 185 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.h b

[dpdk-dev] [PATCH 5/7] net/ice: add FDIR counter resource init/release

2019-09-23 Thread Yahui Cao
The patch integrates the counter resource init/release into fdir's init/release scenario Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 33 +++ drivers/net/ice/ice_fdir_filter.c | 97 ++- 2 files changed, 129 insertions(+), 1 del

[dpdk-dev] [PATCH 4/7] net/ice: enable FDIR queue group

2019-09-23 Thread Yahui Cao
FDIR can send packet to a group of queues and distruibte it by RSS. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 65 +++ 1 file changed, 65 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index

[dpdk-dev] [PATCH 3/7] net/ice: add FDIR create and destroy

2019-09-23 Thread Yahui Cao
Add ice_create_fdir_filter to create a rule. If a flow is matched by flow director filter, filter rule will be set to HW. For now common pattern and queue/passthru/drop/mark actions are supported. Signed-off-by: Yahui Cao --- doc/guides/rel_notes/release_19_11.rst | 1 + drivers/net/ice

[dpdk-dev] [PATCH 2/7] net/ice: configure HW FDIR rule

2019-09-23 Thread Yahui Cao
From: Beilei Xing This patch adds a HW FDIR rule to the FDIR HW table without adding a FDIR filter. Change-Id: Iaed0ee1953815559ac4a25da1402c6f9775e78c0 Signed-off-by: Beilei Xing --- drivers/net/ice/ice_fdir_filter.c | 239 ++ 1 file changed, 239 insertions(+) dif

[dpdk-dev] [PATCH 1/7] net/ice: enable flow director engine

2019-09-23 Thread Yahui Cao
From: Beilei Xing Enable flow director engine, including initialization and teardown. - Control VSI create and release. - Queue pair allocated, set up and release. - Programming packet create and release. - FDIR profile create and release. Signed-off-by: Beilei Xing --- drivers/net/ice/Mak

[dpdk-dev] [PATCH 0/7] net/ice: add ice Flow Director driver

2019-09-23 Thread Yahui Cao
: * Move to flexible descriptor. * Distinguish tunnel and non-tunnel rule * Add uninit function for fdir engine * Fix coding style * Change patch organization Beilei Xing (2): net/ice: enable flow director engine net/ice: configure HW FDIR rule Yahui Cao (5): net/ice: add FDIR create and

[dpdk-dev] [dpdk-dev 11/12] net/ice: add FDIR counter support for flow shared

2019-09-05 Thread Yahui Cao
Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index a2da40f85..b226ea6d2 100644 --- a/drivers/net/ice/ice_fdir_filter.c

[dpdk-dev] [dpdk-dev 10/12] net/ice: add FDIR counter support for flow id

2019-09-05 Thread Yahui Cao
FDIR statistical counter support hits by default. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 7 ++ drivers/net/ice/ice_fdir_filter.c | 147 +- 2 files changed, 152 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.h b

[dpdk-dev] [dpdk-dev 08/12] net/ice: add FDIR dst mac support

2019-09-05 Thread Yahui Cao
Enable FDIR ethernet destination address field matching support Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c

[dpdk-dev] [dpdk-dev 07/12] net/ice: enable FDIR queue group

2019-09-05 Thread Yahui Cao
FDIR can send packet to a group of queues and distruibte it by RSS. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 65 +++ 1 file changed, 65 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index

[dpdk-dev] [dpdk-dev 09/12] net/ice: add FDIR counter resource init/release

2019-09-05 Thread Yahui Cao
This patch will alloc counter pool at dev init and release counter pool at dev close. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 33 +++ drivers/net/ice/ice_fdir_filter.c | 92 +++ 2 files changed, 125 insertions(+) diff --git a/drivers

[dpdk-dev] [dpdk-dev 12/12] net/ice: add FDIR non-word aligned field support

2019-09-05 Thread Yahui Cao
Add IPV4 TOS, TTL and Protocol fields support. Add IPV6 version of TOS, TTL and Protocol fields support. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 41 +++ 1 file changed, 41 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b

[dpdk-dev] [dpdk-dev 06/12] net/ice: add hash table for FDIR

2019-09-05 Thread Yahui Cao
Enable quick lookup for existing flow director rule entry. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 17 +++ drivers/net/ice/ice_fdir_filter.c | 186 -- 2 files changed, 196 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice

[dpdk-dev] [dpdk-dev 04/12] net/ice: add FDIR create and destroy

2019-09-05 Thread Yahui Cao
. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_ethdev.h | 6 + drivers/net/ice/ice_fdir_filter.c | 508 ++ 2 files changed, 514 insertions(+) diff --git a/drivers/net/ice/ice_ethdev.h b/drivers/net/ice/ice_ethdev.h index ea68858d1..bb821bc41 100644 --- a/drivers

[dpdk-dev] [dpdk-dev 03/12] net/ice: enable input set configuration

2019-09-05 Thread Yahui Cao
From: Beilei Xing Configure input set, include: - Parse input set. - Check the segment. - Create profile. Signed-off-by: Beilei Xing --- drivers/net/ice/ice_ethdev.h | 3 + drivers/net/ice/ice_fdir_filter.c | 245 ++ 2 files changed, 248 insertions(+) dif

[dpdk-dev] [dpdk-dev 05/12] net/ice: add FDIR mark action support

2019-09-05 Thread Yahui Cao
FDIR will add mark id in the packet mbuf when flow rule hits. Signed-off-by: Yahui Cao --- drivers/net/ice/ice_fdir_filter.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index 98bc1be49..294678075

[dpdk-dev] [dpdk-dev 01/12] net/ice: initialize and set up flow director

2019-09-05 Thread Yahui Cao
From: Beilei Xing Enable flow director, include: - Create control VSI - Queue pair allocated and set up - Programming packet Signed-off-by: Beilei Xing --- drivers/net/ice/Makefile | 1 + drivers/net/ice/ice_ethdev.c | 107 +-- drivers/net/ice/ice_ethdev.h | 19 ++

[dpdk-dev] [dpdk-dev 02/12] net/ice: tear down flow director

2019-09-05 Thread Yahui Cao
From: Beilei Xing Release resources on flow director, include: - Release queue. - Release VSI. Signed-off-by: Beilei Xing --- drivers/net/ice/ice_fdir_filter.c | 40 ++ drivers/net/ice/ice_rxtx.c| 57 +++ drivers/net/ice/ice_rxtx.h

[dpdk-dev] [dpdk-dev 00/12] net/ice: add ice Flow Director driver

2019-09-05 Thread Yahui Cao
Xing (3): net/ice: initialize and set up flow director net/ice: tear down flow director net/ice: enable input set configuration Yahui Cao (9): net/ice: add FDIR create and destroy net/ice: add FDIR mark action support net/ice: add hash table for FDIR net/ice: enable FDIR queue group

Re: [dpdk-dev] [PATCH] bus/vdev: add warning for duplicated vdev name

2018-12-20 Thread Yahui Cao
On Wed, Dec 19, 2018 at 03:26:36AM +0100, Thomas Monjalon wrote: > 29/11/2018 08:16, Yahui Cao: > > If duplicated vdev name is detected, print out a warning message. > > > > Signed-off-by: Yahui Cao > > --- > > drivers/bus/vdev/vdev.c | 2 ++ > > 1 file

[dpdk-dev] [PATCH] bus/vdev: add warning for duplicated vdev name

2018-11-28 Thread Yahui Cao
If duplicated vdev name is detected, print out a warning message. Signed-off-by: Yahui Cao --- drivers/bus/vdev/vdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c index 9c66bdc78..ff2db7d3f 100644 --- a/drivers/bus/vdev/vdev.c +++ b