RE: [PATCH v2 0/4] more replacement of zero length array

2024-02-13 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, 12 February 2024 23.57 > > On Mon, 12 Feb 2024 14:36:02 -0800 > Tyler Retzlaff wrote: > > > Replace some missed zero length arrays not captured in the > > original series. > > https://patchwork.dpdk.org/project/dpdk/li

RE: [PATCH v2] eal: provide macro to allocate and name a section or segment

2024-02-13 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Monday, 12 February 2024 21.52 > > Provide __rte_section(name) macro that allocates and names a section > or segment that works with both MSVC and GCC. > > Update RTE_TRACE_POINT_REGISTER with __rte_section("__rte_trace_point")

Re: [PATCH v2] RFC: replace GCC marker extension with C11 anonymous unions

2024-02-13 Thread Bruce Richardson
On Mon, Feb 12, 2024 at 10:45:40PM -0800, Tyler Retzlaff wrote: > The zero sized RTE_MARKER typedefs are a GCC extension unsupported by > MSVC. Replace the use of the RTE_MARKER typedefs with anonymous unions. > > Note: > > v1 of the series tried to maintain the API after some study it has been

Re: [PATCH 00/15] use GCC/MSVC compatible __VA_ARGS__

2024-02-13 Thread Bruce Richardson
On Mon, Feb 12, 2024 at 01:49:02PM -0800, Tyler Retzlaff wrote: > MSVC does not support GCC args... forwarding of args replace > with ... and __VA_ARGS__ when forwarding. Both forms of > forwarding are a compiler extension but the latter is supported > by both MSVC and GCC. > > I have not been ab

Re: [PATCH 03/15] cfgfile: use GCC and MSVC common VA ARGS extension

2024-02-13 Thread Bruce Richardson
On Mon, Feb 12, 2024 at 01:49:05PM -0800, Tyler Retzlaff wrote: > Use ... and forward with __VA_ARGS__ instead of args... and args. > Neither mechanism is conformant with the standard but the former works > with both GCC and MSVC. > > Signed-off-by: Tyler Retzlaff > --- > lib/cfgfile/rte_cfgfile

Re: [PATCH 04/15] cmdline: use GCC and MSVC common VA ARGS extension

2024-02-13 Thread Bruce Richardson
On Mon, Feb 12, 2024 at 01:49:06PM -0800, Tyler Retzlaff wrote: > Use ... and forward with __VA_ARGS__ instead of args... and args. > Neither mechanism is conformant with the standard but the former works > with both GCC and MSVC. > > Fix checkpatches warning about style while(0) -> while (0) > >

RE: [PATCH 00/15] use GCC/MSVC compatible __VA_ARGS__

2024-02-13 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Monday, 12 February 2024 22.49 > > MSVC does not support GCC args... forwarding of args replace > with ... and __VA_ARGS__ when forwarding. Both forms of > forwarding are a compiler extension but the latter is supported > by bot

Re: [PATCH 1/2] ci: bump tested distributions in GHA

2024-02-13 Thread David Marchand
On Thu, Feb 8, 2024 at 3:32 PM Aaron Conole wrote: > > Fedora 37 has reached end of life in December 2023. > > Ubuntu 20.04 is getting quite old. > > > > Switch to more recent versions. > > > > With this move, some packages provided by those distributions are now > > recent enough to extend our bu

Re: [PATCH v4] common/sfc: replace out of bounds condition with static_assert

2024-02-13 Thread Ferruh Yigit
On 2/12/2024 5:48 AM, Stephen Hemminger wrote: > The sfc base code had its own definition of static assertions > using the out of bound array access hack. Replace it with a > static_assert like rte_common.h. > > The use of null pointer to compute offset is not always a constant > in older versions

[PATCH 1/9] net/mlx5/hws: skip RTE item when inserting rules by index

2024-02-13 Thread Itamar Gozlan
The location of indexed rules is determined by the index, not the item hash. A matcher test is added to prevent access to non-existent items. This avoids unnecessary processing and potential segmentation faults. Fixes: 405242c ("net/mlx5/hws: add rule object") Signed-off-by: Itamar Gozlan Acked-b

[PATCH 2/9] net/mlx5/hws: add check for not supported fields in VXLAN

2024-02-13 Thread Itamar Gozlan
Don't allow the user to mask over rsvd1 / rsvd2 fields which are not supported. Fixes: dbff89ef806f ("net/mlx5/hws: fix tunnel protocol checks") Signed-off-by: Erez Shitrit Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_definer.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a

