Skip to contentSkip to conversation

Bugfixes

PATCH Applied Serhii Iliushyk 2 participants 6 messages Nov 20, 2024 – Nov 25, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Bugfixes

This patch set provides further fixes:

Feature DSCP:
The issue with the modification of the DSCP field for IPV4 and IPV6 is fixed by adding copying the DSCP value to the flow handler.

Feature MTU:
Supplement existing toggle-like macros
with respective opposites for the correct enablement of the MTU

The header rte_pmd_ntnic.h was moved
to the root of ntnic PMD. The correct place for this header.

Danylo Vodopianov (1):
net/ntnic: fix action modify field DSCP

Oleksandr Kolomeiets (2):
net/ntnic: add supplementary macros
net/ntnic: move headers to driver's root

 drivers/net/ntnic/meson.build                                 | 3 +++
 .../nthw/flow_api/profile_inline/flow_api_profile_inline.c    | 4 ++++
 .../nthw/flow_api/profile_inline/flow_api_profile_inline.h    | 3 +++
 drivers/net/ntnic/{nthw => }/rte_pmd_ntnic.h                  | 0
 4 files changed, 10 insertions(+)
 rename drivers/net/ntnic/{nthw => }/rte_pmd_ntnic.h (100%)
Signature · 1 line
2.45.0
#1 lore raw

PATCH 1/3 net/ntnic: fix action modify field DSCP

From: Danylo Vodopianov <[email protected]>

The issue with modification of the DSCP field
for IPV4 and IPV6 is fixed by adding
copying the DSCP value to the flow handler.

Fixes 6fec9a9a12e1 ("net/ntnic: add infrastructure for flow actions and items")
---
 .../nthw/flow_api/profile_inline/flow_api_profile_inline.c    | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.c +4 -0
