[dpdk-dev] [PATCH v6] net/ice: support IEEE 1588 PTP

2021-09-27 Thread Simei Su
Add ice support for new ethdev APIs to enable/disable and read/write/adjust IEEE1588 PTP timestamps. Currently, only scalar path supports 1588 PTP, vector path doesn't. The example command for running ptpclient is as below: ./build/examples/dpdk-ptpclient -c 1 -n 3 -- -T 0 -p 0x1 Signed-off-by: S

[dpdk-dev] [PATCH v5 2/2] examples/vhost: use API to check inflight packets

2021-09-27 Thread Xuan Ding
In async data path, call rte_vhost_async_get_inflight_thread_unsafe() API to directly return the number of inflight packets instead of maintaining a local variable. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 25 +++-- examples/vhost/main.h | 1 - 2 files changed, 1

[dpdk-dev] [PATCH v5 1/2] vhost: add unsafe API to check inflight packets

2021-09-27 Thread Xuan Ding
In async data path, when vring state changes or device is destroyed, it is necessary to know the number of inflight packets in DMA engine. This patch provides a thread unsafe API to return the number of inflight packets for a vhost queue without using any lock. Signed-off-by: Xuan Ding --- doc/g

[dpdk-dev] [PATCH v5 0/2] add unsafe API to get inflight packets

2021-09-27 Thread Xuan Ding
This patchset introduces an unsafe API to get the number of inflight packets in DMA engine in some situations. Like vring state changes or device is destroyed. Compared with rte_vhost_async_get_inflight(), this is a lock free version. v5: * Rebased to the lastest branch. v4: * Added use case for

Re: [dpdk-dev] [PATCH v2 06/15] app/testpmd: add common fwd wrapper function

2021-09-27 Thread Xueming(Steven) Li
On Wed, 2021-09-01 at 14:44 +, Xueming(Steven) Li wrote: > > > -Original Message- > > From: dev On Behalf Of Xueming(Steven) Li > > Sent: Sunday, August 29, 2021 3:08 PM > > To: Jerin Jacob > > Cc: Jack Min ; dpdk-dev ; Xiaoyun Li > > > > Subject: Re: [dpdk-dev] [PATCH v2 06/15] ap

Re: [dpdk-dev] [PATCH v2 0/2] sched: adds function to get 64 bits greatest common divisor

2021-09-27 Thread Xueming(Steven) Li
On Mon, 2021-09-27 at 17:26 +0200, Thomas Monjalon wrote: > > Xueming Li (2): > >   sched: adds function to get 64 bits greatest common divisor > >   vdpa/mlx5: fix large VM memory region registration > > Series applied, thanks. > > Note: commit logs are arranged, especially for adding verbs > an

Re: [dpdk-dev] [PATCH v2] net/ice: retry getting VF VSI map after it fails

2021-09-27 Thread Zhang, Qi Z
> -Original Message- > From: Wang, Haiyue > Sent: Friday, September 24, 2021 4:24 PM > To: Yu, DapengX ; Yang, Qiming > ; Zhang, Qi Z > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: RE: [PATCH v2] net/ice: retry getting VF VSI map after it fails > > > -Original Message- > > Fro

Re: [dpdk-dev] [PATCH v3] app/testpmd: add command to print representor info

2021-09-27 Thread Ajit Khaparde
On Wed, Sep 15, 2021 at 6:48 AM Andrew Rybchenko wrote: > > From: Viacheslav Galaktionov > > Make it simpler to debug configurations and code related to the representor > info API. > > Signed-off-by: Viacheslav Galaktionov > Signed-off-by: Andrew Rybchenko > Reviewed-by: Andy Moreton > Reviewe

[dpdk-dev] [PATCH v3] ifpga/base/meson: fix looking for librt

2021-09-27 Thread mohamad . noor . alim . hussin
From: Mohamad Noor Alim Hussin Finding with "librt" keyword would give the output with full path of librt such as /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/librt.so instead of -lrt in libdpdk.pc pkg-config file. Assume find_library() will prepend "lib", thus remove "lib" from "li

Re: [dpdk-dev] [PATCH v3 1/8] ethdev: introduce shared Rx queue

2021-09-27 Thread Ajit Khaparde
On Fri, Sep 17, 2021 at 1:02 AM Xueming Li wrote: > > In current DPDK framework, each RX queue is pre-loaded with mbufs for > incoming packets. When number of representors scale out in a switch > domain, the memory consumption became significant. Most important, > polling all ports leads to high c

[dpdk-dev] [PATCH] net/iavf: fix multi-process shared data

2021-09-27 Thread dapengx . yu
From: Dapeng Yu When the iavf_adapter instance is not initialized completedly in the primary process, the secondary process accesses its "rte_eth_dev" member, it causes secondary process crash. This patch replaces adapter->eth_dev with rte_eth_devices[port_id] in the data paths where rte_eth_dev

Re: [dpdk-dev] [PATCH v4] net/ice: enable Rx timestamp on Flex Descriptor

2021-09-27 Thread Zhang, Qi Z
> -Original Message- > From: dev On Behalf Of Zhang, Qi Z > Sent: Monday, September 27, 2021 3:02 PM > To: Su, Simei > Cc: dev@dpdk.org; Wang, Haiyue > Subject: Re: [dpdk-dev] [PATCH v4] net/ice: enable Rx timestamp on Flex > Descriptor > > > > > -Original Message- > > From