[PATCH 3/9] net/mlx5/hws: add support for resizable matchers

2024-02-13 Thread Itamar Gozlan
From: Yevgeny Kliteynik Add support for matcher resize with the following new API calls: - mlx5dr_matcher_resize_set_target - mlx5dr_matcher_resize_rule_move The first function links two matchers and allows moving rules from src matcher to dst matcher. Both matchers should have the same charac

[PATCH 4/9] net/mlx5/hws: reordering the STE fields to improve hash

2024-02-13 Thread Itamar Gozlan
Inserting two rules with the same hash calculation result into the same matcher will cause collisions, which can cause degradation in PPS. Changing the order of some fields in the STE can change the hash result, and doing this for every value would give us a different hash distribution for the inpu

[PATCH 5/9] net/mlx5/hws: check the rule status on rule update

2024-02-13 Thread Itamar Gozlan
From: Hamdan Igbaria Only allow rule updates for rules with their status value equal to MLX5DR_RULE_STATUS_CREATED. Otherwise, the rule may be in an unstable stage like deleting and this will result in a faulty unexpected scenario. Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drive

[PATCH 6/9] net/mlx5/hws: fix VLAN item handling on non relaxed mode

2024-02-13 Thread Itamar Gozlan
From: Hamdan Igbaria If a VLAN item was passed with null mask, the item handler would return immediately and thus won't set default values for non relax mode. Also change the non relax default set to single-tagged (CVLAN). Fixes: c55c2bf35333 ("net/mlx5/hws: add definer layer") Signed-off-by: Ha

[PATCH 7/9] net/mlx5/hws: extend action template creation API

2024-02-13 Thread Itamar Gozlan
From: Hamdan Igbaria Extend mlx5dr_action_template_create function params to include flags parameter. Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr.h | 10 +- drivers/net/mlx5/hws/mlx5dr_action.c | 11 ++- drivers/net/mlx5/hws/mlx

[PATCH 8/9] net/mlx5/hws: add missing actions STE limitation

2024-02-13 Thread Itamar Gozlan
From: Hamdan Igbaria Today if we pass a remove header action and after it an insert header action then our action template builder will set two different STE setters, because it won't allow insert header in same STE as remove header. But if we have the opposite order of insert header and then rem

[PATCH 9/9] net/mlx5/hws: support push_esp flag for insert header action

2024-02-13 Thread Itamar Gozlan
From: Hamdan Igbaria support push_esp flag for insert header action, it must be set when inserting an ESP header, it's also sets the next_protocol field in the IPsec trailer. Signed-off-by: Hamdan Igbaria Acked-by: Matan Azrad --- drivers/common/mlx5/mlx5_prm.h | 3 ++- drivers/net/mlx5

[PATCH] maintainers: add myself to usertools

2024-02-13 Thread Robin Jarry
in the past months, I saw that the usertools scripts didn't receive much reviews. Unless somebody is against it, I'd like to become maintainer for the usertools folder. Signed-off-by: Robin Jarry --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS ind

Re: [PATCH] maintainers: add myself to usertools

2024-02-13 Thread Bruce Richardson
On Tue, Feb 13, 2024 at 10:58:46AM +0100, Robin Jarry wrote: > in the past months, I saw that the usertools scripts didn't receive much > reviews. Unless somebody is against it, I'd like to become maintainer > for the usertools folder. > > Signed-off-by: Robin Jarry > --- Thank you for stepping u

Re: [PATCH] maintainers: add myself to usertools

2024-02-13 Thread Thomas Monjalon
13/02/2024 10:58, Robin Jarry: > in the past months, I saw that the usertools scripts didn't receive much > reviews. Unless somebody is against it, I'd like to become maintainer > for the usertools folder. > > Signed-off-by: Robin Jarry Thank you for proposing. You already did some valuable revi

RE: [PATCH v2] app/testpmd: use Tx preparation in txonly engine

2024-02-13 Thread Morten Brørup
+CC: Ethernet API maintainers +CC: Jerin (commented on another branch of this thread) > From: Konstantin Ananyev [mailto:konstantin.anan...@huawei.com] > Sent: Sunday, 11 February 2024 16.04 > > > > > > TSO breaks when MSS spans more than 8 data fragments. Those > > > > > packets will be dropped

RE: [PATCH] maintainers: add myself to usertools

