[dpdk-dev] [PATCH v7 2/3] net/ice: add generic flow API

2019-06-24 Thread Qiming Yang
This patch adds ice_flow_create, ice_flow_destroy, ice_flow_flush and ice_flow_validate support, these are used to handle all the generic filters. Signed-off-by: Qiming Yang --- drivers/net/ice/Makefile | 1 + drivers/net/ice/ice_ethdev.c | 44 +++ drivers/net/ice/ice_ethdev.h

[dpdk-dev] [PATCH v7 3/3] net/ice: add UDP tunnel port support

2019-06-24 Thread Qiming Yang
Enabled UDP tunnel port add and delete functions. Signed-off-by: Qiming Yang --- drivers/net/ice/ice_ethdev.c | 54 1 file changed, 54 insertions(+) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 8ee06d1..949d293 10064

[dpdk-dev] [PATCH v7 1/3] net/ice: enable switch filter

2019-06-24 Thread Qiming Yang
From: wei zhao The patch enables the backend of rte_flow. It transfers rte_flow_xxx to device specific data structure and configures packet process engine's binary classifier (switch) properly. Signed-off-by: Wei Zhao --- drivers/net/ice/Makefile| 1 + drivers/net/ice/ice_ethdev.

[dpdk-dev] [PATCH v7 0/3] Enable rte_flow API in ice driver

2019-06-24 Thread Qiming Yang
This patch set enables the backend of rte_flow, and the generic filter related functions in ice driver. Supported flows include ipv4, tcpv4, udpv4, ipv6, tcpv6, udpv6, tunnel, etc. This patch set depends on shared code update. --- v2 changes: - added UDP tunnel port support. - fixed compile issu