[dpdk-dev] [PATCH v2] net/i40e: fix Rx packet statistics

2021-09-27 Thread Alvin Zhang
Some packets are discarded by the NIC because they are larger than the MTU, these packets should be counted as "RX error" instead of "RX packet", for example: pkt1 = Ether()/IP()/Raw('x' * 1400) pkt2 = Ether()/IP()/Raw('x' * 1500) Forward statistics for port 0 -

Re: [dpdk-dev] [PATCH] net/ixgbe: fix RxQ/TxQ release

2021-09-27 Thread Wang, Haiyue
> -Original Message- > From: Wang, Haiyue > Sent: Tuesday, September 28, 2021 11:06 > To: 'Julien Meunier' ; dev@dpdk.org > Cc: sta...@dpdk.org; Richardson, Bruce > Subject: RE: [PATCH] net/ixgbe: fix RxQ/TxQ release > > > -Original Message- > > From: Julien Meunier > > Sent: Tue

Re: [dpdk-dev] [PATCH] net/ixgbe: fix RxQ/TxQ release

2021-09-27 Thread Wang, Haiyue
> -Original Message- > From: Julien Meunier > Sent: Tuesday, September 28, 2021 01:18 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Richardson, Bruce ; Wang, > Haiyue > > Subject: [PATCH] net/ixgbe: fix RxQ/TxQ release > > On the vector implementation, during the tear-down, the mbufs not >

[dpdk-dev] [PATCH] net/bnxt: fix tunnel port accounting

2021-09-27 Thread Ajit Khaparde
Fix the tunnel port counting logic. Currently we are incrementing the port count without checking the if bnxt_hwrm_tunnel_dst_port_alloc would return success or failure. Modify the logic to increment it only if the firmware returns success. Fixes: 10d074b2022d ("net/bnxt: support tunneling") Cc: s

[dpdk-dev] [PATCH v2 3/3] doc: enable protocol agnostic flow in FDIR

2021-09-27 Thread Junfeng Guo
Protocol agnostic flow offloading in Flow Director is enabled based on the Parser Library, using existing rte_flow raw API. Signed-off-by: Junfeng Guo --- doc/guides/rel_notes/release_21_11.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc

[dpdk-dev] [PATCH v2 2/3] net/ice: enable protocol agnostic flow offloading in FDIR

2021-09-27 Thread Junfeng Guo
Protocol agnostic flow offloading in Flow Director is enabled by this patch based on the Parser Library, using existing rte_flow raw API. Note that the raw flow requires: 1. byte string of raw target packet bits. 2. byte string of mask of target packet. Here is an example: FDIR matching ipv4 dst

[dpdk-dev] [PATCH v2 1/3] app/testpmd: update Max RAW pattern size to 512

2021-09-27 Thread Junfeng Guo
Update max size for pattern in struct rte_flow_item_raw to enable protocol agnostic flow offloading. Signed-off-by: Junfeng Guo --- app/test-pmd/cmdline_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 6cd9

[dpdk-dev] [PATCH v2 0/3] enable protocol agnostic flow offloading in FDIR

2021-09-27 Thread Junfeng Guo
Protocol agnostic flow offloading in Flow Director is enabled by this patch set based on the Parser Library using existing rte_flow raw API [PATCH v2 1/3] app/testpmd: update Max RAW pattern size to 512. [PATCH v2 2/3] net/ice: enable protocol agnostic flow offloading in FDIR. [PATCH v2 3/3] doc:

Re: [dpdk-dev] [PATCH] [v3] vdpa/ifc: increase readability in function

2021-09-27 Thread Wang, Xiao W
Hi, > -Original Message- > From: jilei chen > Sent: Monday, September 27, 2021 6:18 PM > To: Wang, Xiao W > Cc: dev@dpdk.org > Subject: [PATCH] [v3] vdpa/ifc: increase readability in function > > Use bool type for function's switch parameter, > this could avoid passing "1" or "0" which

Re: [dpdk-dev] [PATCH v5] net/ice: support IEEE 1588 PTP

2021-09-27 Thread Zhang, Qi Z
> -Original Message- > From: Su, Simei > Sent: Monday, September 27, 2021 4:28 PM > To: Zhang, Qi Z > Cc: dev@dpdk.org; Wang, Haiyue ; Su, Simei > > Subject: [PATCH v5] net/ice: support IEEE 1588 PTP > > Add ice support for new ethdev APIs to enable/disable and read/write/adjust > IE

Re: [dpdk-dev] [PATCH] net/i40e: fix Rx packet statistics

2021-09-27 Thread Zhang, AlvinX
> -Original Message- > From: Kevin Traynor > Sent: Tuesday, September 28, 2021 12:00 AM > To: Zhang, AlvinX ; Xing, Beilei > ; Guo, Junfeng > Cc: dev@dpdk.org; sta...@dpdk.org; Zhang, Qi Z ; > Yigit, Ferruh > Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix Rx packet statistics > > On 26/0

