[PATCH v2 2/2] net/sfc: support IPv4 fragment matching in transfer rules

2023-06-28 Thread Artemii Morozov
This patch adds the support for IPv4 fragmented packets, but with some limitations: for non-zero fragment offset an exact match is not allowed, but ranges are allowed. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Andy Moreton --- drivers/net/sfc/sfc_mae.c

[PATCH v2 0/2] support IPv4 fragment matching in transfer rules

2023-06-28 Thread Artemii Morozov
This patch seria adds support for matching fragment offsets for IPv4 packets, but with some limitations. Exact matching is supported only for zero offset, ranges are allowed for non-zero offsets. v2: * fix build issue Artemii Morozov (2): common/sfc_efx/base: add MAE IP fragmentation match

[PATCH v2 1/2] common/sfc_efx/base: add MAE IP fragmentation match bits

2023-06-28 Thread Artemii Morozov
Introduce necessary infrastructure for these bits to be set and validated. Using a combination of these bits IP fragmentation can be configured. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx.h | 4 drivers/common

[PATCH 2/2] net/sfc: support IPv4 fragment matching in transfer rules

2023-06-23 Thread Artemii Morozov
This patch adds the support for IPv4 fragmented packets, but with some limitations: for non-zero fragment offset an exact match is not allowed, but ranges are allowed. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Andy Moreton --- drivers/net/sfc/sfc_mae.c

[PATCH 0/2] support IPv4 fragment matching in transfer rules

2023-06-23 Thread Artemii Morozov
This patch seria adds support for matching fragment offsets for IPv4 packets, but with some limitations. Exact matching is supported only for zero offset, ranges are allowed for non-zero offsets. Artemii Morozov (2): common/sfc_efx/base: add MAE IP fragmentation match bits net/sfc: support

[PATCH 1/2] common/sfc_efx/base: add MAE IP fragmentation match bits

2023-06-23 Thread Artemii Morozov
Introduce necessary infrastructure for these bits to be set and validated. Using a combination of these bits IP fragmentation can be configured. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx.h | 4 drivers/common

[PATCH v8 4/4] net/sfc: support VLAN stripping offload

2023-06-22 Thread Artemii Morozov
Extract VLAN TCI provided by the HW in the prefix and put it to mbuf. VLAN stripping is supported for ef100 datapath only. This is device level offload. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton Acked-by: Andrew

[PATCH v8 3/4] common/sfc_efx/base: add support to enable VLAN stripping

2023-06-22 Thread Artemii Morozov
To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate Rx prefix should be requested. VLAN stripping is supported on EF100. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton Acked-by: Andrew Rybchenko

[PATCH v8 2/4] common/sfc_efx/base: add API to get installed filters count

2023-06-22 Thread Artemii Morozov
This API allows to get number of installed filters. This will be used in the future patches. Signed-off-by: Artemii Morozov Acked-by: Andrew Rybchenko --- drivers/common/sfc_efx/base/ef10_filter.c | 20 ++ drivers/common/sfc_efx/base/ef10_impl.h | 6 + drivers/common/sfc_efx

[PATCH v8 1/4] common/sfc_efx/base: report VLAN stripping capability

2023-06-22 Thread Artemii Morozov
These changes are necessary in order to add support for stripping VLAN tags in the future. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton Acked-by: Andrew Rybchenko --- drivers/common/sfc_efx/base/ef10_nic.c | 6 ++ drivers/common/sfc_efx/base/efx.h

[PATCH v8 0/4] net/sfc: support VLAN stripping offload

2023-06-22 Thread Artemii Morozov
v3: * fix apply patch failure warning v2: * rebase patches on top of dpdk-next-net/main Artemii Morozov (4): common/sfc_efx/base: report VLAN stripping capability common/sfc_efx/base: add API to get installed filters count common/sfc_efx/base: add support to enable VLAN stripping net

[PATCH v7 4/4] net/sfc: support VLAN stripping offload

2023-06-22 Thread Artemii Morozov
Extract VLAN TCI provided by the HW in the prefix and put it to mbuf. VLAN stripping is supported for ef100 datapath only. This is device level offload. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- doc/guides/nics

[PATCH v7 3/4] common/sfc_efx/base: add support to enable VLAN stripping

2023-06-22 Thread Artemii Morozov
To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate Rx prefix should be requested. VLAN stripping is supported on EF100. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base