index a34839e00c..683610445d 100644
@@ -3057,6 +3057,10 @@ static void copy_fd_to_fh_flm(struct flow_handle *fh, const struct nic_flow_def
 	for (unsigned int i = 0; i < fd->modify_field_count; ++i) {
 		switch (fd->modify_field[i].select) {
 		case CPY_SELECT_DSCP_IPV4:
+		case CPY_SELECT_DSCP_IPV6:
+			fh->flm_dscp = fd->modify_field[i].value8[0];
+			break;
+
 		case CPY_SELECT_RQI_QFI:
 			fh->flm_rqi = (fd->modify_field[i].value8[0] >> 6) & 0x1;
 			fh->flm_qfi = fd->modify_field[i].value8[0] & 0x3f;
Signature · 1 line
2.45.0
#2 lore raw

PATCH 2/3 net/ntnic: add supplementary macros

In reply to Serhii Iliushyk

From: Oleksandr Kolomeiets <[email protected]>

Supplement existing toggle-like macros with respective opposites:
* DISABLE_FRAGMENTATION -> ENABLE_FRAGMENTATION
* IPV4_DF_DROP -> IPV4_DF_FORWARD
* IPV6_DROP -> IPV6_FRAGMENT

Fixes 6019656d6f68 ("net/ntnic: add MTU configuration")
---
 .../nthw/flow_api/profile_inline/flow_api_profile_inline.h     | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.h +3 -0
index ce1a0669ee..169f71ee68 100644
@@ -11,9 +11,12 @@
 #include "flow_api.h"
 #include "stream_binary_flow_api.h"
 
+#define ENABLE_FRAGMENTATION 1
 #define DISABLE_FRAGMENTATION 0
 #define IPV4_DF_DROP 1
+#define IPV4_DF_FORWARD 0
 #define IPV6_DROP 1
+#define IPV6_FRAGMENT 0
 
 /*
  * Management
Signature · 1 line
2.45.0
#3 lore raw

PATCH 3/3 net/ntnic: move headers to driver's root

In reply to Serhii Iliushyk

From: Oleksandr Kolomeiets <[email protected]>

Move rte_pmd_ntnic.h to drivers/net/ntnic and specify it in meson file.

Fixes e7e49ce6c760 ("net/ntnic: add flow statistics")
---
 drivers/net/ntnic/meson.build                | 3 +++
 drivers/net/ntnic/{nthw => }/rte_pmd_ntnic.h | 0
 2 files changed, 3 insertions(+)
 rename drivers/net/ntnic/{nthw => }/rte_pmd_ntnic.h (100%)
drivers/net/ntnic/meson.build +3 -0
index ca46541ef3..3c05ad1d87 100644
@@ -23,6 +23,9 @@ includes = [
         include_directories('nim/'),
 ]
 
+# headers
+headers = files('rte_pmd_ntnic.h')
+
 # all sources
 sources = files(
         'adapter/nt4ga_adapter.c',
drivers/net/ntnic/rte_pmd_ntnic.h renamed from drivers/net/ntnic/nthw/rte_pmd_ntnic.h +0 -0
similarity index 100%
rename from drivers/net/ntnic/nthw/rte_pmd_ntnic.h
rename to drivers/net/ntnic/rte_pmd_ntnic.h
Signature · 1 line
2.45.0
#4 lore raw
In reply to Serhii Iliushyk
Quoted 21 lines · On Wed, 20 Nov 2024 19:02:54 +0100 Serhii Iliushyk <[email protected]> wrote:

This patch set provides further fixes:

Feature DSCP:
The issue with the modification of the DSCP field for IPV4 and IPV6 is fixed by adding copying the DSCP value to the flow handler.

Feature MTU:
Supplement existing toggle-like macros
with respective opposites for the correct enablement of the MTU

The header rte_pmd_ntnic.h was moved
to the root of ntnic PMD. The correct place for this header.

Danylo Vodopianov (1):
net/ntnic: fix action modify field DSCP

Oleksandr Kolomeiets (2):
net/ntnic: add supplementary macros
net/ntnic: move headers to driver's root

Quoted 7 lines
 drivers/net/ntnic/meson.build                                 | 3 +++
 .../nthw/flow_api/profile_inline/flow_api_profile_inline.c    | 4 ++++
 .../nthw/flow_api/profile_inline/flow_api_profile_inline.h    | 3 +++
 drivers/net/ntnic/{nthw => }/rte_pmd_ntnic.h                  | 0
 4 files changed, 10 insertions(+)
 rename drivers/net/ntnic/{nthw => }/rte_pmd_ntnic.h (100%)

Applied to next-net

#5 lore raw
Quoted 37 lines · Stephen Hemminger
Quoted 21 lines · On Wed, 20 Nov 2024 19:02:54 +0100 Serhii Iliushyk <[email protected]…

This patch set provides further fixes:

Feature DSCP:
The issue with the modification of the DSCP field
for IPV4 and IPV6 is fixed by adding
copying the DSCP value to the flow handler.

Feature MTU:
Supplement existing toggle-like macros
with respective opposites for the correct enablement of the MTU

The header rte_pmd_ntnic.h was moved
to the root of ntnic PMD. The correct place for this header.

Danylo Vodopianov (1):
net/ntnic: fix action modify field DSCP

Oleksandr Kolomeiets (2):
net/ntnic: add supplementary macros
net/ntnic: move headers to driver's root

Quoted 7 lines

drivers/net/ntnic/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fmeson.build&c=E,1,KPLdWALh1y_hzTNAJ-J55jj5ck-Z4ano3LwTmgN8N-LYP4Z64ZnvMaYCxWcittpHHlIqOaUZJ7LdJ3eCxvocGIh_ND_7k1sv_6QlT0HMJxMZDQ,,&typo=1 <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fmeson.build&amp;c=E,1,KPLdWALh1y_hzTNAJ-J55jj5ck-Z4ano3LwTmgN8N-LYP4Z64ZnvMaYCxWcittpHHlIqOaUZJ7LdJ3eCxvocGIh_ND_7k1sv_6QlT0HMJxMZDQ,,&amp;typo=1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;> | 3 +++ .../nthw/flow_api/profile_inline/flow_api_profile_inline.c | 4 ++++
.../nthw/flow_api/profile_inline/flow_api_profile_inline.h | 3 +++
drivers/net/ntnic/{nthw => }/rte_pmd_ntnic.h | 0

4 files changed, 10 insertions(+)

rename drivers/net/ntnic/{nthw => }/rte_pmd_ntnic.h (100%)

Quoted 3 lines

Applied to next-net

Hi Stephen,

I would like to know if these patches will be included in the RC4 for DPDK 24.11. Their current state on the patchwork is "under review." I want to know the exact state due to the coming code freeze date for RC4. Please let me know the details.

Also, I'm wondering about this patch set: https://patches.dpdk.org/project/dpdk/list/?series=34016
May It be included in the RC4?

It is essential for us to have these fixes included in the DPDK 24.11.

Thanks,
Serhii