[dpdk-dev] [PATCH v2] net/vhost: merge vhost stats loop in vhost Tx/Rx

2021-09-27 Thread Gaoxiang Liu
To improve performance in vhost Tx/Rx, merge vhost stats loop. eth_vhost_tx has 2 loop of send num iteraion. It can be merge into one. eth_vhost_rx has the same issue as Tx. Fixes: 4d6cf2ac93dc ("net/vhost: add extended statistics") Signed-off-by: Gaoxiang Liu --- v2: * Fix coding style issues

Re: [dpdk-dev] [PATCH v2 1/2] examples/ethtool: fix Rx/Tx queue setup with rte socket id

2021-09-27 Thread Min Hu (Connor)
Hi, Thomas, any comments? 在 2021/5/6 11:46, Min Hu (Connor) 写道: From: Chengwen Feng In DPDK, 'rte_socket_id' means the running socket while 'rte_eth_dev_socket_id' is the device socket. For better performance, memory which queue setup used and device should be in the same socket. This

Re: [dpdk-dev] [PATCH v2 2/2] examples/ethtool: add closing port operation

2021-09-27 Thread Min Hu (Connor)
Hi, Ferruh, any comments? 在 2021/5/6 11:46, Min Hu (Connor) 写道: From: Huisong Li Currently, ethtool directly ends the process after 'quit' cmd. In this case, software resources are not released and hardware resources of the device are not uninstalled. This patch adds closing port oper

Re: [dpdk-dev] [PATCH] examples/ethtool: fix pause configuration

2021-09-27 Thread Min Hu (Connor)
Hi, Ferruh, any comments about this patch? 在 2021/7/17 10:15, Min Hu (Connor) 写道: Hi, all, any comments? 在 2021/6/28 10:17, Min Hu (Connor) 写道: Hi, all,  any comments? 在 2021/4/28 16:42, Min Hu (Connor) 写道: From: Huisong Li Currently, the pause command in ethtool to enable

Re: [dpdk-dev] [PATCH v3 0/3] Support iavf PMD on Windows

2021-09-27 Thread Shukla, Shivanshu
On 9/9/2021 4:23 PM, Kadam, Pallavi wrote: This patch-set enables building the iavf PMD on Windows. Currently, it uses alarm functions so, depends on following series. Depends-on: series-18447 ("net/iavf: enable interrupt polling") v3 changes: - Fix doc build warning v2 changes:

[dpdk-dev] DPDK shout-out at SDC 2021

2021-09-27 Thread Nick Connolly
If anyone is attending SDC 2021, the DPDK community (and especially the work to support Windows) gets a shout-out in one of the breakout sessions tomorrow (Tuesday): Can SPDK Deliver High Performance NVMe on Windows? Nick Connolly, Chief Scientist MayaData / DataCore Software https://storagede

Re: [dpdk-dev] [PATCH v1] stack: remove duplicated include of atomic

2021-09-27 Thread Olivier Matz
Hi Joyce, On Sun, Aug 22, 2021 at 10:20:34PM -0500, Joyce Kong wrote: > In stack module, remove the duplicated header file rte_atomic.h > as it has been included in rte_spinlock.h/rte_pause.h > > Signed-off-by: Joyce Kong > Reviewed-by: Ruifeng Wang Sorry for the late feedback. No objection a

[dpdk-dev] [PATCH 09/11] net/netvsc: moving hotplug retry to OS dir

2021-09-27 Thread Srikanth Kaka
Moved netvsc_hotplug_retry to respective OS dir as it contains OS dependent code. For Linux, it is copied as is and for FreeBSD it is not supported yet. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/hn_os.c | 8 +++ driver

[dpdk-dev] [PATCH 08/11] net/netvsc: moving event monitoring support

2021-09-27 Thread Srikanth Kaka
Event monitoring is not yet supported on FreeBSD, hence moving it the OS specific files Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/hn_os.c | 14 ++ drivers/net/netvsc/hn_ethdev.c | 7 +++ drivers/net

[dpdk-dev] [PATCH 10/11] bus/vmbus: add meson support for FreeBSD OS

2021-09-27 Thread Srikanth Kaka
add meson support for FreeBSD OS Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/meson.build | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bus/vmbus/meson.build b/drivers/bus/vmbus/meson.build index

[dpdk-dev] [PATCH 11/11] net/netvsc: add meson support for FreeBSD

2021-09-27 Thread Srikanth Kaka
add meson support for FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/freebsd/meson.build | 6 ++ drivers/net/netvsc/linux/meson.build | 6 ++ drivers/net/netvsc/meson.build | 4 3 files changed, 16 ins

[dpdk-dev] [PATCH 07/11] bus/vmbus: map the subchannel resources

2021-09-27 Thread Srikanth Kaka
Using sysctl, the resource values of subchannels are obtained and an mmap request to made to their buffers. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_uio.c | 181 ++ 1 file changed, 66 inser

[dpdk-dev] [PATCH 05/11] bus/vmbus: open subchannels

2021-09-27 Thread Srikanth Kaka
In FreeBSD, unlike Linux there is no sub-channel open callback that could be called by HV_UIO driver, upon their grant by the hypervisor. Thus, the PMD makes an IOCTL to the HV_UIO to open the granted sub-channels Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasi

[dpdk-dev] [PATCH 01/11] bus/vmbus: stub for FreeBSD support

2021-09-27 Thread Srikanth Kaka
These files are a copy of their Linux equivalents. They will be ported to FreeBSD. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_bus.c | 376 + drivers/bus/vmbus/freebsd/vmbus_uio.c | 453 ++

[dpdk-dev] [PATCH 03/11] bus/vmbus: handle mapping of device resources

2021-09-27 Thread Srikanth Kaka
All resource values are published by HV_UIO driver as sysctl key value pairs and they are read at a later point of the code flow Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_bus.c | 127 -- 1 f

[dpdk-dev] [PATCH 06/11] net/netvsc: request HV_UIO to open sub-channels

2021-09-27 Thread Srikanth Kaka
On Linux, the request does nothing, while on FreeBSD the HV_UIO kernel driver receives the request and opens the subchannels on PMDs behalf. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/netvsc/hn_ethdev.c | 4 1 file changed, 4 inse

[dpdk-dev] [PATCH 15/19] net/mlx5: making flow control DPDK callback invalid

2021-09-27 Thread Srikanth Kaka
At present, flow control CBs are not being supported on FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 61 --- 1 file changed, 10 insertions(+), 51 deletions(-) diff --git a/driv

[dpdk-dev] [PATCH 19/19] mlx5: Added meson support for FreeBSD

2021-09-27 Thread Srikanth Kaka
The freebsd/meson.build files are derived from their Linux counterparts This commit includes meson files for both common/mlx5 and net/mlx5 as missing either one of them will break compilation between the commits Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasira

[dpdk-dev] [PATCH 17/19] common/mlx5: fixed missing dependency in mlx5_glue.h

2021-09-27 Thread Srikanth Kaka
In FreeBSD, "FILE" needs stdio.h to be included Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_glue.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/common/mlx5/freebsd/mlx5_glue.h b/drivers/common/mlx5/f

[dpdk-dev] [PATCH 18/19] net/mlx5: fixed compilation warnings

2021-09-27 Thread Srikanth Kaka
In FreeBSD, interface name instead of index is for network stack operations The ALLMULTI is always enabled by kernel driver, we only check if the kernel has enabled it or not and then accordingly enable/disable in PMD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thu

[dpdk-dev] [PATCH 14/19] net/mlx5: added stats support

2021-09-27 Thread Srikanth Kaka
Initialize device stats and fetch them using sysctl. Removed ethtool traces Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 361 +- 1 file changed, 84 insertions(+), 277 deletions(-) diff

[dpdk-dev] [PATCH 16/19] net/mlx5: making module DPDK callbacks invalid

2021-09-27 Thread Srikanth Kaka
At present, DPDK module callbacks are not supported Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 60 +++ 1 file changed, 6 insertions(+), 54 deletions(-) diff --git a/drivers/net/mlx5/

[dpdk-dev] [PATCH 13/19] net/mlx5: added placeholder for VLAN vmwa

2021-09-27 Thread Srikanth Kaka
VLAN workaround for ESXi is not yet supported in FreeBSD, adding placeholders Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_vlan_os.c | 84 + 1 file changed, 84 insertions(+) create mode 100644 d

[dpdk-dev] [PATCH 00/11] add FreeBSD support to VMBUS & NetVSC PMDs

2021-09-27 Thread Srikanth Kaka
This patch series adds support to VMBUS & NetVSC PMDs run on FreeBSD Srikanth Kaka (11): bus/vmbus: stub for FreeBSD support bus/vmbus: scan and get the network device bus/vmbus: handle mapping of device resources bus/vmbus: get device resource values using sysctl bus/vmbus: open subchan

[dpdk-dev] [PATCH 09/19] common/mlx5: get interface name

2021-09-27 Thread Srikanth Kaka
All network stack operations use interface name. Get it using IBV dev index and sysctl. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_common_os.c | 86 +--- drivers/common/mlx5/freebsd/mlx5_common_os.h

[dpdk-dev] [PATCH 12/19] net/mlx5: Added procedure to detect link state

2021-09-27 Thread Srikanth Kaka
Defined callback to retrieve physical link information - status, speed and capability using ioctl Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 349 +++--- 1 file changed, 108 insertions(+),

[dpdk-dev] [PATCH 10/19] net/mlx5: fix socket MAC request

2021-09-27 Thread Srikanth Kaka
Use correct socket request type and ifreq for FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethd

[dpdk-dev] [PATCH 05/19] net/mlx5: modified PCI probe to work on FreeBSD

2021-09-27 Thread Srikanth Kaka
- Representor ports are not yet supported - Disabling NETLINK_RDMA & NETLINK_ROUTE sockets as netlink sockets are not present on FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 828 ---

[dpdk-dev] [PATCH 08/19] common/mlx5: derive PCI addr in FreeBSD

2021-09-27 Thread Srikanth Kaka
The FreeBSD OFED gives the Linux path as the IBV device path. The PCI addr is derived by getting the IBV dev interface index and finding the corresponding sysctl variable pertaining to it. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/

[dpdk-dev] [PATCH 06/19] common/mlx5: define PF_INET socket