2024-02-13 Thread Power, Ciara
> -Original Message- > From: Robin Jarry > Sent: Tuesday, February 13, 2024 9:59 AM > To: dev@dpdk.org > Cc: Power, Ciara ; Dmitry Kozlyuk > ; Thomas Monjalon > Subject: [PATCH] maintainers: add myself to usertools > > in the past months, I saw that the usertools scripts didn't receive

Re: [PATCH] eal: remove unnecessary use of statement expression

2024-02-13 Thread David Marchand
On Mon, Feb 12, 2024 at 6:56 PM Tyler Retzlaff wrote: > > ping > > could relevant maintainers take a look? This change comes from the old commit 5f2c68a710e1 ("lib: work around braced-groups within expressions"). I suspect this change breaks application compiling with pedantic, without setting a

Re: [PATCH 0/9] use C11 alignof

2024-02-13 Thread David Marchand
On Thu, Jan 25, 2024 at 12:18 AM Tyler Retzlaff wrote: > > Replace use of __alignof__(T) and __alignof__(e) with C11 alignof(T) > and alignof(typeof(e)) respectively to improve portability of the code > between toolchains. > > Tyler Retzlaff (9): > ring: use C11 alignof > mbuf: use C11 alignof

Re: [PATCH v1] dts: strip whitespaces from stdout and stderr

2024-02-13 Thread Juraj Linkeš
On Mon, Feb 12, 2024 at 5:49 PM Jeremy Spewock wrote: > > On Wed, Feb 7, 2024 at 7:16 AM Juraj Linkeš > wrote: > > > > There could be a newline at the end of stdout or stderr of a remotely > > executed command. These cause issues when used later, such as when > > joining paths from such commands

Re: [PATCH] eal: remove unnecessary use of statement expression

2024-02-13 Thread David Marchand
On Tue, Feb 13, 2024 at 11:41 AM David Marchand wrote: > > On Mon, Feb 12, 2024 at 6:56 PM Tyler Retzlaff > wrote: > > > > ping > > > > could relevant maintainers take a look? > > This change comes from the old commit 5f2c68a710e1 ("lib: work around > braced-groups within expressions"). > I suspe

Re: [PATCH 0/2] remove __typeof__ from expansion of per lcore macros

2024-02-13 Thread David Marchand
On Tue, Dec 19, 2023 at 6:28 PM Tyler Retzlaff wrote: > > The design of the macros requires a type to be provided to the macro. > > By expanding the type parameter inside of typeof it also inadvertently > allows an expression to be used which appears not to have been intended > after evaluating th

[PATCH v2] dts: strip whitespaces from stdout and stderr

2024-02-13 Thread Juraj Linkeš
There could be a newline at the end of stdout or stderr of a remotely executed command. These cause issues when used later, such as when joining paths from such commands - a newline in the middle of a path is not valid. Fixes: ad80f550dbc5 ("dts: add SSH command verification") Signed-off-by: Juraj

Re: [PATCH v2] eal: provide macro to allocate and name a section or segment

2024-02-13 Thread Thomas Monjalon
13/02/2024 09:51, Morten Brørup: > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > Sent: Monday, 12 February 2024 21.52 > > > > Provide __rte_section(name) macro that allocates and names a section > > or segment that works with both MSVC and GCC. > > > > Update RTE_TRACE_POINT_RE

Re: [PATCH] maintainers: add myself to usertools

2024-02-13 Thread Ferruh Yigit
On 2/13/2024 9:58 AM, Robin Jarry wrote: > in the past months, I saw that the usertools scripts didn't receive much > reviews. Unless somebody is against it, I'd like to become maintainer > for the usertools folder. > > Signed-off-by: Robin Jarry > Acked-by: Ferruh Yigit

[RFC] ip_frag: support IPv6 reassembly with extensions

2024-02-13 Thread vignesh.purushotham.srinivas
From: Vignesh PS Add support to ip_frag library to perform IPv6 reassembly when extension headers are present before the fragment extension in the packet. Signed-off-by: Vignesh PS --- .mailmap | 1 + lib/ip_frag/ip_frag_common.h | 2 + lib/ip_frag/ip_reassembly

Re: [PATCH v6] ethdev: add template table resize API

2024-02-13 Thread Thomas Monjalon
12/02/2024 19:12, Gregory Etelson: > --- a/doc/guides/howto/rte_flow.rst > +++ b/doc/guides/howto/rte_flow.rst > +Template API resizable table > + > + > +Description > +~~~ > + > +The resizable template table API enables applications to dynamically adjust > +capa

