[PATCH] app/test: fix PMD perf test on devices with no socket ID

2022-10-22 Thread Olivier Matz
If the socket ID of a device is unknown, rte_eth_dev_socket_id(portid) now returns -1 instead of 0 since commit 7dcd73e37965 ("drivers/bus: set device NUMA node to unknown by default"). This change breaks the pmd_perf test on environment where the device socket ID is unknown. The test fails with t

[PATCH v2 25/25] net/nfp: support new tunnel solution

2022-10-22 Thread Chaoyong He
The new version of flower firmware application add the support of a new tunnel solution. It changes the structure of tunnel neighbor, and use a feature flag to indicate which tunnel solution is used. Add the logic of read extra features from firmware, and store it in the app private structure. A

[PATCH v2 24/25] net/nfp: support IPv6 NVGRE decap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of decap action of IPv6 NVGRE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c index c577278..4c6cfe4 100644 --- a

[PATCH v2 23/25] net/nfp: support IPv4 NVGRE decap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of decap action of IPv4 NVGRE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 8 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/featur

[PATCH v2 22/25] net/nfp: support IPv6 NVGRE flow item

2022-10-22 Thread Chaoyong He
Add the corresponding logics to support the offload of IPv6 NVGRE item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_flow.c | 73 +- 1 file changed, 59 insertions(+), 14 deletions(-) diff --git a/drivers/net/nfp/nf

[PATCH v2 21/25] net/nfp: support IPv4 NVGRE flow item

2022-10-22 Thread Chaoyong He
Add the corresponding logics to support the offload of IPv4 NVGRE item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 2 + drivers/net/nfp/nfp_flow.c | 99 +++- 2 files changed, 99 insertions(+), 2 dele

[PATCH v2 19/25] net/nfp: prepare for IPv4 GRE tunnel decap flow action

2022-10-22 Thread Chaoyong He
Add the related data structure and logics, prepare for the decap action of IPv4 GRE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower_cmsg.h | 29 +++ drivers/net/nfp/nfp_flow.c | 40 +

[PATCH v2 20/25] net/nfp: prepare for IPv6 GRE tunnel decap flow action

2022-10-22 Thread Chaoyong He
Add the related data structure and logics, prepare for the decap action of IPv6 GRE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower_cmsg.h | 41 ++ drivers/net/nfp/nfp_flow.c | 49 ++

[PATCH v2 17/25] net/nfp: support IPv4 NVGRE encap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of encap action of IPv4 NVGRE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 43 2 files changed, 44 insertions(+) diff --git a/doc

[PATCH v2 18/25] net/nfp: support IPv6 NVGRE encap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of encap action of IPv6 NVGRE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_flow.c | 45 + 1 file changed, 45 insertions(+) diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/n

[PATCH v2 16/25] net/nfp: support IPv6 GENEVE decap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of decap action for IPv6 GENEVE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c index 223f2e7..c7daa14 100644 ---

[PATCH v2 15/25] net/nfp: support IPv4 GENEVE decap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of decap action for IPv4 GENEVE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 16 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/doc/guide

[PATCH v2 14/25] net/nfp: support IPv6 GENEVE flow item

2022-10-22 Thread Chaoyong He
Add the corresponding logics to support the offload of IPv6 GENEVE item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_flow.c | 43 +-- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/drivers/net/nfp/nfp_f

[PATCH v2 13/25] net/nfp: support IPv4 GENEVE flow item

2022-10-22 Thread Chaoyong He
Add the corresponding logics to support the offload of IPv4 GENEVE item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 75 ++-- 2 files changed, 74 insertions(+), 2 del

[PATCH v2 11/25] net/nfp: support IPv4 GENEVE encap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of encap action for IPv4 GENEVE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 107 +++ 2 files changed, 108 insertions(+) diff --git a

[PATCH v2 12/25] net/nfp: support IPv6 GENEVE encap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of encap action for IPv6 GENEVE tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_flow.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nf

[PATCH v2 10/25] net/nfp: support IPv6 VXLAN decap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of decap action for IPv6 VXLAN tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_flow.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c

[PATCH v2 09/25] net/nfp: support IPv4 VXLAN decap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of decap action for IPv4 VXLAN tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 75 +--- 2 files changed, 71 insertions(+), 5 deletions(-)

[PATCH v2 08/25] net/nfp: prepare for IPv6 UDP tunnel decap flow action

2022-10-22 Thread Chaoyong He
Add the related data structure and functions, prepare for the decap action of IPv6 UDP tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower_cmsg.c | 42 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 24 + drivers/net/nfp/nfp_flow.c

[PATCH v2 07/25] net/nfp: prepare for IPv4 UDP tunnel decap flow action

2022-10-22 Thread Chaoyong He
Add the related data structure and functions, prepare for the decap action of IPv4 UDP tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower_cmsg.c | 118 drivers/net/nfp/flower/nfp_flower_cmsg.h | 94 +++ drivers/net/nfp/nfp_flow.c

[PATCH v2 06/25] net/nfp: support IPv6 VXLAN encap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of encap action for IPv6 VXLAN tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfp_flow.c | 48 +- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/drivers/net/nfp/nfp_flow.c b

[PATCH v2 05/25] net/nfp: support IPv4 VXLAN encap flow action

2022-10-22 Thread Chaoyong He
Add the offload support of encap action for IPv4 VXLAN tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_flow.c | 132 +-- 2 files changed, 128 insertions(+), 5 deletions(-

[PATCH v2 04/25] net/nfp: prepare for IPv6 tunnel encap flow action

2022-10-22 Thread Chaoyong He
Add the related data structure and functions, prepare for the encap action of IPv6 tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower_cmsg.c | 29 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 40 drivers/net/nfp/nfp_flow

[PATCH v2 01/25] net/nfp: support IPv4 VXLAN flow item

2022-10-22 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of IPv4 VXLAN item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/flower/nfp_flower_cmsg.h | 35 + drivers/net/nfp/nfp_flow.c

[PATCH v2 03/25] net/nfp: prepare for IPv4 tunnel encap flow action

2022-10-22 Thread Chaoyong He
Add the related data structure and functions, prepare for the encap action of IPv4 tunnel. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower_cmsg.c | 29 ++ drivers/net/nfp/flower/nfp_flower_cmsg.h | 93 drive

[PATCH v2 02/25] net/nfp: support IPv6 VXLAN flow item

2022-10-22 Thread Chaoyong He
Add the corresponding data structure and logics, to support the offload of IPv6 VXLAN item. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/flower/nfp_flower_cmsg.h | 42 drivers/net/nfp/nfp_flow.c | 113 --- 2

[PATCH v2 00/25] add the extend rte_flow offload support of nfp PMD

2022-10-22 Thread Chaoyong He
This is the third patch series to add the support of rte_flow offload for nfp PMD, includes: Add the offload support of decap/encap of VXLAN Add the offload support of decap/encap of GENEVE Add the offload support of decap/encap of NVGRE Changes since v1 - Delete the modificaiton of release note.

[PATCH v7] net/nfp: fix the promiscuous mode functions

2022-10-22 Thread Chaoyong He
The original functions of promiscuous mode can't process the representor port rightly, revise the logic to do that. Fixes: e1124c4f8a45 ("net/nfp: add flower representor framework") Signed-off-by: Chaoyong He --- drivers/net/nfp/flower/nfp_flower.h | 2 ++ drivers/net/nfp/flower/nf