[PATCH 1/2] app/testpmd: change rule type

2023-02-22 Thread Eli Britstein
Change rule type to be uintptr_t (instead of currently uint32_t) to be able to accomodate larger IDs, as a pre-step towards allowing user-id to flows. Signed-off-by: Eli Britstein --- app/test-pmd/cmdline_flow.c | 12 ++-- app/test-pmd/config.c | 34

[PATCH 2/2] app/testpmd: user assigned flow ID to flows

2023-02-22 Thread Eli Britstein
destroy 0 rule 0x1234 user_id Flow rule #0 destroyed, user-id 0x1234 Signed-off-by: Eli Britstein --- app/test-pmd/cmdline_flow.c | 72 +++-- app/test-pmd/config.c | 34 +++--- app/test-pmd/testpmd.h | 12 +

RE: [PATCH v2] doc: fix support table for ETH and VLAN flow items

2022-10-15 Thread Eli Britstein
>-Original Message- >From: Ilya Maximets >Sent: Friday, October 14, 2022 3:37 PM >To: fengchengwen ; dev@dpdk.org; Ori Kam >; NBU-Contact-Thomas Monjalon (EXTERNAL) >; Eli Britstein >Cc: i.maxim...@ovn.org; Ajit Khaparde ; >Somnath Kotur ; Rahul Lakkireddy >

RE: [dpdk-dev] [RFC] testpmd: support user-id attribute

2022-08-07 Thread Eli Britstein
Hi Aman, No, the group attribute has its own meaning, so it cannot be used for this purpose, unless I misunderstood your meaning. Thanks, Eli >-Original Message- >From: Singh, Aman Deep >Sent: Thursday, July 28, 2022 5:07 PM >To: dev@dpdk.org; Eli Britstein >Cc: Slava

[dpdk-dev] [RFC] testpmd: support user-id attribute

2022-07-04 Thread Eli Britstein
Upon creation of a flow, testpmd assigns it a flow ID. Later, the flow ID is used for flow operations (query, destroy, dump). The testpmd application allows to manage flow rules with its IDs. The flow ID is known only when the flow is created. In order to prepare a complete sequence of testpmd com

[dpdk-dev] [PATCH V2 1/1] app/testpmd: fix packet burst spreading stats

2021-10-21 Thread Eli Britstein
ing an array cell of index . This array is mistakenly [MAX_PKT_BURST] size. Receiving the maximum burst will cause out of bound write. Enlarge the spread stats array by one cell to fix it. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein Revi

Re: [dpdk-dev] [PATCH V2 1/3] net: avoid cast-align warning in VLAN insert function

2021-10-21 Thread Eli Britstein
On 10/21/2021 6:48 PM, Stephen Hemminger wrote: External email: Use caution opening links or attachments On Thu, 21 Oct 2021 11:51:30 +0300 Eli Britstein wrote: In rte_vlan_insert there is a casting of rte_pktmbuf_prepend returned value to (struct rte_ether_hdr *), which causes cast-align

[dpdk-dev] [PATCH V2 2/3] mbuf: avoid cast-align warning in pktmbuf mtod offset macro

2021-10-21 Thread Eli Britstein
af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein Acked-by: Olivier Matz --- lib/mbuf/rte_mbuf_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mbuf/rte_mbuf_core.h b/lib/mbuf/rte_mbuf_core.h index fdaaaf67f2..dd08d42

[dpdk-dev] [PATCH V2 3/3] eal/x86: avoid cast-align warning in x86 memcpy functions

2021-10-21 Thread Eli Britstein
ignment, add first a (void *) or (const void *) castings, to avoid the warnings. Fixes: 9484092baad3 ("eal/x86: optimize memcpy for AVX512 platforms") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein --- lib/eal/x86/include/rte_memcpy.h | 80 ++-- 1 file

[dpdk-dev] [PATCH V2 1/3] net: avoid cast-align warning in VLAN insert function

2021-10-21 Thread Eli Britstein
he warning. Fixes: c974021a5949 ("ether: add soft vlan encap/decap") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein Acked-by: Olivier Matz --- lib/net/rte_ether.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/rte_ether.h b/lib/net/rte_ether.h index b83e0d3fc

[dpdk-dev] [PATCH] app/testpmd: fix packet burst spreading stats