RE: [PATCH] net/mlx5: remove non constant size from type cast

2024-02-13 Thread Slava Ovsiienko
Hi, Sorry for the delay - we considered the opportunity to get rid of the pointer to array at all. Not this time. So: Acked-by: Viacheslav Ovsiienko With best regards, Slava > -Original Message- > From: Tyler Retzlaff > Sent: Monday, February 12, 2024 8:03 PM > To: dev@dpdk.org > Cc:

[PATCH] examples/pipeline: simplify the L2 forwarding example

2024-02-13 Thread Cristian Dumitrescu
Simplified the L2 forwarding examples by removing all tables and actions, as they are not really needed for this simplest use-case. --- examples/pipeline/examples/l2fwd.spec | 34 +++ 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/examples/pipeline/examples/

[PATCH V2] examples/pipeline: simplify the L2 forwarding example

2024-02-13 Thread Cristian Dumitrescu
Simplified the L2 forwarding examples by removing all tables and actions, as they are not really needed for this simplest use-case. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/l2fwd.spec | 34 +++ 1 file changed, 8 insertions(+), 26 deletions(-) dif

RE: [PATCH 12/15] rawdev: use GCC and MSVC common VA ARGS extension

2024-02-13 Thread Hemant Agrawal
Acked-by: Hemant Agrawal smime.p7s Description: S/MIME cryptographic signature

RE: [EXT] Re: [PATCH] examples/ipsec-secgw: fix IPsec performance drop

2024-02-13 Thread Rahul Bhansali
> -Original Message- > From: Ferruh Yigit > Sent: Friday, February 9, 2024 7:21 PM > To: Rahul Bhansali ; dev@dpdk.org; Radu Nicolau > ; Akhil Goyal ; Konstantin > Ananyev ; Anoob Joseph > > Subject: Re: [EXT] Re: [PATCH] examples/ipsec-secgw: fix IPsec performance > drop > > On 2/9/2

RE: [PATCH] net/mlx5: enable PCI related counters

2024-02-13 Thread Slava Ovsiienko
Hi, Regarding "dev_out_of_buffer" - it is global counter, relates to the whole device port, Including queues not managed by DPDK application - Mellanox/Nvidia NICs operate In "bifurcated mode" - there might be queues managed by kernel or another DPDK application. Not sure it makes a lot of sense,

Re: [PATCH v2 0/4] more replacement of zero length array

2024-02-13 Thread David Marchand
On Mon, Feb 12, 2024 at 11:36 PM Tyler Retzlaff wrote: > > Replace some missed zero length arrays not captured in the > original series. > https://patchwork.dpdk.org/project/dpdk/list/?series=30410&state=* > > Zero length arrays are a GNU extension that has been > superseded by flex arrays. > > ht

[PATCH v3 1/4] ethdev: introduce encap hash calculation

2024-02-13 Thread Ori Kam
During encapsulation of a packet, it is possible to change some outer headers to improve flow destribution. For example, from VXLAN RFC: "It is recommended that the UDP source port number be calculated using a hash of fields from the inner packet -- one example being a hash of the inner Ethernet fr

[PATCH v3 3/4] net/mlx5: add calc encap hash support

2024-02-13 Thread Ori Kam
This commit adds support for encap hash calculation. Signed-off-by: Ori Kam Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5_flow.c| 29 +++ drivers/net/mlx5/mlx5_flow.h| 8 drivers/net/mlx5/mlx5_flow_hw.c | 66 + 3 files changed, 1

[PATCH v3 2/4] net/mlx5/hws: introduce encap entropy hash calculation API

2024-02-13 Thread Ori Kam
From: Hamdan Igbaria Add new function for encap entropy hash calculation, the function will check the device capability for the entropy hash type used by the device, and will calculate the entropy hash value of the user passed fields according this type. Signed-off-by: Hamdan Igbaria Acked-by:

[PATCH v3 4/4] app/testpmd: add encap hash calculation

2024-02-13 Thread Ori Kam
This commits add support for calculating the encap hash. Command structure: flow hash {port} encap {target field} pattern {item} [/ {item} [...] ] / end Example: calculate hash to be used by VXLAN encapsulation. flow hash 0 encap hash_field_sport pattern ipv4 dst is 7.7.7.7 src is 8.8.8.8 / ud

[PATCH v4 1/4] ethdev: introduce encap hash calculation