Re: [dpdk-dev] [PATCH v2 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-06-24 Thread Jerin Jacob Kollanukkaran
> -Original Message- > From: Honnappa Nagarahalli > Sent: Monday, June 24, 2019 11:11 PM > To: tho...@monjalon.net; Phil Yang (Arm Technology China) > > Cc: Jerin Jacob Kollanukkaran ; dev@dpdk.org; > hemant.agra...@nxp.com; Gavin Hu (Arm Technology China) > ; Honnappa Nagarahalli > ; nd

Re: [dpdk-dev] [PATCH v8 1/1] eventdev: add new software event timer adapter

2019-06-24 Thread Jerin Jacob Kollanukkaran
> -Original Message- > From: Jerin Jacob Kollanukkaran > Sent: Monday, June 24, 2019 11:43 AM > To: Erik Gabriel Carrillo ; > jerin.ja...@caviumnetworks.com > Cc: mattias.ronnb...@ericsson.com; pbhagavat...@caviumnetworks.com; > honnappa.nagaraha...@arm.com; dev@dpdk.org > Subject: RE: [dp

[dpdk-dev] [PATCH] maintainers: claim maintainership of net-mrvl sub tree

2019-06-24 Thread jerinj
From: Jerin Jacob Claim the maintainership of the sub tree dpdk-next-net-mrvl, which covers all the Marvell network PMDs. Cc: Maciej Czekaj Cc: Shijith Thotton Cc: Liron Himi Cc: Zyta Szpak Cc: Rasesh Mody Cc: Shahed Shaikh Cc: Ferruh Yigit Cc: Thomas Monjalon Signed-off-by: Jerin Jacob

[dpdk-dev] [PATCH v2] cryptodev: add ff_disable field in cryptodev config

2019-06-24 Thread Anoob Joseph
Adding a new field, ff_disable, to allow applications to control the features enabled on the crypto device. This would allow for efficient usage of HW/SW offloads. Signed-off-by: Anoob Joseph --- v2: * Updated test & example applications to incorporate the default setting for ff_disable field.

Re: [dpdk-dev] [PATCH] app/testpmd: change port detach interface

2019-06-24 Thread Nithin Dabilpuram
Hi Thomas, A reminder about this patch. On Wed, May 29, 2019 at 01:46:20PM +0530, Nithin Dabilpuram wrote: > Hi Thomas, > > On Mon, May 20, 2019 at 06:20:53PM +0530, Nithin Dabilpuram wrote: > > On Fri, May 17, 2019 at 10:59:38AM +0200, Thomas Monjalon wrote: > > > 17/05/2019 10:55, Nithin Dabil

[dpdk-dev] [PATCH v6 4/4] kernel/linux/kni: add IOVA support in kni module

2019-06-24 Thread vattunuru
From: Kiran Kumar K Patch adds support for kernel module to work in IOVA = VA mode, the idea is to get physical address from iova address using iommu_iova_to_phys API and later use phys_to_virt API to convert the physical address to kernel virtual address. When compared with IOVA = PA mode, ther

[dpdk-dev] [PATCH v6 2/4] lib/kni: add PCI related information

2019-06-24 Thread vattunuru
From: Vamsi Attunuru PCI related information is needed in KNI kernel module, since it requires iommu domain info for address translations(using iommu_iova_to_phys() call) when KNI runs in IOVA = VA mode. Signed-off-by: Vamsi Attunuru --- lib/librte_eal/linux/eal/include/rte_kni_common.h | 7 ++

[dpdk-dev] [PATCH v6 3/4] example/kni: add IOVA support for kni application

2019-06-24 Thread vattunuru
From: Vamsi Attunuru Current KNI implementation operates in IOVA = PA mode, Patch adds support for IOVA = VA mode by addressing the issues with page address translations(IOVA <==> KVA). In this patch KNI application creates mempool with "MEMPOOL_F_NO_PAGE_BOUND" flag to ensure all mbuf memory is

[dpdk-dev] [PATCH v6 0/4] add IOVA = VA support in KNI

2019-06-24 Thread vattunuru
From: Vamsi Attunuru V6 Changes: * Added new mempool flag to ensure mbuf memory is not scattered across page boundaries. * Added KNI kernel module required PCI device information. * Modified KNI example application to create mempool with new mempool flag. V5 changes: * Fixed build issue wit

[dpdk-dev] [PATCH v6 1/4] lib/mempool: skip populating mempool objs that falls on page boundaries

2019-06-24 Thread vattunuru
From: Vamsi Attunuru Patch adds new mempool flag to avoid scattering mbuf memory across page boundaries. Mempool created with this flag set, populated with mbufs which are exactly inside the page boundaries. Signed-off-by: Vamsi Attunuru --- lib/librte_mempool/rte_mempool.c | 2 +-

[dpdk-dev] DPDK Windows Community call - 11 June 2019

2019-06-24 Thread Ranjit Menon
Attendees: (present) - Cathal Pallavi Ranjit Thomas tho...@monjalon.net Tal Shnaiderman Raslan rasl...@mellanox.com; Harini harini.ramakrish...@microsoft.com; Absent/apologies: Adham Masarwah Eilon Greenstein Yohad Tor Bruce Anan Saif ; Jeff jeffrey.tip...@micro

[dpdk-dev] [PATCH v5 8/8] app/testpmd: use new ethernet address parser

2019-06-24 Thread Stephen Hemminger
The cmdline_parse_ether_addr does not need to be used everywhere in testpmd. Can use rte_ether_unformat_addr instead. As an added bonus it eliminates some code for copying. Signed-off-by: Stephen Hemminger --- app/test-pmd/cmdline_flow.c | 5 ++--- app/test-pmd/config.c | 10 +++--- a

[dpdk-dev] [PATCH v5 4/8] net/ether: use bitops to speedup comparison

2019-06-24 Thread Stephen Hemminger
Using bit operations like or and xor is faster than a loop on all architectures. Really just explicit unrolling. Similar cast to uint16 unaligned is already done in other functions here. Signed-off-by: Stephen Hemminger Reviewed-by: Andrew Rybchenko --- lib/librte_net/rte_ether.h | 17 +++-

[dpdk-dev] [PATCH v5 7/8] net/bonding: use new ethernet address parser

2019-06-24 Thread Stephen Hemminger
The cmdline library used to be the only way to parse a mac address. Now there is rte_ether_unformat_addr. Signed-off-by: Stephen Hemminger --- drivers/net/bonding/Makefile| 2 +- drivers/net/bonding/meson.build | 2 +- drivers/net/bonding/rte_eth_bond_args.c | 6 +- 3 fil

[dpdk-dev] [PATCH v5 6/8] cmdline: use new ethernet address parser

2019-06-24 Thread Stephen Hemminger
Now that there is a version of ether_aton in rte_ether, it can be used by the cmdline ethernet address parser. Note: ether_aton_r can not be used in cmdline because the old code would accept either bytes XX:XX:XX:XX:XX:XX or words :: and we need to keep compatiablity. Signed-off-by: S

[dpdk-dev] [PATCH v5 5/8] net/ether: mark ethernet addresses as being 2-byte aligned

2019-06-24 Thread Stephen Hemminger
From: Bruce Richardson When including the rte_ether.h header in applications with warnings enabled, a warning was given because of the assumption of 2-byte alignment of ethernet addresses when processing them. .../include/rte_ether.h:149:2: warning: converting a packed ‘const struct ether_addr

[dpdk-dev] [PATCH v5 0/8] net/ether: enhancements and optimizations

2019-06-24 Thread Stephen Hemminger
This is a collection of patches around the ethernet address manipulation routines in librte_net/rte_ether. v5 reword commit messages to workaround check-log complaints v4 fix meson build reword commit messages add bonding and tespmd patches v3 rebase to use rte_ether prefix drop

[dpdk-dev] [PATCH v5 3/8] ethdev: use new ethernet parsing function

2019-06-24 Thread Stephen Hemminger
Use rte_eth_unformat_addr, so that ethdev can be built and work without the cmdline library. The dependency on cmdline was an arrangement of convenience anyway. Signed-off-by: Stephen Hemminger --- lib/Makefile | 1 - lib/librte_ethdev/Makefile| 2 +- lib/librte_ethd

[dpdk-dev] [PATCH v5 2/8] net/ether: add function to convert string to ethernet address

2019-06-24 Thread Stephen Hemminger
Make a function that can be used in place of eth_aton_r to convert a string to rte_ether_addr. This function allows both byte (xx:xx:xx:xx:xx:xx) and word (::) format and has the same lack of error handling as the original. This also allows ethdev to no longer have a hard dependency on

[dpdk-dev] [PATCH v5 1/8] net/rte_ether: deinline non-critical functions

2019-06-24 Thread Stephen Hemminger
Formatting Ethernet address and getting a random value are not in critical path so they should not be inlined. Signed-off-by: Stephen Hemminger Acked-by: Rami Rosen Reviewed-by: Andrew Rybchenko --- lib/librte_net/Makefile| 1 + lib/librte_net/meson.build | 2 +- lib/libr

Re: [dpdk-dev] [PATCH v2 4/4] examples/ipsec-secgw: add scapy based unittests

2019-06-24 Thread Ananyev, Konstantin
> Add new unittest-like mechanism which uses scapy to craft custom > packets and a set of assertions to check how ipsec-secgw example > application is processing them. Python3 with scapy module is > required by pkttest.sh to run test scripts. > > A new mechanism is used to test IPv6 transport m

Re: [dpdk-dev] [PATCH v2 2/4] ipsec: fix transport mode for ipv6 with extensions

2019-06-24 Thread Ananyev, Konstantin
> > Reconstructing IPv6 header after encryption or decryption requires > updating 'next header' value in the preceding protocol header, which > is determined by parsing IPv6 header and iteratively looking for > next IPv6 header extension. > > It is required that 'l3_len' in the mbuf metadata co

Re: [dpdk-dev] [PATCH v2 3/4] examples/ipsec-secgw: add support for ipv6 options

2019-06-24 Thread Ananyev, Konstantin
> > Using transport with IPv6 and header extensions requires calculating > total header length including extensions up to ESP header which is > achieved with iteratively parsing extensions when preparing traffic > for processing. Calculated l3_len is later used to determine SPI > field offset fo

Re: [dpdk-dev] [PATCH v2 1/4] net: new ipv6 header extension parsing function

2019-06-24 Thread Ananyev, Konstantin
> -Original Message- > From: Smoczynski, MarcinX > Sent: Monday, June 24, 2019 2:40 PM > To: Kovacevic, Marko ; or...@mellanox.com; > Richardson, Bruce ; De Lara > Guarch, Pablo ; Nicolau, Radu > ; akhil.go...@nxp.com; Kantecki, Tomasz > ; Ananyev, Konstantin > ; Iremonger, Bernard >

Re: [dpdk-dev] The testpmd failed to parse RSS queue rules on fedora30

2019-06-24 Thread Wang, Haiyue
More information is provided: Fedora30 GCC: gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --

[dpdk-dev] The testpmd failed to parse RSS queue rules on fedora30

2019-06-24 Thread Wang, Haiyue
Hi, After upgrading the Fedora29 to 30, then met the flow cmdline parse issue, like testpmd> flow create 0 ingress pattern end actions rss queues 1 4 7 end / end Bad arguments After debug by adding bellow checking code: diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c inde

Re: [dpdk-dev] [PATCH v2 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-06-24 Thread Honnappa Nagarahalli
> > 24/06/2019 18:12, Honnappa Nagarahalli: > > > > > + } else { > > > > > + rte_panic("Invalid memory order\n"); > > > > > > > > > > > > rte_panic should be removed from library. In this case, I think, > > > > invalid mo can go for strongest barrier. > > > > It is added here to ca

Re: [dpdk-dev] [PATCH v2] lib/telemetry: add support to fetch global metrics

2019-06-24 Thread Chautru, Nicolas
Hi Reshma, I am still seeing build issue when rebasing to this : ie. checking uint32_t is negative in rte_telemetry.c:558 Thanks Nic -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon Sent: Monday, June 24, 2019 7:54 AM To: Pattan, Reshma Cc: dev@dpd

[dpdk-dev] [PATCH v6 7/9] kni: fix style issues

2019-06-24 Thread Stephen Hemminger
rte_kni does not follow standard style rules. Noticed some extra \ line continuation etc. Signed-off-by: Stephen Hemminger --- kernel/linux/kni/kni_net.c | 7 --- lib/librte_kni/rte_kni.c | 38 +++--- 2 files changed, 23 insertions(+), 22 deletions(-) diff

Re: [dpdk-dev] [PATCH v3] examples/l3fwd-power: add telemetry mode support

2019-06-24 Thread Pattan, Reshma
> -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Monday, June 24, 2019 4:17 PM > > Shared library linking is failing: > undefined reference to symbol 'round@@GLIBC_2.2.5' > > v4 sent.

[dpdk-dev] [PATCH v6 6/9] kni: return -EFAULT if copy_from_user fails

2019-06-24 Thread Stephen Hemminger
The correct thing to return if user gives a bad data is to return -EFAULT. Logging is also discouraged because it could be used as a DoS attack. Signed-off-by: Stephen Hemminger --- kernel/linux/kni/kni_misc.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/

[dpdk-dev] [PATCH v6 8/9] kni: add minimal ethtool

2019-06-24 Thread Stephen Hemminger
Some applications use ethtool so add the minimum ethtool ops. Signed-off-by: Stephen Hemminger --- kernel/linux/kni/kni_dev.h | 2 ++ kernel/linux/kni/kni_misc.c | 1 + kernel/linux/kni/kni_net.c | 14 ++ 3 files changed, 17 insertions(+) diff --git a/kernel/linux/kni/kni_dev.h

[dpdk-dev] [PATCH v6 9/9] doc: update KNI documentation

2019-06-24 Thread Stephen Hemminger
Update KNI documentation to reflect current ethtool support. Replace references to out dated tools (ifconfig) with modern iproute2. Tshark is a better replacement for tcpdump. Signed-off-by: Stephen Hemminger --- .../prog_guide/kernel_nic_interface.rst | 9 +++ .../sample_app_ug/ker

[dpdk-dev] [PATCH v6 4/9] kni: drop unused fields

2019-06-24 Thread Stephen Hemminger
Several fields were either totally unused or set and never used. Signed-off-by: Stephen Hemminger --- kernel/linux/kni/kni_dev.h | 5 - kernel/linux/kni/kni_misc.c | 1 - 2 files changed, 6 deletions(-) diff --git a/kernel/linux/kni/kni_dev.h b/kernel/linux/kni/kni_dev.h index 21e4b0d92368

[dpdk-dev] [PATCH v6 5/9] kni: use proper type for kni fifo's

2019-06-24 Thread Stephen Hemminger
Using void * instead of proper type is unsafe practice. Signed-off-by: Stephen Hemminger --- kernel/linux/kni/kni_dev.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/linux/kni/kni_dev.h b/kernel/linux/kni/kni_dev.h index f3e6c3ca4efa..ceba5f73c1d9 100644

[dpdk-dev] [PATCH v6 1/9] kni: don't need stubs for rx_mode or ioctl

2019-06-24 Thread Stephen Hemminger
The netdev subsystem already handles case where network sevice does not support ioctl. If device has no rx_mode hook it is not called. Signed-off-by: Stephen Hemminger --- kernel/linux/kni/kni_net.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/kernel/linux/kni/kni_net

[dpdk-dev] [PATCH v6 3/9] kni: don't keep stats in kni_net

2019-06-24 Thread Stephen Hemminger
Since kernel 2.6.28 the network subsystem has provided dev->stats for devices to use statistics handling and is the default if no ndo_get_stats is provided. This allow allows for 64 bit (rather than just 32 bit) statistics with KNI. Signed-off-by: Stephen Hemminger --- kernel/linux/kni/kni_dev.

[dpdk-dev] [PATCH v6 2/9] kni: use netdev_alloc_skb

2019-06-24 Thread Stephen Hemminger
netdev_alloc_skb is optimized to any alignment or setup of skb->dev that is required. The kernel has chosen to not pad packets on x86 (for many years), because it is faster. Signed-off-by: Stephen Hemminger --- kernel/linux/kni/kni_net.c | 17 +++-- 1 file changed, 3 insertions(+), 1

[dpdk-dev] [PATCH v6 0/9] kni: fixes and cleanups

2019-06-24 Thread Stephen Hemminger
While testing KNI with netvsc, saw lots of places more code could be safely removed from KNI kernel driver. v6 - more updates to documentation v5 - add minimal ethtool, fix checkpath author complaints v4 - add more style fixes v3 - rebase to current master, add style fix patch v2 - get rid of unne

Re: [dpdk-dev] [Suspected-Phishing][PATCH] net/vhost: add an API for get queue status

2019-06-24 Thread Maxime Coquelin
On 6/24/19 1:08 PM, Noa Ezra wrote: Hi, What do you say about this patch? I acknowledge we miss a way to get the queue state, but I don't like introducing new APIs for PMD drivers. I looked at ethdev ops on Friday, but it seems no one currently available can do the job. I would suggest to

[dpdk-dev] [PATCH v4] examples/l3fwd-power: add telemetry mode support

2019-06-24 Thread Reshma Pattan
Add new telemetry mode support for l3fwd-power. This is a standalone mode, in this mode l3fwd-power does simple l3fwding along with calculating empty polls, full polls, and busy percentage for each forwarding core. The aggregation of these values of all cores is reported as application level teleme

Re: [dpdk-dev] RTE prefix on more libs

2019-06-24 Thread Ferruh Yigit
On 6/21/2019 12:29 PM, Morten Brørup wrote: > Hi Olivier and Ferruh, > >   > > I haven’t followed the discussions about adding the RTE prefix in details. Was > there a conclusion about adding the RTE prefix in public identifiers of other > (core) libraries, e.g. the IP Fragmentation and GRO/GSO l

Re: [dpdk-dev] [PATCH] failsafe: skip devargs if not present in secondary

2019-06-24 Thread Gaëtan Rivet
On Mon, Jun 24, 2019 at 08:23:38AM -0700, Stephen Hemminger wrote: > On Mon, 24 Jun 2019 10:15:58 +0200 > Gaëtan Rivet wrote: > > > Hello Stephen, > > > > On Fri, Jun 21, 2019 at 03:08:24PM -0700, Stephen Hemminger wrote: > > > When secondary process is run was noticing that the log always > > >

Re: [dpdk-dev] [PATCH v2 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-06-24 Thread Thomas Monjalon
24/06/2019 18:12, Honnappa Nagarahalli: > > > > + } else { > > > > + rte_panic("Invalid memory order\n"); > > > > > > > > > rte_panic should be removed from library. In this case, I think, > > > invalid mo can go for strongest barrier. > > It is added here to capture programming

Re: [dpdk-dev] [PATCH v2 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-06-24 Thread Honnappa Nagarahalli
> > > > > > Add 128-bit atomic compare exchange on aarch64. > > > > > > Signed-off-by: Phil Yang > > > Reviewed-by: Honnappa Nagarahalli > > > Tested-by: Honnappa Nagarahalli > > > --- > > > This patch depends on 'eal/stack: fix 'pointer-sign' warning' > > > http://patchwork.dpdk.org/patch/548

Re: [dpdk-dev] make doc fails

2019-06-24 Thread Morten Brørup
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen Hemminger > Sent: Monday, June 24, 2019 5:28 PM > > On Mon, 24 Jun 2019 16:04:15 +0100 > "Burakov, Anatoly" wrote: > > > On 24-Jun-19 3:53 PM, Ferruh Yigit wrote: > > > On 6/23/2019 11:46 PM, Thomas Monja

[dpdk-dev] [PATCH v2] mbuf: outer offsets are undefined for non-tunnel packets

2019-06-24 Thread Ivan Malov
The default policy for offload-specific fields is that they are undefined unless the corresponding offloads are requested in mbuf ol_flags. This is also the case for outer L2 and L3 length fields which must not be assumed to contain zeros for non-tunnel packets. The patch clarifies this behaviour i

[dpdk-dev] [PATCH v3] aesni_mb: fix out-of-bounds access

2019-06-24 Thread Fan Zhang
This patch fixes the out-of-bounds coverity issue by adding missed algorithms to the array. Coverity issue: 337683 Fixes: c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros") Signed-off-by: Fan Zhang --- v3: - fixed a compile issue v2: - added missed size data. drivers/crypt

Re: [dpdk-dev] [PATCH v2 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-06-24 Thread Phil Yang (Arm Technology China)
Hi Jerin, Thank you for your comments. I will modify these in the next version. Thanks, Phil > -Original Message- > From: Jerin Jacob Kollanukkaran > Sent: Monday, June 24, 2019 2:41 PM > To: Phil Yang (Arm Technology China) ; dev@dpdk.org > Cc: tho...@monjalon.net; hemant.agra...@nxp.c

[dpdk-dev] [PATCH 0/4] ethdev: add GRE key field to flow API

2019-06-24 Thread Xiaoyu Min
This series patchs are based on RFC [1], which enable the matching on GRE's key field. And enabled MLX5 device supports on this. [1] https://patches.dpdk.org/patch/53432/ Xiaoyu Min (4): ethdev: add GRE key field to flow API net/mlx5: support match GRE protocol on DR engine net/mlx5: match

[dpdk-dev] [PATCH 3/4] net/mlx5: match GRE's key and present bits

2019-06-24 Thread Xiaoyu Min
support matching on the present bits (C,K,S) as well as the optional key field. If the rte_flow_item_gre_key is specified in pattern, it will set K present match automatically. Signed-off-by: Xiaoyu Min --- drivers/net/mlx5/mlx5_flow.c| 49 +++- drivers/net/mlx5/mlx5_flow.h

[dpdk-dev] [PATCH 1/4] ethdev: add GRE key field to flow API

2019-06-24 Thread Xiaoyu Min
Add new rte_flow_item_gre_key in order to match the optional key field. Signed-off-by: Xiaoyu Min --- doc/guides/prog_guide/rte_flow.rst | 9 + lib/librte_ethdev/rte_flow.c | 1 + lib/librte_ethdev/rte_flow.h | 27 +++ 3 files changed, 37 insertions(

[dpdk-dev] [PATCH 4/4] app/testpmd: match GRE's key and present bits

2019-06-24 Thread Xiaoyu Min
support matching on GRE key and present bits (C,K,S) example testpmd command could be: testpmd>flow create 0 ingress group 1 pattern eth / ipv4 / gre crksv is 0x2000 crksv mask 0xb000 / gre_key key is 0x12345678 / end actions rss queues 1 0 end / mark id 196 / end

[dpdk-dev] [PATCH 2/4] net/mlx5: support match GRE protocol on DR engine

2019-06-24 Thread Xiaoyu Min
DR engine support matching on GRE protocol field without MPLS supports. So bypassing the MPLS check when DR is enabled. Signed-off-by: Xiaoyu Min --- drivers/net/mlx5/mlx5_flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c ind

[dpdk-dev] i40e driver with VFs and their changing MAC

2019-06-24 Thread Eelco Chaudron
Hi, I’m running into an issue where I have a VF used by OVS-DPDK and from the kernel side change the MAC. I used the following command to change the mac: ip link set p5p2 vf 0 mac 52:54:00:92:d3:30 In the kernel log I see the following: [ 3420.075736] i40e :05:00.1: Bring down and up th

[dpdk-dev] [PATCH 1/2] app/testpmd: support raw encap/decap actions

2019-06-24 Thread Xiaoyu Min
This patch intend to support action_raw_encap/decap [1] in a generic and convenient way. Two new commands - set raw_encap, set raw_decap are introduced just like the other commands for encap/decap, i.e. set vxlan. These two commands have corresponding global buffers which can be used by PMD as th

[dpdk-dev] [PATCH 2/2] app/testpmd: support MPLS's TC and S bits

2019-06-24 Thread Xiaoyu Min
Open the MPLS's TC and S bits of rte_flow_item_mpls in command line. Signed-off-by: Xiaoyu Min --- app/test-pmd/cmdline_flow.c | 20 1 file changed, 20 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index e7da0fad2a..f3c0b7902f 100644 -

[dpdk-dev] [PATCH 0/2] app/testpmd: support raw encap/decap actions

2019-06-24 Thread Xiaoyu Min
This series is based on RFC [1], which enable the testpmd to support the raw_encap/raw_decap actions in a generic and convenient way. Some rte_flow_item's fields are also opened in testpmd cmdline i.e. MPLS's TC & S in order to make sure the encapsulated tunnel header has the correct data. [1] ht

Re: [dpdk-dev] [PATCH v2 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-06-24 Thread Phil Yang (Arm Technology China)
> -Original Message- > From: Eads, Gage > Sent: Monday, June 24, 2019 10:46 PM > To: Phil Yang (Arm Technology China) ; dev@dpdk.org > Cc: tho...@monjalon.net; jer...@marvell.com; hemant.agra...@nxp.com; > Honnappa Nagarahalli ; Gavin Hu (Arm > Technology China) ; nd > Subject: RE: [PATCH

Re: [dpdk-dev] [PATCH v2 2/3] test/atomic: add 128b compare and swap test

2019-06-24 Thread Phil Yang (Arm Technology China)
> -Original Message- > From: Eads, Gage > Sent: Monday, June 24, 2019 11:10 PM > To: Phil Yang (Arm Technology China) ; dev@dpdk.org > Cc: tho...@monjalon.net; jer...@marvell.com; hemant.agra...@nxp.com; > Honnappa Nagarahalli ; Gavin Hu (Arm > Technology China) ; nd > Subject: RE: [PATCH

Re: [dpdk-dev] make doc fails

2019-06-24 Thread Stephen Hemminger
On Mon, 24 Jun 2019 16:04:15 +0100 "Burakov, Anatoly" wrote: > On 24-Jun-19 3:53 PM, Ferruh Yigit wrote: > > On 6/23/2019 11:46 PM, Thomas Monjalon wrote: > >> 21/06/2019 21:56, Stephen Hemminger: > >>> Just tried make doc on current DPDK tree and it fails: > >>> > >>> /home/shemminger/git/dp

Re: [dpdk-dev] [PATCH] failsafe: skip devargs if not present in secondary

2019-06-24 Thread Stephen Hemminger
On Mon, 24 Jun 2019 10:15:58 +0200 Gaëtan Rivet wrote: > Hello Stephen, > > On Fri, Jun 21, 2019 at 03:08:24PM -0700, Stephen Hemminger wrote: > > When secondary process is run was noticing that the log always > > contained complaints about unable to parse devargs. > > > > It turns out that an

Re: [dpdk-dev] [PATCH v2 3/3] eal/stack: enable lock-free stack for aarch64

2019-06-24 Thread Phil Yang (Arm Technology China)
> -Original Message- > From: Eads, Gage > Sent: Monday, June 24, 2019 11:15 PM > To: Phil Yang (Arm Technology China) ; dev@dpdk.org > Cc: tho...@monjalon.net; jer...@marvell.com; hemant.agra...@nxp.com; > Honnappa Nagarahalli ; Gavin Hu (Arm > Technology China) ; nd > Subject: RE: [PATCH

Re: [dpdk-dev] [PATCH v3] examples/l3fwd-power: add telemetry mode support

2019-06-24 Thread Thomas Monjalon
13/06/2019 15:44, Reshma Pattan: > Add new telemetry mode support for l3fwd-power. > This is a standalone mode, in this mode l3fwd-power > does simple l3fwding along with calculating > empty polls, full polls, and busy percentage for > each forwarding core. The aggregation of these > values of all

Re: [dpdk-dev] [PATCH v2 3/3] eal/stack: enable lock-free stack for aarch64

2019-06-24 Thread Eads, Gage
> Subject: [PATCH v2 3/3] eal/stack: enable lock-free stack for aarch64 > > Enable both c11 atomic and non c11 atomic lock-free stack for aarch64. > > Signed-off-by: Phil Yang > Reviewed-by: Honnappa Nagarahalli > Tested-by: Honnappa Nagarahalli > --- > doc/guides/rel_notes/release_19_08.rst

Re: [dpdk-dev] [PATCH v2 2/3] test/atomic: add 128b compare and swap test

2019-06-24 Thread Eads, Gage
Hi Phil, Looks good overall, just a few documentation issues. > + * > + * - Test "128b compare and swap" (aarch64 and x86_64 only) > + * > + * - Initialize 128-bit atomic variables to zero. > + * > + * - Invoke ``test_atomici128_cmp_exchange()`` on each lcore. Before > doing > + * anyth

Re: [dpdk-dev] make doc fails

2019-06-24 Thread Burakov, Anatoly
On 24-Jun-19 3:53 PM, Ferruh Yigit wrote: On 6/23/2019 11:46 PM, Thomas Monjalon wrote: 21/06/2019 21:56, Stephen Hemminger: Just tried make doc on current DPDK tree and it fails: /home/shemminger/git/dpdk/doc/guides/faq/faq.rst:7: WARNING: undefined label: linux_gsg (if the link has no capti

Re: [dpdk-dev] [PATCH v2] lib/telemetry: add support to fetch global metrics

2019-06-24 Thread Thomas Monjalon
18/06/2019 15:49, Reshma Pattan: > telemetry has support for fetching port based stats > from metrics library. > > Metrics library also has global stats which are > not fetched by telemetry, so extend telemetry to > fetch the global metrics. > > Signed-off-by: Reshma Pattan > Acked-by: Kevin Laa

Re: [dpdk-dev] make doc fails

2019-06-24 Thread Ferruh Yigit
On 6/23/2019 11:46 PM, Thomas Monjalon wrote: > 21/06/2019 21:56, Stephen Hemminger: >> Just tried make doc on current DPDK tree and it fails: >> >> /home/shemminger/git/dpdk/doc/guides/faq/faq.rst:7: WARNING: undefined >> label: linux_gsg (if the link has no caption the label must precede a >> s

Re: [dpdk-dev] [PATCH v2 1/3] eal/arm64: add 128-bit atomic compare exchange

2019-06-24 Thread Eads, Gage
Hi Phil, > diff --git a/lib/librte_eal/common/include/generic/rte_atomic.h > b/lib/librte_eal/common/include/generic/rte_atomic.h > index 9958543..7dd1aa4 100644 > --- a/lib/librte_eal/common/include/generic/rte_atomic.h > +++ b/lib/librte_eal/common/include/generic/rte_atomic.h > @@ -1081,6 +1081

[dpdk-dev] [PATCH] net/af_packet: set default blocksize to pagesize

2019-06-24 Thread kkanas
From: Krzysztof Kanas Kernel validates block size to be aligned to page size. Code works on platforms with page size 4k, but on others e.g. Arm64 fails with default parameters. Signed-off-by: Krzysztof Kanas --- drivers/net/af_packet/rte_eth_af_packet.c | 4 ++-- 1 file changed, 2 insertions(+

[dpdk-dev] [PATCH v2] net: adjust layer 2 length on soft VLAN insertion

2019-06-24 Thread Andrew Rybchenko
From: Dilshod Urazov Layer 2 length must be updated after the prepend to mbuf to keep the length right to be used by other Tx offloads. If the packet has tunnel encapsulation, outer_l2_len should be updated. Otherwise l2_len should be updated. Fixes: c974021a5949 ("ether: add soft vlan encap/de

[dpdk-dev] [PATCH v2 2/4] ipsec: fix transport mode for ipv6 with extensions

2019-06-24 Thread Marcin Smoczynski
Reconstructing IPv6 header after encryption or decryption requires updating 'next header' value in the preceding protocol header, which is determined by parsing IPv6 header and iteratively looking for next IPv6 header extension. It is required that 'l3_len' in the mbuf metadata contains a total le

[dpdk-dev] [PATCH v2 3/4] examples/ipsec-secgw: add support for ipv6 options

2019-06-24 Thread Marcin Smoczynski
Using transport with IPv6 and header extensions requires calculating total header length including extensions up to ESP header which is achieved with iteratively parsing extensions when preparing traffic for processing. Calculated l3_len is later used to determine SPI field offset for an inbound tr

[dpdk-dev] [PATCH v2 4/4] examples/ipsec-secgw: add scapy based unittests

2019-06-24 Thread Marcin Smoczynski
Add new unittest-like mechanism which uses scapy to craft custom packets and a set of assertions to check how ipsec-secgw example application is processing them. Python3 with scapy module is required by pkttest.sh to run test scripts. A new mechanism is used to test IPv6 transport mode traffic wit

[dpdk-dev] [PATCH v2 0/4] IPv6 with options support for IPsec transport

2019-06-24 Thread Marcin Smoczynski
Add support for IPv6 with header extensions (IPv6 options) and IPsec transport mode: 1. Add IPv6 header extension parsing method in librte_net 2. Fix IPv6 header with extension parsing in both librte_ipsec and ipsec sample application using abovementioned function 3. Add new testing mechanism fo

[dpdk-dev] [PATCH v2 1/4] net: new ipv6 header extension parsing function

2019-06-24 Thread Marcin Smoczynski
Introduce new function for IPv6 header extension parsing able to determine extension length and next protocol number. This function is helpful when implementing IPv6 header traversing. Signed-off-by: Marcin Smoczynski --- lib/librte_net/rte_ip.h | 49 + 1

[dpdk-dev] [PATCH v4] cryptodev: make xform key pointer constant

2019-06-24 Thread Fan Zhang
This patch changes the key pointer data types in cipher, auth, and aead xforms from "uint8_t *" to "const uint8_t *" for a more intuitive and safe sessionn creation. Signed-off-by: Fan Zhang Acked-by: Arek Kusztal Acked-by: Akhil Goyal --- v4: - Removed deprecation notice and updated release no

Re: [dpdk-dev] [PATCH] maintainers: update dpdk-next-net-intel

2019-06-24 Thread Thomas Monjalon
20/06/2019 16:35, Ferruh Yigit: > On 6/19/2019 9:24 AM, Qi Zhang wrote: > > Xiaolong Ye will replace Beilei Xing as co-maintainer of > > dpdk-next-net-intel. > > > > Signed-off-by: Qi Zhang > > Acked-by: Ferruh Yigit Applied, thanks Xiaolong may require some training from Qi and Ferruh. Welco

Re: [dpdk-dev] [PATCH] mbuf: outer offsets must be zero for non-tunnel packets

2019-06-24 Thread Andrew Rybchenko
On 6/24/19 3:59 PM, Ananyev, Konstantin wrote: Hi Andrew, Hi Konstantin, On 6/21/19 2:10 PM, Ananyev, Konstantin wrote: Hi Ivan, Make sure that outer L2 and L3 header length fields are equal to zero for non-tunnel packets in order to ensure consistent and predictable behaviour in network driv

Re: [dpdk-dev] [PATCH 1/2] net/bnx2x: fix warnings from invalid assert

2019-06-24 Thread Thomas Monjalon
24/06/2019 13:31, Ferruh Yigit: > On 6/24/2019 10:25 AM, Morten Brørup wrote: > >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen Hemminger > >> Sent: Wednesday, June 19, 2019 8:22 PM > >> > >> This driver had a bogus assert which could never happen. > >> This triggers "expression is

Re: [dpdk-dev] [RFC] ethdev: add min/max MTU to device info

2019-06-24 Thread Nithin Kumar Dabilpuram
Hi All, Since Ian's change didn't include MTU interpretation issue, we want to see if we can send out a patch for this discussion to conclude as we have a similar problem. Currently two ways are as below. #1 Konstantin's solution of adding new api rte_ethdev_mtu_to_frame_size(devid, mtu), that

Re: [dpdk-dev] pktgen-dpdk send too big packet, and stop sending packets after few seconds

2019-06-24 Thread Wiles, Keith
> On Jun 24, 2019, at 4:22 AM, Xia Rui wrote: > > Thank you for your reply. I am trying to use the latest version of > pktgen-dpdk, ovs, and dpdk. But I meet some problem when setting up the > platform. > > The version of my platform: > 1. OVS: 2.11.1 > 2. DPDK: 18.11 > 3. pktgen-dpdk: 3.6.6

Re: [dpdk-dev] [PATCH 00/29] net/sfc/base: update base driver

2019-06-24 Thread Thomas Monjalon
24/06/2019 13:17, Ferruh Yigit: > On 6/24/2019 8:53 AM, Andrew Rybchenko wrote: > > Hi Thomas, > > > > On 6/24/19 1:37 AM, Thomas Monjalon wrote: > >> 18/06/2019 09:52, Ferruh Yigit: > >>> On 6/10/2019 8:38 AM, Andrew Rybchenko wrote: > checkpatches.sh generates warnings/errors because of a b

Re: [dpdk-dev] [PATCH] mbuf: outer offsets must be zero for non-tunnel packets

2019-06-24 Thread Ananyev, Konstantin
Hi Andrew, > Hi Konstantin, > > On 6/21/19 2:10 PM, Ananyev, Konstantin wrote: > Hi Ivan, > > Make sure that outer L2 and L3 header length fields are > equal to zero for non-tunnel packets in order to ensure > consistent and predictable behaviour in network drivers. > Explain this expectation in

Re: [dpdk-dev] [PATCH] examples/vhost_crypto: fix unchecked return value

2019-06-24 Thread Zhang, Roy Fan
Thanks Maxime. > -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Thursday, June 20, 2019 10:44 AM > To: Zhang, Roy Fan ; dev@dpdk.org > Cc: sta...@dpdk.org > Subject: Re: [PATCH] examples/vhost_crypto: fix unchecked return value > > > > On 5/15/19

Re: [dpdk-dev] [PATCH] net: fix the way how L4 checksum choice is tested

2019-06-24 Thread Andrew Rybchenko
On 6/24/19 3:01 PM, Ananyev, Konstantin wrote: -Original Message- From: Ananyev, Konstantin Sent: Monday, June 24, 2019 12:52 PM To: 'Ivan Malov' ; Olivier Matz Cc: dev@dpdk.org; Kulasek, TomaszX ; sta...@dpdk.org Subject: RE: [dpdk-dev] [PATCH] net: fix the way how L4 checksum choice

Re: [dpdk-dev] [PATCH] net: fix the way how L4 checksum choice is tested

2019-06-24 Thread Ananyev, Konstantin
> -Original Message- > From: Ananyev, Konstantin > Sent: Monday, June 24, 2019 12:52 PM > To: 'Ivan Malov' ; Olivier Matz > > Cc: dev@dpdk.org; Kulasek, TomaszX ; > sta...@dpdk.org > Subject: RE: [dpdk-dev] [PATCH] net: fix the way how L4 checksum choice is > tested > > > > The API

Re: [dpdk-dev] [PATCH] net: fix the way how L4 checksum choice is tested

2019-06-24 Thread Ananyev, Konstantin
> The API to prepare checksum offloads mistreats L4 > checksum type enum values as self-contained flags. > > Turning these flag checks into enum checks causes > warnings by GCC about possibly uninitialised IPv4 > header pointer. The issue was found to show up in > the case of GCC versions 4.8.5

Re: [dpdk-dev] [PATCH 1/3] net: new ipv6 header extension parsing function

2019-06-24 Thread Smoczynski, MarcinX
Hi Akhil, I've double checked and there is no problem with linking application against shared libraries, because inline functions are being inlined during compilation and before linking is done. To be more specific: there is not such symbol as rte_ipv6_get_next_ext in ipsec-secgw.o (which uses t

Re: [dpdk-dev] [PATCH] net: fix encapsulation markers for inner L3 offset

2019-06-24 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ivan Malov > Sent: Friday, May 24, 2019 3:57 PM > To: Olivier Matz > Cc: dev@dpdk.org; Kulasek, TomaszX ; > sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] net: fix encapsulation markers for inner L3 offset > >

Re: [dpdk-dev] [PATCH 1/2] net/bnx2x: fix warnings from invalid assert

2019-06-24 Thread Ferruh Yigit
On 6/24/2019 10:25 AM, Morten Brørup wrote: >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen Hemminger >> Sent: Wednesday, June 19, 2019 8:22 PM >> >> This driver had a bogus assert which could never happen. >> This triggers "expression is always false warnings" with some >> compiler

Re: [dpdk-dev] [PATCH 00/29] net/sfc/base: update base driver

2019-06-24 Thread Ferruh Yigit
On 6/24/2019 8:53 AM, Andrew Rybchenko wrote: > Hi Thomas, > > On 6/24/19 1:37 AM, Thomas Monjalon wrote: >> 18/06/2019 09:52, Ferruh Yigit: >>> On 6/10/2019 8:38 AM, Andrew Rybchenko wrote: checkpatches.sh generates warnings/errors because of a bit different coding style in base driver.

Re: [dpdk-dev] [Suspected-Phishing][PATCH] net/vhost: add an API for get queue status

2019-06-24 Thread Noa Ezra
Hi, What do you say about this patch? Thanks, Noa. > -Original Message- > From: Noa Ezra [mailto:n...@mellanox.com] > Sent: Wednesday, June 19, 2019 9:15 AM > To: maxime.coque...@redhat.com > Cc: Matan Azrad ; dev@dpdk.org; Noa Ezra > > Subject: [Suspected-Phishing][PATCH] net/vhost: add

[dpdk-dev] Recall: [PATCH 2/2] net/qede: fix warnings from invalid assert

2019-06-24 Thread Morten Brørup
Morten Brørup would like to recall the message, "[dpdk-dev] [PATCH 2/2] net/qede: fix warnings from invalid assert".

Re: [dpdk-dev] [PATCH 1/2] net/bnx2x: fix warnings from invalid assert

2019-06-24 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen Hemminger > Sent: Wednesday, June 19, 2019 8:22 PM > > This driver had a bogus assert which could never happen. > This triggers "expression is always false warnings" with some > compilers which causes build failure. > Just remove it. >

  1   2   >