[PATCH v7 2/4] common/sfc_efx/base: add API to get installed filters count

2023-06-22 Thread Artemii Morozov
This API allows to get number of installed filters. This will be used in the future patches. Signed-off-by: Artemii Morozov --- drivers/common/sfc_efx/base/ef10_filter.c | 20 ++ drivers/common/sfc_efx/base/ef10_impl.h | 6 + drivers/common/sfc_efx/base/efx_filter.c | 32

[PATCH v7 1/4] common/sfc_efx/base: report VLAN stripping capability

2023-06-22 Thread Artemii Morozov
These changes are necessary in order to add support for stripping VLAN tags in the future. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton Acked-by: Andrew Rybchenko --- drivers/common/sfc_efx/base/ef10_nic.c | 6 ++ drivers/common/sfc_efx/base/efx.h

[PATCH v7 0/4] net/sfc: support VLAN stripping offload

2023-06-22 Thread Artemii Morozov
: * rebase patches on top of dpdk-next-net/main Artemii Morozov (4): common/sfc_efx/base: report VLAN stripping capability common/sfc_efx/base: add API to get installed filters count common/sfc_efx/base: add support to enable VLAN stripping net/sfc: support VLAN stripping offload doc/guides/nics

Re: [PATCH v5] common/sfc_efx/base: fix Rx queue creation without RSS hash prefix

2023-06-22 Thread Artemii Morozov
On 6/22/23 17:13, Ferruh Yigit wrote: On 6/22/2023 1:31 PM, Artemii Morozov wrote: If the prefix for the RSS hash was not chosen the ENOTSUP error should be returned. Before this patch success was returned for this case causing Rx queue creation to fail. Fixing return value to indicate

[PATCH v5] common/sfc_efx/base: fix Rx queue creation without RSS hash prefix

2023-06-22 Thread Artemii Morozov
hash") Cc: sta...@dpdk.org Signed-off-by: Artemii Morozov Reviewed-by: Andy Moreton Acked-by: Andrew Rybchenko --- v5: update commit message v4: add Cc: sta...@dpdk.org and transform rss to RSS v3: update commit log as fix commit v2: don't use capital letters in email drivers/comm

[PATCH v6 4/4] net/sfc: support VLAN stripping offload

2023-06-22 Thread Artemii Morozov
Extract VLAN TCI provided by the HW in the prefix and put it to mbuf. VLAN stripping is supported for ef100 datapath only. This is device level offload. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- doc/guides/nics

[PATCH v6 3/4] common/sfc_efx/base: add support to enable VLAN stripping

2023-06-22 Thread Artemii Morozov
To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate Rx prefix should be requested. VLAN stripping is supported on EF100. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base

[PATCH v6 2/4] common/sfc_efx/base: add API to get installed filters count

2023-06-22 Thread Artemii Morozov
This API allows to get number of installed filters. This will be used in the future patches. Signed-off-by: Artemii Morozov --- drivers/common/sfc_efx/base/ef10_filter.c | 20 + drivers/common/sfc_efx/base/ef10_impl.h | 6 + drivers/common/sfc_efx/base/efx_filter.c | 27

[PATCH v6 1/4] common/sfc_efx/base: report VLAN stripping capability

2023-06-22 Thread Artemii Morozov
These changes are necessary in order to add support for stripping VLAN tags in the future. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/ef10_nic.c | 6 ++ drivers/common/sfc_efx/base/efx.h | 1 + drivers/common

[PATCH v6 0/4] net/sfc: support VLAN stripping offload

2023-06-22 Thread Artemii Morozov
with abbreviations * fixed problems with isolated mode * fixed problems with consistency v4: * fix apply patch failure warning v3: * fix apply patch failure warning v2: * rebase patches on top of dpdk-next-net/main Artemii Morozov (4): common/sfc_efx/base: report VLAN stripping

[PATCH v4] common/sfc_efx/base: set return code in case of the error

2023-06-22 Thread Artemii Morozov
If the prefix for the RSS hash was not chosen the ENOTSUP error should be returned. Before this patch the zero code was returned in case of an error. Fixes: f784cdc5cbb1 ("common/sfc_efx/base: provide control to deliver RSS hash") Cc: sta...@dpdk.org Signed-off-by: Artemii Morozov R

[PATCH v3] common/sfc_efx/base: set return code in case of the error