2024-02-13 Thread Ori Kam
During encapsulation of a packet, it is possible to change some outer headers to improve flow destribution. For example, from VXLAN RFC: "It is recommended that the UDP source port number be calculated using a hash of fields from the inner packet -- one example being a hash of the inner Ethernet fr

[PATCH v4 2/4] net/mlx5/hws: introduce encap entropy hash calculation API

2024-02-13 Thread Ori Kam
From: Hamdan Igbaria Add new function for encap entropy hash calculation, the function will check the device capability for the entropy hash type used by the device, and will calculate the entropy hash value of the user passed fields according this type. Signed-off-by: Hamdan Igbaria Acked-by:

[PATCH v4 3/4] net/mlx5: add calc encap hash support

2024-02-13 Thread Ori Kam
This commit adds support for encap hash calculation. Signed-off-by: Ori Kam Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5_flow.c| 29 +++ drivers/net/mlx5/mlx5_flow.h| 8 drivers/net/mlx5/mlx5_flow_hw.c | 66 + 3 files changed,

[PATCH v4 4/4] app/testpmd: add encap hash calculation

2024-02-13 Thread Ori Kam
This commits add support for calculating the encap hash. Command structure: flow hash {port} encap {target field} pattern {item} [/ {item} [...] ] / end Example: calculate hash to be used by VXLAN encapsulation. flow hash 0 encap hash_field_sport pattern ipv4 dst is 7.7.7.7 src is 8.8.8.8 / ud

Re: [PATCH v2] config/x86: config support for AMD EPYC processors

2024-02-13 Thread Thomas Monjalon
02/01/2024 19:18, Konstantin Ananyev: > > > On x86 platforms, max lcores are limited to 128 by default. > > > > On AMD EPYC processors, this limit was adjusted for native > > builds in the previous patch. > > https://patches.dpdk.org/project/dpdk/patch/ > > 20230925151027.558546-1-sivaprasad.tumm

[PATCH] examples/pipeline: fix include path for rte_log.h

2024-02-13 Thread Cristian Dumitrescu
When rte_log.h was moved to a new directory, the include path was not updated for the generated C code produced by the pipeline library, which results in build failure for this code. Fixes: 09ce41310930 ("log: separate logging functions out of EAL") Cc: sta...@dpdk.org Signed-off-by: Cristian Dum

Re: [PATCH v2] eal/x86: add AMD vendor check to choose TSC calibration

2024-02-13 Thread Thomas Monjalon
23/11/2023 11:29, Ferruh Yigit: > On 11/23/2023 7:27 AM, Sivaprasad Tummala wrote: > > AMD Epyc processors doesn't support get_tsc_freq_arch(). > > The patch allows graceful return to allow fallback to > > alternate TSC calibration. > > > > Fixes: 3dbc565e81a0 ("timer: honor arch-specific TSC freq

[PATCH] drivers: use common container_of macro

2024-02-13 Thread David Marchand
rte_common.h provides container_of if none is defined. The drivers headers touched by this commit either already include rte_common.h or use some other common macro defined in rte_common.h. As a consequence, it seems safe to assume that container_of is always available for includers of those heade

Re: [PATCH v4 1/4] ethdev: introduce encap hash calculation

2024-02-13 Thread Ferruh Yigit
On 2/13/2024 2:16 PM, Ori Kam wrote: > During encapsulation of a packet, it is possible to change some > outer headers to improve flow destribution. > For example, from VXLAN RFC: > "It is recommended that the UDP source port number > be calculated using a hash of fields from the inner packet -- >

Re: [PATCH v4 4/4] app/testpmd: add encap hash calculation

2024-02-13 Thread Ferruh Yigit
On 2/13/2024 2:16 PM, Ori Kam wrote: > This commits add support for calculating the encap hash. > > Command structure: > flow hash {port} encap {target field} pattern {item} [/ {item} [...] ] / end > > Example: > calculate hash to be used by VXLAN encapsulation. > flow hash 0 encap hash_field_spo

Re: [PATCH v4 1/4] ethdev: introduce encap hash calculation

2024-02-13 Thread Ferruh Yigit
On 2/13/2024 3:45 PM, Ferruh Yigit wrote: > On 2/13/2024 2:16 PM, Ori Kam wrote: >> During encapsulation of a packet, it is possible to change some >> outer headers to improve flow destribution. >> For example, from VXLAN RFC: >> "It is recommended that the UDP source port number >> be calculated u

Re: [PATCH] doc: remove cmdline_poll deprecation notice