2021-09-27 Thread Srikanth Kaka
Similar to NETLINK ROUTE socket in Linux implementation, PF_INET sockets are used to communicate with FreeBSD network stack Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_inet.c | 306 drivers/

[dpdk-dev] [PATCH 11/19] net/mlx5: removing port representator support

2021-09-27 Thread Srikanth Kaka
Removing port representator support from mlx5_get_ifname Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 20 +--- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/drivers/net/mlx5

[dpdk-dev] [PATCH 04/19] net/mlx5: disabling auxiliary bus support

2021-09-27 Thread Srikanth Kaka
Disabling auxiliary bus support in FreeBSD at this moment Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 12 -- drivers/net/mlx5/freebsd/mlx5_os.c| 52 +-- drivers/net/mlx5/fr

[dpdk-dev] [PATCH 07/19] net/mlx5: use the newly defined INET socket

2021-09-27 Thread Srikanth Kaka
All the FreeBSD network stack operation can use the INET socket for set/unset MAC, enable/disable allmulti & promisc mode Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_os.c | 74 ++ 1 file cha

[dpdk-dev] [PATCH 01/19] common/mlx5: stub for FreeBSD

2021-09-27 Thread Srikanth Kaka
These files are a copy of their Linux equivalents. They will be ported to FreeBSD. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_common_os.c | 430 + drivers/common/mlx5/freebsd/mlx5_common_os.h | 299 ..

[dpdk-dev] [PATCH 03/19] common/mlx5: disabling auxiliary bus support

2021-09-27 Thread Srikanth Kaka
Disabling auxiliary bus support in FreeBSD at this moment Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/common/mlx5/freebsd/mlx5_common_verbs.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/common/mlx5/freebs

[dpdk-dev] [PATCH 00/19] MLX5 FreeBSD support

2021-09-27 Thread Srikanth Kaka
This patch series adds support for MLX5 PMD on FreeBSD Srikanth Kaka (19): common/mlx5: FreeBSD stub net/mlx5: FreeBSD stub common/mlx5: FreeBSD disabling auxiliary bus support net/mlx5: FreeBSD disabling auxiliary bus support net/mlx5: Modified PCI probe to work on FreeBSD common/mlx5

Re: [dpdk-dev] [PATCH] bus/pci: fix unknown NUMA node value on Windows

2021-09-27 Thread Menon, Ranjit
(Sending the ACK again since Outlook appeared to make the email address a smart link!) On 9/27/2021 11:43 AM, Pallavi Kadam wrote: Based on the rte_eth_dev_socket_id() documentation, set the default numa_node to -1. When the API is unsuccessful, set numa_node to 0. This change more correctly re

Re: [dpdk-dev] [PATCH] bus/pci: fix unknown NUMA node value on Windows