2023-06-22 Thread Artemii Morozov
If the prefix for the rss hash was not chosen the ENOTSUP error should be returned. Before this patch the zero code was returned in case of an error. Fixes: f784cdc5cbb1 ("common/sfc_efx/base: provide control to deliver RSS hash") Signed-off-by: Artemii Morozov Reviewed-by: Andy Moret

Re: [PATCH v5 2/3] common/sfc_efx/base: add support to enable VLAN stripping

2023-06-20 Thread Artemii Morozov
On 6/20/23 15:50, Andrew Rybchenko wrote: On 6/20/23 12:55, Artemii Morozov wrote: On 6/19/23 14:28, Andrew Rybchenko wrote: On 6/13/23 18:12, Artemii Morozov wrote: To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate RX prefix

Re: [PATCH v5 2/3] common/sfc_efx/base: add support to enable VLAN stripping

2023-06-20 Thread Artemii Morozov
On 6/19/23 14:28, Andrew Rybchenko wrote: On 6/13/23 18:12, Artemii Morozov wrote: To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate RX prefix should be requested. RX -> Rx VLAN stripping is supported for ef100 datapath o

[PATCH v5 3/3] net/sfc: support VLAN stripping offload

2023-06-13 Thread Artemii Morozov
Extract VLAN TCI provided by the HW in the prefix and put it to mbuf. VLAN stripping is supported for ef100 datapath only. This is device level offload. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- doc/guides/nics

[PATCH v5 2/3] common/sfc_efx/base: add support to enable VLAN stripping

2023-06-13 Thread Artemii Morozov
To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate RX prefix should be requested. VLAN stripping is supported for ef100 datapath only. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common

[PATCH v5 1/3] common/sfc_efx/base: report VLAN stripping capability

2023-06-13 Thread Artemii Morozov
These changes are necessary in order to add support for stripping VLAN tags in the future. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/ef10_nic.c | 6 ++ drivers/common/sfc_efx/base/efx.h | 1 + drivers/common

[PATCH v5 0/3] net/sfc: support VLAN stripping offload

2023-06-13 Thread Artemii Morozov
apply patch failure warning v2: * rebase patches on top of dpdk-next-net/main Artemii Morozov (3): common/sfc_efx/base: report VLAN stripping capability common/sfc_efx/base: add support to enable VLAN stripping net/sfc: support VLAN stripping offload doc/guides/nics/sfc_efx.rst

Re: [PATCH v4 2/3] common/sfc_efx/base: add support to enable VLAN stripping

2023-06-08 Thread Artemii Morozov
Hello, On 6/2/23 12:32, Andrew Rybchenko wrote: On 6/1/23 18:30, Artemii Morozov wrote: To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate RX prefix should be requested. RX -> Rx VLAN stripping is supported for ef100 datapath o

[PATCH v4 3/3] net/sfc: support VLAN stripping offload

2023-06-01 Thread Artemii Morozov
Extract vlan tci provided by the HW in the prefix and put it to mbuf. VLAN stripping is supported for ef100 datapath only. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- doc/guides/nics/sfc_efx.rst| 4

[PATCH v4 2/3] common/sfc_efx/base: add support to enable VLAN stripping

2023-06-01 Thread Artemii Morozov
To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate RX prefix should be requested. VLAN stripping is supported for ef100 datapath only. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common

[PATCH v4 1/3] common/sfc_efx/base: report VLAN stripping capability

2023-06-01 Thread Artemii Morozov
These changes are necessary in order to add support for stripping VLAN tags in the future. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/ef10_nic.c | 6 ++ drivers/common/sfc_efx/base/efx.h | 1 + drivers/common

[PATCH v4 0/3] net/sfc: support VLAN stripping offload

2023-06-01 Thread Artemii Morozov
This patch series adds VLAN stripping offload. Note that this offload are device level offload. v4: * fix apply patch failure warning v3: * fix apply patch failure warning v2: * rebase patches on top of dpdk-next-net/main Artemii Morozov (3): common/sfc_efx/base: report VLAN stripping

[PATCH v3 3/3] net/sfc: support VLAN stripping offload

2023-06-01 Thread Artemii Morozov
Extract vlan tci provided by the HW in the prefix and put it to mbuf. VLAN stripping is supported for ef100 datapath only. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- doc/guides/nics/sfc_efx.rst| 4

[PATCH v3 2/3] common/sfc_efx/base: add support to enable VLAN stripping