2024-02-13 Thread David Marchand
On Mon, Dec 11, 2023 at 5:53 PM Stephen Hemminger wrote: > > cmdline_poll has been removed by: > commit f44f2edd198a ("cmdline: remove poll function") > but deprecation notice was left behind. > Fixes: f44f2edd198a ("cmdline: remove poll function") Cc: sta...@dpdk.org > Signed-off-by: Stephen He

RE: [PATCH] net/mlx5: enable PCI related counters

2024-02-13 Thread Dariusz Sosnowski
> -Original Message- > From: Stephen Hemminger > Sent: Saturday, February 10, 2024 02:33 > To: Wathsala Vithanage > Cc: NBU-Contact-Thomas Monjalon (EXTERNAL) ; > Dariusz Sosnowski ; Slava Ovsiienko > ; Ori Kam ; Suanming Mou > ; Matan Azrad ; > dev@dpdk.org; n...@arm.com; Honnappa Nagara

Re: [PATCH v2] dts: strip whitespaces from stdout and stderr

2024-02-13 Thread Jeremy Spewock
Reviewed-by: Jeremy Spewock

RE: [PATCH] net/mlx5: enable PCI related counters

2024-02-13 Thread Dariusz Sosnowski
> -Original Message- > From: Wathsala Vithanage > Sent: Friday, February 9, 2024 21:42 > To: NBU-Contact-Thomas Monjalon (EXTERNAL) ; > Dariusz Sosnowski ; Slava Ovsiienko > ; Ori Kam ; Suanming Mou > ; Matan Azrad > Cc: dev@dpdk.org; n...@arm.com; Wathsala Vithanage > ; Honnappa Nagaraha

Re: [PATCH] examples/pipeline: fix include path for rte_log.h