2021-09-27 Thread Menon, Ranjit
On 9/27/2021 11:43 AM, Pallavi Kadam wrote: Based on the rte_eth_dev_socket_id() documentation, set the default numa_node to -1. When the API is unsuccessful, set numa_node to 0. This change more correctly resembles the Linux code. Fixes: bf7cf1f947bd ("bus/pci: fix unknown NUMA node value on

[dpdk-dev] [PATCH] bus/pci: fix unknown NUMA node value on Windows

2021-09-27 Thread Pallavi Kadam
Based on the rte_eth_dev_socket_id() documentation, set the default numa_node to -1. When the API is unsuccessful, set numa_node to 0. This change more correctly resembles the Linux code. Fixes: bf7cf1f947bd ("bus/pci: fix unknown NUMA node value on Windows") Cc: sta...@dpdk.org Reported-by: Vipi

[dpdk-dev] [PATCH 2/2] net/cxgbe: add support to get firmware version

2021-09-27 Thread Rahul Lakkireddy
From: Nikhil Vasoya Implement eth_dev_ops callback to get firmware version. Signed-off-by: Nikhil Vasoya Signed-off-by: Rahul Lakkireddy --- drivers/net/cxgbe/cxgbe_ethdev.c | 26 ++ drivers/net/cxgbe/cxgbe_pfvf.h | 2 ++ drivers/net/cxgbe/cxgbevf_ethdev.c | 1

[dpdk-dev] [PATCH 1/2] net/cxgbe: add support for xstats API for the VF

2021-09-27 Thread Rahul Lakkireddy
From: Nikhil Vasoya Add support to fetch port and queue stats via xstats API. Also remove queue stats from basic stats because they're now available via xstats API for the VF. Signed-off-by: Nikhil Vasoya Signed-off-by: Rahul Lakkireddy --- drivers/net/cxgbe/cxgbe_ethdev.c | 68

[dpdk-dev] [PATCH 0/2] net/cxgbe: fetch VF xstats and firmware version

2021-09-27 Thread Rahul Lakkireddy
This series of patches add following features. Patch 1 adds support to fetch port and queue stats via xstats API for VF. Patch 2 adds support to get firmware version. Thanks, Rahul Nikhil Vasoya (2): net/cxgbe: add support for xstats API for the VF net/cxgbe: add support to get firmware ver

Re: [dpdk-dev] [RFC v2 3/5] ethdev: copy ethdev 'burst' API into separate structure

2021-09-27 Thread Jerin Jacob
On Thu, Sep 23, 2021 at 11:28 AM Wang, Haiyue wrote: > > > -Original Message- > > From: Ananyev, Konstantin > > Sent: Wednesday, September 22, 2021 22:10 > > To: dev@dpdk.org > > Cc: Li, Xiaoyun ; ano...@marvell.com; > > jer...@marvell.com; > > ndabilpu...@marvell.com; adwiv...@marvell.c

[dpdk-dev] [PATCH] net/cxgbe: avoid sending link params change from VF

2021-09-27 Thread Rahul Lakkireddy
From: Nikhil Vasoya VFs are not allowed to change physical link params when a port module change is detected. The firmware already returns appropriate permission error when VF tries to change physical link params. But, make sure to avoid sending the command to firmware from VF in the first place

[dpdk-dev] [PATCH] net/ixgbe: fix RxQ/TxQ release

2021-09-27 Thread Julien Meunier
On the vector implementation, during the tear-down, the mbufs not drained in the RxQ and TxQ are freed based on an algorithm which supposed that the number of descriptors is a power of 2 (max_desc). Based on this hypothesis, this algorithm uses a bitmask in order to detect an index overflow during

Re: [dpdk-dev] [PATCH v6 2/3] security: add option for faster udata or mdata access

2021-09-27 Thread Thomas Monjalon
15/09/2021 18:30, Nithin Dabilpuram: > Currently rte_security_set_pkt_metadata() and rte_security_get_userdata() > methods to set pkt metadata on Inline outbound and get userdata > after Inline inbound processing is always driver specific callbacks. > > For drivers that do not have much to do in t

Re: [dpdk-dev] [EXT] Re: [PATCH] eal: add telemetry callbacks for memory info

2021-09-27 Thread Bruce Richardson
On Tue, Sep 21, 2021 at 09:05:29AM +, Harman Kalra wrote: > > > -Original Message- > > From: Bruce Richardson > > Sent: Monday, September 20, 2021 9:27 PM > > To: Harman Kalra > > Cc: dev@dpdk.org; ciara.po...@intel.com; Anatoly Burakov > > > > Subject: [EXT] Re: [PATCH] eal: add te

Re: [dpdk-dev] [PATCH] eal: add macro to swap two numbers

2021-09-27 Thread Thomas Monjalon
06/09/2021 10:17, Jerin Jacob: > On Wed, Jul 28, 2021 at 8:52 PM Shijith Thotton wrote: > > > > Added a macro to swap two numbers and updated common autotest for the > > same. > > > > Signed-off-by: Shijith Thotton > > Acked-by: Jerin Jacob > > > Needed-for: drivers: add external clock support

Re: [dpdk-dev] [PATCH] ethdev: modify comment of INTR RESET event

2021-09-27 Thread Ferruh Yigit
On 7/26/2021 7:43 AM, Chengwen Feng wrote: > According to the definition of rte_eth_dev_reset(), the > RTE_ETH_EVENT_INTR_RESET event could also use when PF resets. > Can you please highlight the part in the 'rte_eth_dev_reset()' definition related to the RESET event usage for PF? > This patch m

Re: [dpdk-dev] [RFC PATCH] ethdev: mtr: enhance input color table features

2021-09-27 Thread Ferruh Yigit
On 8/30/2021 10:23 AM, Jerin Jacob wrote: > Ping > > > On Fri, Aug 20, 2021 at 1:56 PM wrote: >> >> From: Jerin Jacob >> >> Currently, meter object supports only DSCP based on input color table, >> The patch enhance that to support VLAN based input color table, >> color table based on inner fie

Re: [dpdk-dev] [PATCH v2] net: fix checksum API documentation

2021-09-27 Thread Olivier Matz
On Wed, Sep 22, 2021 at 10:16:09AM +0100, Ferruh Yigit wrote: > On 9/21/2021 3:59 PM, Lance Richardson wrote: > > Minor corrections and improvements to documentation > > for checksum APIs. > > > > Fixes: 6006818cfb26 ("net: new checksum functions") > > Fixes: 45a08ef55e44 ("net: introduce function

Re: [dpdk-dev] [RFC 0/7] hide eth dev related structures

2021-09-27 Thread Jerin Jacob
On Wed, Sep 22, 2021 at 8:38 PM Ananyev, Konstantin wrote: > > > > > Hi Jerin, > > > > > > > > NOTE: This is just an RFC to start further discussion and collect the > > > > > feedback. > > > > > Due to significant amount of work, changes required are applied only > > > > > to two > > > > > PMDs

Re: [dpdk-dev] [PATCH] net/i40e: fix Rx packet statistics

2021-09-27 Thread Kevin Traynor
On 26/09/2021 08:57, Alvin Zhang wrote: Some packets are discarded by the NIC because they are larger than the MTU, these packets should be counted as "RX error" instead of "RX packet". The register 'GL_RXERR1' can count above discarded packets. This patch adds reading and calculation of the 'GL

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] stack: fix reload head when pop fails

2021-09-27 Thread Thomas Monjalon
24/09/2021 10:57, Olivier Matz: > Hello, > > On Tue, Sep 21, 2021 at 06:17:24PM +0200, Julien Meunier wrote: > > The previous commit 18effad9cfa7 ("stack: reload head when pop fails") > > only changed C11 implementation, not generic implementation. > > > > List head must be loaded right before co

Re: [dpdk-dev] [PATCH v6 07/10] ipsec: add support for NAT-T

2021-09-27 Thread Ananyev, Konstantin
> > On 9/27/2021 3:55 PM, Ananyev, Konstantin wrote: > > > >> On 9/23/2021 5:43 PM, Ananyev, Konstantin wrote: > Add support for the IPsec NAT-Traversal use case for Tunnel mode > packets. > > Signed-off-by: Declan Doherty > Signed-off-by: Radu Nicolau > Signed-off

[dpdk-dev] [PATCH] test/event_crypto: fix event crypto metadata write

2021-09-27 Thread Shijith Thotton
Using memcpy to update event crypto metadata fields (request/response) will result in one overwriting the other. To avoid this, fields of each structure should be updated one by one. Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test") Signed-off-by: Shijith Thotton --- app/test/tes

Re: [dpdk-dev] [PATCH v2 0/2] sched: adds function to get 64 bits greatest common divisor

2021-09-27 Thread Thomas Monjalon
> Xueming Li (2): > sched: adds function to get 64 bits greatest common divisor > vdpa/mlx5: fix large VM memory region registration Series applied, thanks. Note: commit logs are arranged, especially for adding verbs and sorting tags.

Re: [dpdk-dev] [PATCH] net/memif: fix chained mbuf determination

2021-09-27 Thread Ferruh Yigit
On 9/22/2021 7:19 AM, Jakub Grajciar -X (jgrajcia - PANTHEON TECH SRO at Cisco) wrote: >>> Previously, TX functions call rte_pktmbuf_is_contiguous to determine >>> whether an mbuf is chained. However, rte_pktmbuf_is_contiguous is >>> designed to work on the first mbuf of a packet only. In case a pa

[dpdk-dev] [PATCH v4] doc: remove event crypto metadata deprecation note

2021-09-27 Thread Shijith Thotton
Proposed change to event crypto metadata is not done as per deprecation note. Instead, comments are updated in spec to improve readability. Signed-off-by: Shijith Thotton --- v4: * Removed changes as per deprecation note. * Updated spec comments. v3: * Updated ABI section of release notes. v2:

[dpdk-dev] [NOTICE] "0-day robot" CI system outage

2021-09-27 Thread Aaron Conole
Greetings all, Around September 20th, the hardware running the "0-day Robot" that provides CI testing for some upstream projects suffered a catastrophic failure. This required a lot of internal scrambling to get replacement hardware ready and eventually perform the software migration. The backup

Re: [dpdk-dev] [PATCH v6 07/10] ipsec: add support for NAT-T

2021-09-27 Thread Nicolau, Radu
On 9/27/2021 3:55 PM, Ananyev, Konstantin wrote: On 9/23/2021 5:43 PM, Ananyev, Konstantin wrote: Add support for the IPsec NAT-Traversal use case for Tunnel mode packets. Signed-off-by: Declan Doherty Signed-off-by: Radu Nicolau Signed-off-by: Abhijit Sinha Signed-off-by: Daniel Martin

Re: [dpdk-dev] [PATCH v4] build: add meson options of max_memseg_lists and atomic_mbuf_ref_counts

2021-09-27 Thread kefu chai
On Mon, Sep 20, 2021 at 4:08 PM Bruce Richardson wrote: > > On Mon, Sep 20, 2021 at 03:51:06PM +0800, kefu chai wrote: > > hello Bruce, > > > > do you have any further concerns? is there anything i can do to move > > this forward? > > > > cheers, > > > > +Anatoly, for his input for the memory segm

[dpdk-dev] [PATCH 04/11] bus/vmbus: get device resource values using sysctl

2021-09-27 Thread Srikanth Kaka
The UIO device's relid, monitor id, etc values are retrieved using following sysctl variables: $ sysctl dev.hv_uio.0 dev.hv_uio.0.send_buf.gpadl: 925241 dev.hv_uio.0.send_buf.size: 16777216 dev.hv_uio.0.recv_buf.gpadl: 925240 dev.hv_uio.0.recv_buf.size: 32505856 dev.hv_uio.0.monitor_page.size: 4096

[dpdk-dev] [PATCH 02/11] bus/vmbus: scan and get the network device

2021-09-27 Thread Srikanth Kaka
Using sysctl, all the devices on the VMBUS are identified by the PMD. On finding the Network device's device id, it is added to VMBUS dev list. Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/bus/vmbus/freebsd/vmbus_bus.c | 241 +++-

Re: [dpdk-dev] [PATCH v6 07/10] ipsec: add support for NAT-T

2021-09-27 Thread Ananyev, Konstantin
> On 9/23/2021 5:43 PM, Ananyev, Konstantin wrote: > > > >> Add support for the IPsec NAT-Traversal use case for Tunnel mode > >> packets. > >> > >> Signed-off-by: Declan Doherty > >> Signed-off-by: Radu Nicolau > >> Signed-off-by: Abhijit Sinha > >> Signed-off-by: Daniel Martin Buckley > >>

Re: [dpdk-dev] [PATCH v3 1/8] common/cnxk: set appropriate max frame size for SDP and LBK

2021-09-27 Thread Jerin Jacob
On Wed, Sep 22, 2021 at 11:42 AM wrote: > > From: Satha Rao > > For SDP interface all platforms supports up to 65535 frame size. > Updated api with new check for SDP interface. > > Signed-off-by: Satha Rao > Acked-by: Nithin Dabilpuram Series applied to dpdk-next-net-mrvl/for-next-net. Thanks

Re: [dpdk-dev] [PATCH v6 07/10] ipsec: add support for NAT-T

2021-09-27 Thread Nicolau, Radu
On 9/23/2021 5:43 PM, Ananyev, Konstantin wrote: Add support for the IPsec NAT-Traversal use case for Tunnel mode packets. Signed-off-by: Declan Doherty Signed-off-by: Radu Nicolau Signed-off-by: Abhijit Sinha Signed-off-by: Daniel Martin Buckley Acked-by: Fan Zhang --- lib/ipsec/iph.

[dpdk-dev] [PATCH v1 11/11] common/dpaax: fix paddr to vaddr invalid conversion

2021-09-27 Thread nipun . gupta
From: Gagandeep Singh If some of the VA entries of table are somehow not populated and are NULL, it can add offset to NULL and return the invalid VA in PA to VA conversion. In this patch, adding a check if the VA entry has valid address only then add offset and return VA. Fixes: 2f3d633aa593 ("

[dpdk-dev] [PATCH v1 10/11] raw/dpaa2_qdma: remove checks for lcore ID

2021-09-27 Thread nipun . gupta
From: Nipun Gupta There is no need for preventional check of rte_lcore_id() in data path. This patch removes the same. Signed-off-by: Nipun Gupta --- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/raw/dpaa2_qdma/dpaa2_qdma.c b/dr

[dpdk-dev] [PATCH v1 09/11] raw/dpaa2_qdma: use correct params for config and queue setup

2021-09-27 Thread nipun . gupta
From: Nipun Gupta RAW configure and Queue setup APIs support size parameter for configure. This patch supports the same for DPAA2 QDMA PMD APIs Signed-off-by: Nipun Gupta --- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 12 +--- drivers/raw/dpaa2_qdma/rte_pmd_dpaa2_qdma.h | 8 ---

[dpdk-dev] [PATCH v1 08/11] net/dpaa: add comments to explain driver behaviour

2021-09-27 Thread nipun . gupta
From: Rohit Raj This patch adds comment to explain how dpaa_port_fmc_ccnode_parse function is working to get the HW queue from FMC policy file Signed-off-by: Rohit Raj --- drivers/net/dpaa/dpaa_fmc.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/dpaa/dp

[dpdk-dev] [PATCH v1 07/11] net/dpaa2: update RSS to support additional distributions

2021-09-27 Thread nipun . gupta
From: Vanshika Shukla This patch updates the RSS support to support following additional distributions: - VLAN - ESP - AH - PPPOE Signed-off-by: Vanshika Shukla --- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 70 +- drivers/net/dpaa2/dpaa2_ethdev.h | 7 ++- 2 files

[dpdk-dev] [PATCH v1 06/11] net/dpaa2: add function to generate HW hash key

2021-09-27 Thread nipun . gupta
From: Hemant Agrawal This patch add support to generate the hash key in software equivalent to WRIOP key generation. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/base/dpaa2_tlu_hash.c | 153 drivers/net/dpaa2/meson.build | 1 + drivers/net/dpaa2/rte_

[dpdk-dev] [PATCH v1 04/11] net/dpaa2: support multiple Tx queues enqueue for ordered

2021-09-27 Thread nipun . gupta
From: Jun Yang Support the tx enqueue in order queue mode, where the queue id for each event may be different. Signed-off-by: Jun Yang --- drivers/event/dpaa2/dpaa2_eventdev.c | 12 ++- drivers/net/dpaa2/dpaa2_ethdev.h | 4 + drivers/net/dpaa2/dpaa2_rxtx.c | 140 ++

[dpdk-dev] [PATCH v1 05/11] net/dpaa2: add debug print for MTU set for jumbo

2021-09-27 Thread nipun . gupta
From: Hemant Agrawal This patch adds a debug print for MTU configured on the device when jumbo frames are enabled. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2

[dpdk-dev] [PATCH v1 03/11] bus/fslmc: add qbman debug APIs support

2021-09-27 Thread nipun . gupta
From: Hemant Agrawal Add support for debugging qbman FQs Signed-off-by: Youri Querry Signed-off-by: Hemant Agrawal Signed-off-by: Nipun Gupta --- .../bus/fslmc/qbman/include/fsl_qbman_debug.h | 201 +- drivers/bus/fslmc/qbman/qbman_debug.c | 621 ++ drivers/bus/fs

[dpdk-dev] [PATCH v1 02/11] net/dpaa2: support Tx flow redirection action

2021-09-27 Thread nipun . gupta
From: Jun Yang TX redirection support by flow action RTE_FLOW_ACTION_TYPE_PHY_PORT and RTE_FLOW_ACTION_TYPE_PORT_ID This action is executed by HW to forward packets between ports. If the ingress packets match the rule, the packets are switched without software involved and perf is improved as we

  1   2   3   >