2023-06-01 Thread Artemii Morozov
To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate RX prefix should be requested. VLAN stripping is supported for ef100 datapath only. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common

[PATCH v3 1/3] common/sfc_efx/base: report VLAN stripping capability

2023-06-01 Thread Artemii Morozov
These changes are necessary in order to add support for stripping VLAN tags in the future. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/ef10_nic.c | 6 ++ drivers/common/sfc_efx/base/efx.h | 1 + drivers/common

[PATCH v3 0/3] net/sfc: support VLAN stripping offload

2023-06-01 Thread Artemii Morozov
This patch series adds VLAN stripping offload. Note that this offload are device level offload. v3: * fix apply patch failure warning v2: * rebase patches on top of dpdk-next-net/main Artemii Morozov (3): common/sfc_efx/base: report VLAN stripping capability common/sfc_efx/base: add

[PATCH v2 3/3] net/sfc: support VLAN stripping offload

2023-06-01 Thread Artemii Morozov
Extract vlan tci provided by the HW in the prefix and put it to mbuf. VLAN stripping is supported for ef100 datapath only. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- doc/guides/nics/sfc_efx.rst| 4

[PATCH v2 2/3] common/sfc_efx/base: add support to enable VLAN stripping

2023-06-01 Thread Artemii Morozov
To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate RX prefix should be requested. VLAN stripping is supported for ef100 datapath only. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common

[PATCH v2 1/3] common/sfc_efx/base: report VLAN stripping capability

2023-06-01 Thread Artemii Morozov
These changes are necessary in order to add support for stripping VLAN tags in the future. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/ef10_nic.c | 6 ++ drivers/common/sfc_efx/base/efx.h | 1 + drivers/common

[PATCH v2 0/3] net/sfc: support VLAN stripping offload

2023-06-01 Thread Artemii Morozov
This patch series adds VLAN stripping offload. Note that this offload are device level offload. v2: * rebase patches on top of dpdk-next-net/main Artemii Morozov (3): common/sfc_efx/base: report VLAN stripping capability common/sfc_efx/base: add support to enable VLAN stripping net/sfc

[PATCH v2] common/sfc_efx/base: set return code in case of the error

2023-05-31 Thread Artemii Morozov
If the prefix for the rss hash was not chosen the ENOTSUP error should be returned. Signed-off-by: Artemii Morozov Reviewed-by: Andy Moreton --- v2: don't use capital letters in email drivers/common/sfc_efx/base/efx_rx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --

[PATCH 3/3] net/sfc: support VLAN stripping offload

2023-05-31 Thread Artemii Morozov
Extract vlan tci provided by the HW in the prefix and put it to mbuf. VLAN stripping is supported for ef100 datapath only. Signed-off-by: Artemii Morozov Reviewed-by: Viacheslav Galaktionov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- doc/guides/nics/sfc_efx.rst| 4

[PATCH 2/3] common/sfc_efx/base: add support to enable VLAN stripping

2023-05-31 Thread Artemii Morozov
To enable VLAN stripping, two conditions must be met: the corresponding flag must be set and the appropriate RX prefix should be requested. VLAN stripping is supported for ef100 datapath only. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common

[PATCH 1/3] common/sfc_efx/base: report VLAN stripping capability

2023-05-31 Thread Artemii Morozov
These changes are necessary in order to add support for stripping VLAN tags in the future. Signed-off-by: Artemii Morozov Reviewed-by: Ivan Malov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/ef10_nic.c | 6 ++ drivers/common/sfc_efx/base/efx.h | 1 + drivers/common

[PATCH 0/3] net/sfc: support VLAN stripping offload

2023-05-31 Thread Artemii Morozov
This patch series adds VLAN stripping offload. Note that this offload are device level offload. Artemii Morozov (3): common/sfc_efx/base: report

[PATCH] common/sfc_efx/base: update fields name for MARK and FLAG actions

2023-05-31 Thread Artemii Morozov
The MCDI headers have newer, but ABI-compatible field names for these actions. Signed-off-by: Artemii Morozov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/ef10_filter.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/common/sfc_efx/base

[PATCH] common/sfc_efx/base: set return code in case of the error

2023-05-31 Thread Artemii Morozov
From: Artemii Morozov If the prefix for the rss hash was not chosen the ENOTSUP error should be returned. Signed-off-by: Artemii Morozov Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/efx_rx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/common