2024-02-13 Thread David Marchand
On Tue, Feb 13, 2024 at 3:52 PM Cristian Dumitrescu wrote: > > When rte_log.h was moved to a new directory, the include path was not > updated for the generated C code produced by the pipeline library, > which results in build failure for this code. > > Fixes: 09ce41310930 ("log: separate logging

Re: [PATCH] drivers: use common container_of macro

2024-02-13 Thread Tyler Retzlaff
On Tue, Feb 13, 2024 at 04:37:41PM +0100, David Marchand wrote: > rte_common.h provides container_of if none is defined. > > The drivers headers touched by this commit either already include > rte_common.h or use some other common macro defined in rte_common.h. > As a consequence, it seems safe to

RE: [PATCH v2] mbuf: replace GCC marker extension with C11 anonymous unions

2024-02-13 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Tuesday, 13 February 2024 07.46 > > Replace the use of RTE_MARKER with C11 anonymous unions to improve > code portability between toolchains. How about combining the cacheline 0 marker and padding, like this: struct rte_mbuf {

[PATCH 2/3] pipeline: optimize conversion between IPv4 and IPv6 addresses

2024-02-13 Thread Cristian Dumitrescu
Enhanced the move instruction to detect and optimize the conversion between 128-bit numbers (IPv6 addresses) and 64-bit (upper or lower part of IPv6 addresses) or 32-bit numbers (IPv4 addresses). Signed-off-by: Cristian Dumitrescu --- lib/pipeline/rte_swx_pipeline.c | 56 +++

[PATCH 3/3] examples/pipeline: add example for IPv6 address swap

2024-02-13 Thread Cristian Dumitrescu
Add example for swapping the two halves of the IPv6 source address. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/ipv6_addr_swap.cli | 35 .../pipeline/examples/ipv6_addr_swap.spec | 83 +++ 2 files changed, 118 insertions(+) create mode 100644 e

[PATCH 1/3] pipeline: add new instruction for upper half of IPv6 address

2024-02-13 Thread Cristian Dumitrescu
Added new instruction called "movh" to read/write the upper half of an IPv6 address, i.e. bits 127-64 of a 128-bit field. Signed-off-by: Cristian Dumitrescu --- lib/pipeline/rte_swx_pipeline.c | 99 lib/pipeline/rte_swx_pipeline_internal.h | 52 - 2

[PATCH 0/3] pipeline: extend the IPv6 support

2024-02-13 Thread Cristian Dumitrescu
So far, the pipeline supports the following operations on IPv6 addresses: -using an IPv6 address as a table match field of exact/ternary/LPM match type -assignment of IPv6 address to another IPv6 address -conversion between an IPv4 address and an IPv6 address The reason for this limited support is

RE: [PATCH v2] RFC: replace GCC marker extension with C11 anonymous unions

2024-02-13 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Tuesday, 13 February 2024 07.46 > > The zero sized RTE_MARKER typedefs are a GCC extension unsupported > by > MSVC. Replace the use of the RTE_MARKER typedefs with anonymous > unions. > > Note: > > v1 of the series tried to ma

RE: [PATCH] examples/pipeline: fix include path for rte_log.h

2024-02-13 Thread Dumitrescu, Cristian
Hi David, > -Original Message- > From: David Marchand > Sent: Tuesday, February 13, 2024 4:19 PM > To: Dumitrescu, Cristian > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [PATCH] examples/pipeline: fix include path for rte_log.h > > > Wrt $Subject, copy/paste code in drivers/net/so

[RFC] net/bonding: add user callback for bond xmit policy

2024-02-13 Thread vignesh.purushotham.srinivas
From: Vignesh PS Add support to bonding PMD to allow user callback function registration for TX transmit policy. Signed-off-by: Vignesh PS --- .mailmap| 1 + drivers/net/bonding/eth_bond_private.h | 6 ++ drivers/net/bonding/rte_eth_bond.h | 17 +

[PATCH V2] examples/pipeline: fix include path for rte_log.h

2024-02-13 Thread Cristian Dumitrescu
When rte_log.h was moved to a new directory, the include path was not updated for the generated C code produced by the pipeline library, which results in build failure for this code. Fixes: 09ce41310930 ("log: separate logging functions out of EAL") Cc: sta...@dpdk.org Signed-off-by: Cristian Dum

[PATCH 1/1] maintainers: update RISC-V maintainer email

2024-02-13 Thread Stanislaw Kardach
Change my email to a personal one. Signed-off-by: Stanislaw Kardach --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index b9d258e627..e61c57b1be 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -310,7 +310,7 @@ F: examples/*/*_altivec.*

[PATCH v2 01/21] ring: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(e) with C11 alignof(typeof(e)) to improve portability between toolchains Signed-off-by: Tyler Retzlaff Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/ring/rte_ring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ring/rte_ring.c b/

[PATCH v2 00/21] use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) and __alignof__(e) with C11 alignof(T) and alignof(typeof(e)) respectively to improve portability of the code between toolchains. v2: * expand series to replace use in entire source tree, now includes app, drivers, examples in addition to lib. Tyler Retzlaf

[PATCH v2 02/21] mbuf: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/mbuf/rte_mbuf_dyn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mbuf/rte_mbuf_dyn.c b

[PATCH v2 04/21] eventdev: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/eventdev/rte_eventdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/eventdev/rte_even

[PATCH v2 03/21] ethdev: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/ethdev/ethdev_driver.c | 3 ++- lib/ethdev/rte_flow.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-

[PATCH v2 07/21] pdcp: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff Acked-by: Anoob Joseph Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/pdcp/rte_pdcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/

[PATCH v2 05/21] stack: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(e) with C11 alignof(typeof(e)) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/stack/rte_stack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/stack/rte_stack

[PATCH v2 06/21] node: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/node/node_private.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/node/node_private.h

[PATCH v2 08/21] reorder: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff Acked-by: Volodymyr Fialko Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/reorder/rte_reorder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --g

[PATCH v2 09/21] security: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff Acked-by: Akhil Goyal Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/security/rte_security.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --g

[PATCH v2 11/21] examples: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff --- examples/bbdev_app/main.c | 3 ++- examples/rxtx_callbacks/main.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/bbdev_app/main.c

[PATCH v2 10/21] test: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Replace use of __alignof__(e) with C11 alignof(typeof(e)) to improve portability between toolchains Signed-off-by: Tyler Retzlaff --- app/test/test_distributor.c | 3 ++- app/test/test_graph.c

[PATCH v2 14/21] event/sw: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff --- drivers/event/sw/sw_evdev_selftest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/event/sw/sw_evdev_selftest.c b/drivers/event/sw/sw_ev

[PATCH v2 13/21] drivers/bus: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff --- drivers/bus/dpaa/dpaa_bus.c | 3 ++- drivers/bus/fslmc/fslmc_bus.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/bus/dpaa/dpaa_bus.c

[PATCH v2 12/21] app/eventdev: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff --- app/test-eventdev/test_order_common.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test-eventdev/test_order_common.c b/app/test-eventde

[PATCH v2 15/21] net/bnxt: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff --- drivers/net/bnxt/bnxt_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c inde

[PATCH v2 17/21] net/nfp: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff --- drivers/net/nfp/nfp_ipsec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/nfp/nfp_ipsec.c b/drivers/net/nfp/nfp_ipsec.c index 452947

[PATCH v2 16/21] net/iavf: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff --- drivers/net/iavf/iavf_ethdev.c | 3 ++- drivers/net/iavf/iavf_ipsec_crypto.c | 4 +++- drivers/net/iavf/iavf_testpmd.c | 3 ++- 3 files changed, 7 insertions(

[PATCH v2 18/21] net/sfc: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff --- drivers/net/sfc/sfc_dp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/sfc/sfc_dp.c b/drivers/net/sfc/sfc_dp.c index 2b0a1d7..7e2a

[PATCH v2 19/21] net/virtio: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff --- drivers/net/virtio/virtio_rxtx.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_

[PATCH v2 20/21] net/vmxnet3: use C11 alignof

2024-02-13 Thread Tyler Retzlaff
Replace use of __alignof__(T) with C11 alignof(T) to improve portability between toolchains. Signed-off-by: Tyler Retzlaff --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vm

[PATCH v2 21/21] devtools: forbid direct use of compiler alignof and typeof

2024-02-13 Thread Tyler Retzlaff
Add 2 checks forbidding direct use of __alignof__ and __typeof__ instead C11 alignof and rte_common.h typeof macros should be used. Signed-off-by: Tyler Retzlaff --- devtools/checkpatches.sh | 16 1 file changed, 16 insertions(+) diff --git a/devtools/checkpatches.sh b/devtools

Re: [PATCH v2] mbuf: replace GCC marker extension with C11 anonymous unions

2024-02-13 Thread Tyler Retzlaff
On Tue, Feb 13, 2024 at 05:58:21PM +0100, Morten Brørup wrote: > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > Sent: Tuesday, 13 February 2024 07.46 > > > > Replace the use of RTE_MARKER with C11 anonymous unions to improve > > code portability between toolchains. > > How about

[PATCH v3 2/3] crypto/ipsec_mb: provide type to per lcore macro

2024-02-13 Thread Tyler Retzlaff
Adjust the use of per lcore macro to provide type as the first argument as to not require __typeof__ during expansion. Signed-off-by: Tyler Retzlaff Acked-by: Bruce Richardson --- drivers/crypto/ipsec_mb/pmd_aesni_gcm_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

[PATCH v3 0/3] remove __typeof__ from expansion of per lcore macros

2024-02-13 Thread Tyler Retzlaff
The design of the macros requires a type to be provided to the macro. By expanding the type parameter inside of typeof it also inadvertently allows an expression to be used which appears not to have been intended after evaluating the parameter name and existing macro use. Technically this is an A

[PATCH v3 1/3] eal: provide type to per lcore macro

2024-02-13 Thread Tyler Retzlaff
Adjust the use of per lcore macro to provide type as the first argument as to not require __typeof__ during expansion. Signed-off-by: Tyler Retzlaff Acked-by: Bruce Richardson --- lib/eal/common/eal_common_errno.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eal/commo

[PATCH v3 3/3] eal: remove typeof from per lcore macros

2024-02-13 Thread Tyler Retzlaff
The design of the macros requires a type to be provided to the macro. By expanding the type parameter inside of typeof it also inadvertently allows an expression to be used which appears not to have been intended after evaluating the parameter name and existing macro use. Technically this is an A

Re: [PATCH v2 15/21] net/bnxt: use C11 alignof

2024-02-13 Thread Ajit Khaparde
On Tue, Feb 13, 2024 at 10:34 AM Tyler Retzlaff wrote: > > Replace use of __alignof__(T) with C11 alignof(T) to improve portability > between toolchains. > > Signed-off-by: Tyler Retzlaff Acked-by: Ajit Khaparde > --- > drivers/net/bnxt/bnxt_ethdev.c | 3 ++- > 1 file changed, 2 insertions(+),

Re: [PATCH v2 0/4] more replacement of zero length array

2024-02-13 Thread Tyler Retzlaff
On Tue, Feb 13, 2024 at 02:14:28PM +0100, David Marchand wrote: > On Mon, Feb 12, 2024 at 11:36 PM Tyler Retzlaff > wrote: > > > > Replace some missed zero length arrays not captured in the > > original series. > > https://patchwork.dpdk.org/project/dpdk/list/?series=30410&state=* > > > > Zero len

  1   2   >