2021-10-21 Thread Eli Britstein
75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein Reviewed-by: Matan Azrad --- app/test-pmd/testpmd.c | 2 +- app/test-pmd/testpmd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpm

Re: [dpdk-dev] [PATCH 2/3] mbuf: avoid cast-align warning in pktmbuf mtod offset macro

2021-10-18 Thread Eli Britstein
Hi Olivier, On 8/1/2021 11:06 AM, Eli Britstein wrote: On 7/30/2021 2:10 PM, Olivier Matz wrote: External email: Use caution opening links or attachments Hi Eli, On Thu, Jul 29, 2021 at 10:13:45AM +0300, Eli Britstein wrote: On 7/28/2021 6:28 PM, Olivier Matz wrote: External email: Use

[dpdk-dev] [PATCH V2 1/2] app/testpmd: add tunnel types

2021-09-23 Thread Eli Britstein
nvgre testpmd> flow tunnel create 0 type gre port 0: flow tunnel #3 type gre testpmd> flow tunnel create 0 type geneve port 0: flow tunnel #4 type geneve Fixes: 1b9f274623b8 ("app/testpmd: add commands for tunnel offload") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein --- app/

[dpdk-dev] [PATCH V2 2/2] net/mlx5: add support for more tunnel types

2021-09-23 Thread Eli Britstein
Accept RTE_FLOW_ITEM_TYPE_GRE, RTE_FLOW_ITEM_TYPE_NVGRE and RTE_FLOW_ITEM_TYPE_GENEVE as valid tunnel types. Fixes: 4ec6360de37d ("net/mlx5: implement tunnel offload") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein --- drivers/net/mlx5/mlx5_flow.c | 3 +++ 1 file changed, 3

[dpdk-dev] [PATCH 1/2] app/testpmd: add tunnel types

2021-09-13 Thread Eli Britstein
Current testpmd implementation supports VXLAN only for tunnel offload. Add GRE, NVGRE and GENEVE for tunnel offload flow matches. Signed-off-by: Eli Britstein --- app/test-pmd/config.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd

[dpdk-dev] [PATCH 2/2] net/mlx5: add support for more tunnel types

2021-09-13 Thread Eli Britstein
Accept RTE_FLOW_ITEM_TYPE_GRE, RTE_FLOW_ITEM_TYPE_NVGRE and RTE_FLOW_ITEM_TYPE_GENEVE as valid tunnel types. Signed-off-by: Eli Britstein --- drivers/net/mlx5/mlx5_flow.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index

Re: [dpdk-dev] [PATCH V3 1/2] netdev-offload-dpdk: Use has_vlan match attribute

2021-08-24 Thread Eli Britstein
On 8/24/2021 6:47 PM, Ilya Maximets wrote: External email: Use caution opening links or attachments On 8/24/21 5:25 PM, Eli Britstein wrote: On 8/24/2021 6:08 PM, Finn, Emma wrote: External email: Use caution opening links or attachments -Original Message- From: Eli Britstein

Re: [dpdk-dev] [PATCH 1/2] ethdev: announce flow API action PORT_ID changes

2021-08-01 Thread Eli Britstein
On 8/1/2021 1:22 PM, Andrew Rybchenko wrote: External email: Use caution opening links or attachments By its very name, action PORT_ID means that packets hit an ethdev with the given DPDK port ID. At least the current comments don't state the opposite. That said, since port representors had b

Re: [dpdk-dev] [PATCH 2/3] mbuf: avoid cast-align warning in pktmbuf mtod offset macro

2021-08-01 Thread Eli Britstein
On 7/30/2021 2:10 PM, Olivier Matz wrote: External email: Use caution opening links or attachments Hi Eli, On Thu, Jul 29, 2021 at 10:13:45AM +0300, Eli Britstein wrote: On 7/28/2021 6:28 PM, Olivier Matz wrote: External email: Use caution opening links or attachments On Tue, Jul 13

Re: [dpdk-dev] [PATCH 2/3] mbuf: avoid cast-align warning in pktmbuf mtod offset macro

2021-07-29 Thread Eli Britstein
On 7/28/2021 6:28 PM, Olivier Matz wrote: External email: Use caution opening links or attachments On Tue, Jul 13, 2021 at 09:49:09AM +0300, Eli Britstein wrote: In rte_pktmbuf_mtod_offset macro, there is a casting from char * to type 't', which may cause cast-align warning when

[dpdk-dev] [PATCH 3/3] eal/x86: avoid cast-align warning in x86 memcpy functions

2021-07-12 Thread Eli Britstein
st __m128i *)(const __m128i *)src); | ^ As the code assumes correct alignment, add first a (void *) or (const void *) castings, to avoid the warnings. Fixes: 9484092baad3 ("eal/x86: optimize memcpy for AVX512 platforms") Cc: sta...@dpdk.org

[dpdk-dev] [PATCH 2/3] mbuf: avoid cast-align warning in pktmbuf mtod offset macro

2021-07-12 Thread Eli Britstein
723 | ((t)((char *)(m)->buf_addr + (m)->data_off + (o))) | ^ As the code assumes correct alignment, add first a (void *) casting, to avoid the warning. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein --- lib/mbuf/rte_m

[dpdk-dev] [PATCH 1/3] net: avoid cast-align warning in VLAN insert function

2021-07-12 Thread Eli Britstein
to avoid the warning. Fixes: c974021a5949 ("ether: add soft vlan encap/decap") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein --- lib/net/rte_ether.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/rte_ether.h b/lib/net/rte_ether.h index 7ee5e9a292..6

[dpdk-dev] [PATCH 0/3] Avoid cast-align warnings

2021-07-12 Thread Eli Britstein
. I do not have a system in which I encounter such warnings, so currently I do not post any change for it. Eli Britstein (3): net: avoid cast-align warning in VLAN insert function mbuf: avoid cast-align warning in pktmbuf mtod offset macro eal/x86: avoid cast-align warning in x86 memcpy

Re: [dpdk-dev] [RFC PATCH] ethdev: clarify flow action PORT ID semantics

2021-06-02 Thread Eli Britstein
On 6/2/2021 1:50 PM, Andrew Rybchenko wrote: External email: Use caution opening links or attachments On 6/2/21 12:57 PM, Eli Britstein wrote: On 6/1/2021 5:53 PM, Andrew Rybchenko wrote: External email: Use caution opening links or attachments On 6/1/21 5:44 PM, Eli Britstein wrote: On

Re: [dpdk-dev] [RFC PATCH] ethdev: clarify flow action PORT ID semantics

2021-06-02 Thread Eli Britstein
On 6/1/2021 5:53 PM, Andrew Rybchenko wrote: External email: Use caution opening links or attachments On 6/1/21 5:44 PM, Eli Britstein wrote: On 6/1/2021 5:35 PM, Andrew Rybchenko wrote: External email: Use caution opening links or attachments On 6/1/21 4:24 PM, Eli Britstein wrote: On

Re: [dpdk-dev] [RFC PATCH] ethdev: clarify flow action PORT ID semantics

2021-06-01 Thread Eli Britstein
On 6/1/2021 5:35 PM, Andrew Rybchenko wrote: External email: Use caution opening links or attachments On 6/1/21 4:24 PM, Eli Britstein wrote: On 6/1/2021 3:10 PM, Ilya Maximets wrote: External email: Use caution opening links or attachments On 6/1/21 1:14 PM, Ivan Malov wrote: By its

Re: [dpdk-dev] [RFC PATCH] ethdev: clarify flow action PORT ID semantics

2021-06-01 Thread Eli Britstein
On 6/1/2021 3:10 PM, Ilya Maximets wrote: External email: Use caution opening links or attachments On 6/1/21 1:14 PM, Ivan Malov wrote: By its very name, action PORT_ID means that packets hit an ethdev with the given DPDK port ID. At least the current comments don't state the opposite. That

Re: [dpdk-dev] [PATCH] doc: add Linux rawio capability requirement in mlx5 guide

2021-04-01 Thread Eli Britstein
I used "rawio". I think "raw IO" misses that meaning. What do you think? 01/04/2021 09:49, Eli Britstein: For an application to be able to create "transfer" rte_flows for mlx5 What is "tranfer" rule? https://doc.dpdk.org/guides/prog_guide/rte_fl

[dpdk-dev] [PATCH] doc: add Linux rawio capability requirement in mlx5 guide

2021-04-01 Thread Eli Britstein
For an application to be able to create "transfer" rte_flows for mlx5 devices, it should have cap_sys_rawio capability. Document it. Fixes: f772cc424c45 ("doc: add required Linux capabilities in mlx5 guide") Cc: sta...@dpdk.org Signed-off-by: Eli Britstein Reviewed-by: Ga

Re: [dpdk-dev] [PATCH v8 2/3] ethdev: tunnel offload model

2021-03-03 Thread Eli Britstein
On 3/3/2021 4:03 PM, Ivan Malov wrote: Hi, Could someone please also clarify the meaning (from PMD standpoint and from application's standpoint) of the 64-bit field "tun_id" in "rte_flow_tunnel"? The current comment reads: "Tunnel identification", which is quite ambiguous, not to mention th

[dpdk-dev] [PATCH V3 1/1] net/mlx5: fix IPv6 next proto validation

2020-10-22 Thread Eli Britstein
ingress pattern eth / ipv6 has_frag_ext is 0 / end actions drop / end Fix the validation only on proto asked by the user. Fixes: 92be60e1b541 ("net/mlx5: enforce limitation on IPv6 next proto") Signed-off-by: Eli Britstein Acked-by: Dekel Peled Acked-by: Matan Azrad --- driver

Re: [dpdk-dev] [PATCH V2 1/1] net/mlx5: fix IPv6 next proto validation

2020-10-20 Thread Eli Britstein
++ On 10/20/2020 4:19 PM, Eli Britstein wrote: Previous patch added validation of the IPv6 next proto field, in order to overcome a known limitation. One of the values checked is IPPROTO_HOPOPTS, which is defined as 0. If proto field is not specified for matching, or mask=0, as in the following

[dpdk-dev] [PATCH V2 1/1] net/mlx5: fix IPv6 next proto validation

2020-10-20 Thread Eli Britstein
ingress pattern eth / ipv6 has_frag_ext is 0 / end actions drop / end Fix the validation only on proto asked by the user. Fixes: 55e4c1d1ba73 ("net/mlx5: enforce limitation on IPv6 next proto") Signed-off-by: Eli Britstein Acked-by: Dekel Peled --- drivers/net/mlx5/mlx5_flow.c | 2

[dpdk-dev] [PATCH V2 1/1] eal: fix build with conflicting libc variable memory_order

2020-10-15 Thread Eli Britstein
if the compiler does provide stdatomic.h header, passing -Wsystem-headers in the CFLAGS will also cause that failure. Fix it by changing the argument name 'memory_order' to 'memorder'. Fixes: 672a15056380 ("eal: add wrapper for C11 atomic thread fence") Signed-off-b

[dpdk-dev] [PATCH] eal: fix build with conflicting libc variable memory_order

2020-10-14 Thread Eli Britstein
omic.h), will fail compilation with: error: declaration of 'memory_order' shadows a global declaration [-Werror=shadow] rte_atomic_thread_fence(int memory_order) Fix it by changing the argument name 'memory_order' to 'memorder'. Fixes: 672a15056380 ("

Re: [dpdk-dev] [RFC] ethdev: add VLAN attributes to ETH item

2020-08-06 Thread Eli Britstein
On 8/4/2020 6:36 PM, Dekel Peled wrote: In existing code the match on tagged/untagged packets is not explicit. Recent documentation update [1] describes the different patterns and clarifies the intended use of different patterns. This patch proposes an update to ETH item struct, to clearly def

[dpdk-dev] [PATCH V2 1/2] net/mlx5: introduce a helper to set IP version match

2020-05-03 Thread Eli Britstein
Introduce a heler function to set the ip_version match. Signed-off-by: Eli Britstein Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 38 -- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b

[dpdk-dev] [PATCH V2 2/2] net/mlx5: optimize performance for IPv4/IPv6 ethertype

2020-05-03 Thread Eli Britstein
The HW is optimized for IPv4/IPv6. For such cases avoid matching on ethertype, and use ip_version field instead. Signed-off-by: Eli Britstein Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 53 +++-- 1 file changed, 41 insertions(+), 12

[dpdk-dev] [PATCH V2 0/2] net/mlx5: optimize performance for IPv4/IPv6

2020-05-03 Thread Eli Britstein
The HW is optimized for IPv4/IPv6. For such cases avoid matching on ethertype, and use ip_version field instead. Eli Britstein (2): net/mlx5: introduce a helper to set IP version match net/mlx5: optimize performance for IPv4/IPv6 ethertype drivers/net/mlx5/mlx5_flow_dv.c | 91

[dpdk-dev] [PATCH 1/2] net/mlx5: introduce a helper to set IP version match

2020-05-03 Thread Eli Britstein
Introduce a heler function to set the ip_version match. Signed-off-by: Eli Britstein Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 38 -- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b

[dpdk-dev] [PATCH 2/2] net/mlx5: optimize performance for IPv4/IPv6 ethertype

2020-05-03 Thread Eli Britstein
The HW is optimized for IPv4/IPv6. For such cases avoid matching on ethertype, and use ip_version field instead. Signed-off-by: Eli Britstein Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 51 +++-- 1 file changed, 39 insertions(+), 12

[dpdk-dev] [PATCH 0/2] net/mlx5: optimize performance for IPv4/IPv6

2020-05-03 Thread Eli Britstein
The HW is optimized for IPv4/IPv6. For such cases avoid matching on ethertype, and use ip_version field instead. Eli Britstein (2): net/mlx5: introduce a helper to set IP version match net/mlx5: optimize performance for IPv4/IPv6 ethertype drivers/net/mlx5/mlx5_flow_dv.c | 89

Re: [dpdk-dev] [PATCH] net/mlx5: fix order of lines in loop

2019-08-06 Thread Eli Britstein
Acked-by: Eli Britstein On 8/5/2019 2:51 PM, Dekel Peled wrote: > Function flow_dv_zero_encap_udp_csum() uses a while loop to iterate > over vlan items in flow rule. > Pointer next_hdr is incremented to the next item before it is used, > so the first item is skipped. > > Th

[dpdk-dev] Loading external PMD

2016-09-04 Thread Eli Britstein
Hi In your PMD, you should mark your init function as constructor, in which you should register your PMD as a DPDK driver. You can look at Intel's "memnic" example (though not maintained, and not being compiled with recent versions, you can take it as a reference). The function I mean from it:

[dpdk-dev] SRIOV hot unplug

2016-07-20 Thread Eli Britstein
Integrating Tetsuya's last comments on top of the latest message and reply. > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Eli Britstein > Sent: Tuesday, 19 July, 2016 5:34 PM > To: Declan Doherty; Tetsuya Mukawa; dev at dpdk.org > Cc

[dpdk-dev] SRIOV hot unplug

2016-07-19 Thread Eli Britstein
> -Original Message- > From: Declan Doherty [mailto:declan.doherty at intel.com] > Sent: Tuesday, 19 July, 2016 5:15 PM > To: Eli Britstein; Tetsuya Mukawa; dev at dpdk.org > Cc: Iremonger, Bernard > Subject: Re: [dpdk-dev] SRIOV hot unplug > > On 07/19/2016 12:18

[dpdk-dev] SRIOV hot unplug

2016-07-19 Thread Eli Britstein
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Tuesday, 19 July, 2016 5:49 AM > To: Eli Britstein; dev at dpdk.org > Cc: Iremonger, Bernard > Subject: Re: [dpdk-dev] SRIOV hot unplug > > Hi Eli, > > On 2016/07/18 17:4

[dpdk-dev] SRIOV hot unplug

2016-07-18 Thread Eli Britstein
side, which I would like to avoid. Do you think might there be any other way for the application to handle such event in a smooth way? Thanks, Eli > -Original Message- > From: Iremonger, Bernard [mailto:bernard.iremonger at intel.com] > Sent: Sunday, 17 July, 2016 11:53 PM >

[dpdk-dev] SRIOV hot unplug

2016-07-17 Thread Eli Britstein
Hello, A DPDK application with a DPDK bond device, with 2 slaves: one vnic, and another is a SRIOV VF connected as a pathrough. The bond device is configured as ACTIVE/BACKUP, and the primary is the VF slave. Now, I do "virsh detach-device" from the host, and the DPDK process in the VM gets segm

[dpdk-dev] ivshmem mmap to specific address

2015-12-09 Thread Eli Britstein
Hello, In librte_eal, in eal_ivshmem.c, in function map_all_segments, there is mapping of segments from the metadata to the same virtual address as written in the metadata. Is there a method to guarantee that this mapping won't fail, even for different processes, that might have large code o