[dpdk-dev] [PATCH v1 1/1] driver/net/ice sleep in dev_init

2020-09-03 Thread yanx . fu
From: FuYanX Fix a hardware issue at C0 4 port NIC via fiber. When ice_driver send resetHW cmd, there is need to wait 100ms, then the HW functions will be completed. Otherwise, the function of the port link status will be unstable. Solution just follow datasheet requirement. The operating syste

[dpdk-dev] [PATCH v5] net/i40e: fix link status

2020-09-03 Thread Guinan Sun
If the PF driver supports the new speed reporting capabilities then use link_event_adv instead of link_event to get the speed. Fixes: 2a73125b7041 ("i40evf: fix link info update") Cc: sta...@dpdk.org Signed-off-by: Guinan Sun Acked-by: Jeff Guo Tested-by: Jiaqi Min --- v5: * code rebase v4: *

Re: [dpdk-dev] [PATCH] rcu: avoid literal suffix warning in C++ mode

2020-09-03 Thread Honnappa Nagarahalli
Hi Dmitry, Thanks for the patch, few nits inline. > -Original Message- > From: Dmitry Kozlyuk > Sent: Monday, August 31, 2020 4:38 PM > To: dev@dpdk.org > Cc: Dmitry Kozlyuk ; sta...@dpdk.org; > Honnappa Nagarahalli > Subject: [PATCH] rcu: avoid literal suffix warning in C++ mode

[dpdk-dev] [PATCH] testpmd: add speed capability in device info

2020-09-03 Thread Sarosh Arif
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 30bee3324..8824ad174 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -518,6 +518,7 @@ device_infos_display(const char *identifier) struct rte_device *dev; struct rte_devargs da; portid_t port_

Re: [dpdk-dev] DPDK Experimental Functions

2020-09-03 Thread Hemant Agrawal
> > > > > > Hi All, > > > > During recent work on the DPDK ABI, where we are looking to develop a > > nightly ABI regression test. > > > > We found a large number of experimental functions currently in DPDK API. > > Currently, there are 537 experimental APIs out of a total of roughly > > ~1800

[dpdk-dev] [PATCH v1] net: expand the data size of L3 length to 16 bits

2020-09-03 Thread Haiyue Wang
The IPv6 can have large extension header, like the "Segment Routing" may have (32 + 1) * 8 = 264 bytes, the 8 bits size of L3 length can't handle this case correctly. Signed-off-by: Haiyue Wang --- lib/librte_net/rte_net.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/l

Re: [dpdk-dev] [PATCH 2/2] build: find max lcore programmatically

2020-09-03 Thread Dharmik Thakkar
> On Sep 3, 2020, at 5:52 PM, Stephen Hemminger > wrote: > > On Thu, 3 Sep 2020 06:20:17 + > Juraj Linkeš wrote: > >>> -Original Message- >>> From: dev On Behalf Of Dharmik Thakkar >>> Sent: Wednesday, August 26, 2020 6:56 AM >>> To: Jerin Jacob >>> Cc: tho...@monjalon.net; dpd

Re: [dpdk-dev] [PATCH v2 01/17] eal: add max SIMD bitwidth

2020-09-03 Thread Honnappa Nagarahalli
> > This patch adds a max SIMD bitwidth EAL configuration. The API allows for an > app to set this value. It can also be set using EAL argument --force-max-simd- > bitwidth, which will lock the value and override any modifications made by > the app. > > Signed-off-by: Ciara Power > > --- > v2

Re: [dpdk-dev] [PATCH v2 02/17] eal: add default SIMD bitwidth values

2020-09-03 Thread Honnappa Nagarahalli
> > Each arch has a define for the default SIMD bitwidth value, this is used on > EAL init to set the config max SIMD bitwidth. > > Cc: Ruifeng Wang > Cc: Jerin Jacob > Cc: Honnappa Nagarahalli > Cc: David Christensen > > Signed-off-by: Ciara Power > > --- > v2: Changed default bitwidth

Re: [dpdk-dev] [PATCH 2/2] build: find max lcore programmatically

2020-09-03 Thread Dharmik Thakkar
> On Sep 3, 2020, at 1:20 AM, Juraj Linkeš wrote: > > > >> -Original Message- >> From: dev On Behalf Of Dharmik Thakkar >> Sent: Wednesday, August 26, 2020 6:56 AM >> To: Jerin Jacob >> Cc: tho...@monjalon.net; dpdk-dev ; nd >> Subject: Re: [dpdk-dev] [PATCH 2/2] build: find max lc

Re: [dpdk-dev] DPDK Experimental Functions

2020-09-03 Thread Honnappa Nagarahalli
> > Hi All, > > During recent work on the DPDK ABI, where we are looking to develop a > nightly ABI regression test. > > We found a large number of experimental functions currently in DPDK API. > Currently, there are 537 experimental APIs out of a total of roughly ~1800 > API, 30%-ish. > > Wh

Re: [dpdk-dev] [PATCH v3 04/11] baseband/acc100: add queue configuration

2020-09-03 Thread Xu, Rosen
Hi, > -Original Message- > From: Chautru, Nicolas > Sent: Friday, September 04, 2020 6:49 > To: Xu, Rosen ; dev@dpdk.org; akhil.go...@nxp.com > Cc: Richardson, Bruce > Subject: RE: [dpdk-dev] [PATCH v3 04/11] baseband/acc100: add queue > configuration > > > From: Xu, Rosen > > > > Hi,

Re: [dpdk-dev] [PATCH v3 1/4] ethdev: add a field for rxq info structure

2020-09-03 Thread Chengchang Tang
On 2020/9/3 23:01, Ferruh Yigit wrote: > On 8/29/2020 8:13 AM, Chengchang Tang wrote: >> Add a field named rx_buf_size in rte_eth_rxq_info to indicate the buffer >> size used in receiving packets for HW. >> >> In this way, upper-layer users can get this information by calling >> rte_eth_rx_queue

Re: [dpdk-dev] [PATCH v3 20/37] doc: remove references to make in bbdev guides

2020-09-03 Thread Chautru, Nicolas
> From: Power, Ciara > > Make is no longer supported for compiling DPDK, references are now removed > in the documentation. > > Reviewed-by: Kevin Laatz > Signed-off-by: Ciara Power > --- > doc/guides/bbdevs/fpga_5gnr_fec.rst | 7 ++- > doc/guides/bbdevs/fpga_lte_fec.rst | 7 ++- >

Re: [dpdk-dev] [PATCH V3 1/2] gro: add UDP GRO support

2020-09-03 Thread yang_y_yi
At 2020-09-03 15:42:48, "Hu, Jiayu" wrote: >Hi Yi, > >Some comments are inline. > >In addition, have you tested UDP GRO function and measure performance? Yes, I tested GRO and GSO together. The test case is VM sends 8K UDP packet by vhostuserclient, OVS DPDK GSOed it as size 1450 packets, send t

Re: [dpdk-dev] [PATCH v3 00/15] update i40e base code

2020-09-03 Thread Sun, GuinanX
Hi Ferruh > -Original Message- > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Thursday, September 3, 2020 10:31 PM > To: Sun, GuinanX ; dev@dpdk.org > Cc: Xing, Beilei ; Guo, Jia > Subject: Re: [dpdk-dev] [PATCH v3 00/15] update i40e base code > > On 9/3/2020 5:48 AM, Guina

[dpdk-dev] [PATCH v1] baseband/turbo_sw: update meson for more dynamic compilation

2020-09-03 Thread Nicolas Chautru
The meson for the turbo_sw PMD is updated to prevent the requirement for any device specific toplevel flags to be passed down (unlike what used to be the case with make). The linking to the optional libraries is purely auto detected at build time and flags are then set appropriately. Signed-off-by

[dpdk-dev] [PATCH v1] baseband/turbo_sw: update meson for more dynamic compilation

2020-09-03 Thread Nicolas Chautru
In parallel of moving to meson by default as part of this serie https://patches.dpdk.org/project/dpdk/list/?series=11929, updating the turbo_sw meson so that to no longer rely on toplevel device specific flags, but purely dynamically within meson based on autodetecting the optional libraries. Nico

Re: [dpdk-dev] [PATCH v3 01/37] examples: remove legacy sections of makefiles

2020-09-03 Thread Chautru, Nicolas
Acked-by: Nicolas Chautru

Re: [dpdk-dev] [PATCH v3 33/37] doc: remove references to make in sample app guides

2020-09-03 Thread Chautru, Nicolas
Acked-by: Nicolas Chautru

Re: [dpdk-dev] [PATCH v3 35/37] doc: remove reference to make in tools guides

2020-09-03 Thread Chautru, Nicolas
Hi Ciara, Fine with me for test-bbdev. (Ignore my parallel comment to point more explicitly to the build stage directory, that is already fine below). Acked-by: Nicolas Chautru > -Original Message- > From: Power, Ciara > Sent: Thursday, September 3, 2020 8:27 AM > To: dev@dpdk.org >

Re: [dpdk-dev] [PATCH v3 15/37] app/test: remove references to make

2020-09-03 Thread Chautru, Nicolas
Hi Ciara, > From: Power, Ciara > > Make is no longer supported, RTE_SDK, RTE_TARGET and CONFIG options are > no longer in use. > > Signed-off-by: Ciara Power > --- > app/test-bbdev/test-bbdev.py | 11 + > app/test/test_cryptodev.c | 89 +- > app/tes

[dpdk-dev] [PATCH v2] eal/interrupts: add function to allow interruptible epoll

2020-09-03 Thread Stephen Hemminger
The existing definition of rte_epoll_wait retries if interrupted by a signal. This behavior makes it hard to use rte_epoll_wait for applications that want to use signals do do things like exit polling loop and shutdown. Since changing existing semantic might break applications, add a new rte_epoll

[dpdk-dev] [PATCH v2 2/2] rte_log: make rte_logs private

2020-09-03 Thread Stephen Hemminger
As announced in earlier releases, rte_logs can now be made internal to eal_common_log. Acked-by: Andrew Rybchenko Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/deprecation.rst | 4 doc/guides/rel_notes/release_20_11.rst | 2 ++ lib/librte_eal/common/eal_common_log.c | 11 ++

[dpdk-dev] [PATCH v2 1/2] rte_log: take experimental tag off of rte_log_get_stream

2020-09-03 Thread Stephen Hemminger
Applications will need to use this API now to get internal state of rte_log. Suggested-by: David Marchand Signed-off-by: Stephen Hemminger --- lib/librte_eal/include/rte_log.h | 1 - lib/librte_eal/rte_eal_version.map | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/l

[dpdk-dev] [PATCH v2 0/2] rte_log: make internal structures private

2020-09-03 Thread Stephen Hemminger
v2 add additonal patch to make rte_log_get_stream not experimental Stephen Hemminger (2): rte_log: take experimental tag off of rte_log_get_stream rte_log: make rte_logs private doc/guides/rel_notes/deprecation.rst | 4 doc/guides/rel_notes/release_20_11.rst | 2 ++ lib/librte_eal/c

Re: [dpdk-dev] [PATCH 2/2] build: find max lcore programmatically

2020-09-03 Thread Stephen Hemminger
On Thu, 3 Sep 2020 06:20:17 + Juraj Linkeš wrote: > > -Original Message- > > From: dev On Behalf Of Dharmik Thakkar > > Sent: Wednesday, August 26, 2020 6:56 AM > > To: Jerin Jacob > > Cc: tho...@monjalon.net; dpdk-dev ; nd > > Subject: Re: [dpdk-dev] [PATCH 2/2] build: find max lc

Re: [dpdk-dev] [PATCH v3 04/11] baseband/acc100: add queue configuration

2020-09-03 Thread Chautru, Nicolas
> From: Xu, Rosen > > Hi, > > > -Original Message- > > From: Chautru, Nicolas > > Sent: Sunday, August 30, 2020 1:48 > > To: Xu, Rosen ; dev@dpdk.org; akhil.go...@nxp.com > > Cc: Richardson, Bruce > > Subject: RE: [dpdk-dev] [PATCH v3 04/11] baseband/acc100: add queue > > configuration

[dpdk-dev] [PATCH v2] usertools: add huge page setup script

2020-09-03 Thread Stephen Hemminger
This is an improved version of the setup of huge pages bases on earlier DPDK setup. Differences are: * it autodetects NUMA vs non NUMA * it allows setting different page sizes recent kernels support multiple sizes. * it accepts a parameter in bytes (not pages). If necessary the steps

[dpdk-dev] ixgbe: use of multiple tx queues

2020-09-03 Thread Shubhachint, Chaitanya
Hello, I am working on a test code for generating packets. I am using an old NIC (Intel x520-LR1). The port is bound to igb_uio. rte_eth_dev_info_get reports dev_info.max_tx_queues as 40 but the application is only configuring two tx queues (rte_eth_dev_configure). App feeds packets to both th

[dpdk-dev] [PATCH v2 7/7] ethdev: remove underscore prefix from internal API

2020-09-03 Thread Ferruh Yigit
'_rte_eth_dev_callback_process()' & '_rte_eth_dev_reset()' internal APIs has unconventional underscore ('_') prefix. Although this is not documented most probably this is to mark them as internal. Since we have '__rte_internal' flag to mark this, removing '_' from API names. For '_rte_eth_dev_rese

[dpdk-dev] [PATCH v2 5/7] ethdev: use hairpin helper functions

2020-09-03 Thread Ferruh Yigit
Hairpin helper functions were not used by drivers, but it was used only local to ethdev. They are: 'rte_eth_dev_is_rx_hairpin_queue()' 'rte_eth_dev_is_tx_hairpin_queue()' Exposing them as internal APIs and update mlx5 driver (only user of hairpin) to use them. Signed-off-by: Ferruh Yigit Acked-b

[dpdk-dev] [PATCH v2 3/7] ethdev: make device operations struct private

2020-09-03 Thread Ferruh Yigit
Hiding the 'struct eth_dev_ops' from applications. Removing relevant deprecation notice. Signed-off-by: Ferruh Yigit Acked-by: Andrew Rybchenko --- doc/guides/rel_notes/deprecation.rst | 9 - drivers/net/i40e/i40e_vf_representor.c | 1 + drivers/net/ixgbe/ixgbe_vf_representor.c | 1

[dpdk-dev] [PATCH v2 4/7] ethdev: mark internal functions

2020-09-03 Thread Ferruh Yigit
Some ethdev functions are for drivers only, not for applications. Since we have '__rte_internal' tag available now, marking internal functions with it and moving functions to INTERNAL section in linker script. This is also good for documenting the internal functions. Some internal APIs seems mark

[dpdk-dev] [PATCH v2 6/7] ethdev: remove invalid symbols from map file

2020-09-03 Thread Ferruh Yigit
These are sturct type names, not object names. Removing them from .map file. Fixes: 9d41beed24b0 ("lib: provide initial versioning") Cc: sta...@dpdk.org Signed-off-by: Ferruh Yigit Reviewed-by: Andrew Rybchenko --- lib/librte_ethdev/rte_ethdev_version.map | 2 -- 1 file changed, 2 deletions(-)

[dpdk-dev] [PATCH v2 2/7] ethdev: move inline device operations

2020-09-03 Thread Ferruh Yigit
This patch is a preparation to hide the 'struct eth_dev_ops' from applications by moving some device operations from 'struct eth_dev_ops' to 'struct rte_eth_dev'. Mentioned ethdev APIs are in the data path and implemented as inline because of performance reasons. Exposing 'struct eth_dev_ops' to

[dpdk-dev] [PATCH v2 1/7] ethdev: remove legacy descriptor status check API

2020-09-03 Thread Ferruh Yigit
Removing 'rte_eth_rx_descriptor_done()' API and relevant 'rx_descriptor_done' function pointer from 'struct eth_dev_ops'. Deprecation notice is to deprecate the API in 20.11 and remove one year later, this is useful to prevent new applications use the API but keep the support for old application.

Re: [dpdk-dev] [PATCH v1 00/18] mlx5 Rx DevX/Verbs separation

2020-09-03 Thread Michael Baum
I think the names of the patches describe well enough and there is no need to add a description in the cover-letter. > -Original Message- > From: Tom Barbette > Sent: Thursday, September 3, 2020 5:34 PM > To: Michael Baum ; dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > ; Slava Ovsi

Re: [dpdk-dev] [PATCH v3 05/11] baseband/acc100: add LDPC processing functions

2020-09-03 Thread Chautru, Nicolas
> From: Ananyev, Konstantin > > > > > -Original Message- > > From: dev On Behalf Of Xu, Rosen > > Sent: Thursday, September 3, 2020 3:34 AM > > To: Chautru, Nicolas ; dev@dpdk.org; > > akhil.go...@nxp.com > > Cc: Richardson, Bruce > > Subject: Re: [dpdk-dev] [PATCH v3 05/11] baseband/

[dpdk-dev] [PATCH] security: update session create API

2020-09-03 Thread akhil . goyal
From: Akhil Goyal The API ``rte_security_session_create`` takes only single mempool for session and session private data. So the application need to create mempool for twice the number of sessions needed and will also lead to wastage of memory as session private data need more memory compared to

Re: [dpdk-dev] [PATCH v6 1/8] net/dpaa: add support for fmlib in dpdk

2020-09-03 Thread Ferruh Yigit
On 9/3/2020 4:24 AM, Hemant Agrawal wrote: > Hi Ferruh, > >> -Original Message- >> From: Ferruh Yigit >> Sent: Wednesday, September 2, 2020 7:02 PM On 9/1/2020 1:36 PM, Hemant Agrawal wrote: > DPAA platorm MAC interface is known as FMAN i.e. Frame Manager. > There are two way

Re: [dpdk-dev] [PATCH v3 1/1] vfio: modify spapr iommu support to use static window sizing

2020-09-03 Thread David Christensen
Ping On 8/10/20 2:07 PM, David Christensen wrote: The SPAPR IOMMU requires that a DMA window size be defined before memory can be mapped for DMA. Current code dynamically modifies the DMA window size in response to every new memory allocation which is potentially dangerous because all existing m

Re: [dpdk-dev] [PATCH v3 10/11] baseband/acc100: add configure function

2020-09-03 Thread Chautru, Nicolas
Hi Aidan, > From: Aidan Goddard > > Hi Nic, > > Does the ACC100-specific configuration code have to go into > test_bbdev_perf.c? Would it be better to avoid having this device specific > code > in test-bbdev or is there a good reason for doing so? The test-bbdev provides the option to initia

Re: [dpdk-dev] [PATCH V1] testpmd: add eeprom/module eeprom display

2020-09-03 Thread Ferruh Yigit
On 9/3/2020 5:40 PM, David Liu wrote: > On Wed, Sep 2, 2020 at 6:00 AM Ferruh Yigit > wrote: > > On 9/1/2020 8:07 PM, David Liu wrote: > > Change display message. > > Add EEPROM dump command > >   "show port eeprom" > > Add module EEPROM dump c

Re: [dpdk-dev] [RFC] ethdev: make rte flow API thread safe

2020-09-03 Thread Stephen Hemminger
On Thu, 3 Sep 2020 12:53:02 +0800 Suanming Mou wrote: > Currently, the rte flow functions are not defined as thread safety. > DPDK applications either call the functions in single thread or add > locks around the functions for the critical section. > > For PMDs support the flow operations threa

[dpdk-dev] [PATCH 2/2] crypto/dpaa2_sec: support stats for secondary process

2020-09-03 Thread Hemant Agrawal
DPAA2 crypto object access need availability of MCP object pointer. In case of secondary process, we need to use local MCP pointer instead of primary process. Signed-off-by: Nipun Gupta Signed-off-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 9 +++-- 1 file changed,

[dpdk-dev] [PATCH 1/2] crypto/dpaa2_sec: fix to check queue pair array for null

2020-09-03 Thread Hemant Agrawal
dpdk-procinfo calls the crypto stats API, which results segmentation fault on DPAA2_SEC. The queue pair array will be NULL, when it is used without configuring the SEC device. Fixes: 02f35eee264b ("crypto/dpaa2_sec: support statistics") Cc: sta...@dpdk.org Signed-off-by: Hemant Agrawal --- driv

[dpdk-dev] [PATCH 2/2] crypto/dpaa2_sec: change descriptor sharing for ERA10

2020-09-03 Thread akhil . goyal
From: Akhil Goyal In case of LX2160 or SEC ERA 10, share wait has performance optimizations wrt to ok-to-share signal which allows multiple DECOs to work together even in case of single queue and single SA. Hence updated the descriptor sharing only in case of ERA10. Signed-off-by: Akhil Goyal -

[dpdk-dev] [PATCH 1/2] crypto/dpaa2_sec: increase supported anti replay win sz

2020-09-03 Thread akhil . goyal
From: Akhil Goyal In case of LX2160 or SEC ERA >= 10, max anti replay window size supported is 1024. For all other versions of SEC, the maximum value is capped at 128 even if application gives more than that. Signed-off-by: Akhil Goyal Signed-off-by: Yi Liu --- drivers/common/dpaax/caamflib/d

[dpdk-dev] DPDK techboard minutes of July 29

2020-09-03 Thread Thomas Monjalon
Minutes of Technical Board meeting, 2020-07-29 Members Attending: 11/11 - Bruce Richardson - Ferruh Yigit - Hemant Agrawal - Honnappa Nagarahalli - Jerin Jacob - Kevin Traynor - Konstantin Ananyev - Maxime Coquelin - Olivier Matz - Stephen Hemminger - Thomas Monjalon (Chair)

Re: [dpdk-dev] [PATCH V1] testpmd: add eeprom/module eeprom display

2020-09-03 Thread David Liu
Yes, that sounds good. What do you think of having the command to be "show port (port_id|all) (module_eeprom|eeprom)"? On Wed, Sep 2, 2020 at 6:00 AM Ferruh Yigit wrote: > On 9/1/2020 8:07 PM, David Liu wrote: > > Change display message. > > Add EEPROM dump command > > "show port eeprom" > >

[dpdk-dev] [PATCH 2/2] crypto/dpaa2_sec: support non-HMAC auth algo versions

2020-09-03 Thread akhil . goyal
From: Akhil Goyal added support for non-HMAC for auth algorithms (SHA1, SHA2, MD5). Corresponding capabilities are enabled so that test application can enable those test cases. Signed-off-by: Hemant Agrawal Signed-off-by: Akhil Goyal --- doc/guides/cryptodevs/features/dpaa2_sec.ini | 6 + d

[dpdk-dev] [PATCH 1/2] crypto/dpaa2_sec: support DES-CBC

2020-09-03 Thread akhil . goyal
From: Akhil Goyal add DES-CBC support for cipher_only, chain and ipsec protocol. Signed-off-by: Hemant Agrawal Signed-off-by: Akhil Goyal --- doc/guides/cryptodevs/features/dpaa2_sec.ini | 3 ++- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 26 ++-- drivers/crypto/dpaa2_sec

Re: [dpdk-dev] [dpdk-stable] [PATCH] bus/dpaa: remove logically dead code

2020-09-03 Thread Ferruh Yigit
On 8/24/2020 2:02 PM, wangyunjian wrote: > From: Yunjian Wang > > This patch removes logically dead code reported by coverity. > > Coverity issue: 349930 > Fixes: b9c94167904f ("bus/dpaa: decouple FQ portal alloc and init") > Cc: sta...@dpdk.org > > Signed-off-by: Yunjian Wang Reviewed-by: Fe

[dpdk-dev] [RFC PATCH v3 4/6] net/ixgbe: implement power management API

2020-09-03 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Anatoly Burakov Signed-off-by: Liang Ma --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + drivers/net/ixgbe/ixgbe_rxtx.c | 22

[dpdk-dev] [RFC PATCH v3 6/6] net/ice: implement power management API

2020-09-03 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- drivers/net/ice/ice_ethdev.c | 1 + drivers/net/ice/ice_rxtx.c | 23

[dpdk-dev] [RFC PATCH v3 5/6] net/i40e: implement power management API

2020-09-03 Thread Liang Ma
Implement support for the power management API by implementing a `next_rx_desc` function that will return an address of an RX ring's status bit. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_rxtx.c | 23

[dpdk-dev] [RFC PATCH v3 2/6] ethdev: add simple power management API

2020-09-03 Thread Liang Ma
Add a simple API allow ethdev get the last available queue descriptor address from PMD. Also include internal structure update. Signed-off-by: Liang Ma Signed-off-by: Anatoly Burakov --- lib/librte_ethdev/rte_ethdev.h | 22 ++ lib/librte_ethdev/rte_ethdev_core.h | 46 ++

[dpdk-dev] [RFC PATCH v3 3/6] power: add simple power management API and callback

2020-09-03 Thread Liang Ma
Add a simple on/off switch that will enable saving power when no packets are arriving. It is based on counting the number of empty polls and, when the number reaches a certain threshold, entering an architecture-defined optimized power state that will either wait until a TSC timestamp expires, or w

[dpdk-dev] [PATCH 5/7] test/crypto: Add test vectors for PDCP-SDAP

2020-09-03 Thread akhil . goyal
From: Franck LENORMAND The test vectors are structured in a more readable way compared to test vector for PDCP. This structure allows to have all the information about a test vector at the same place. Signed-off-by: Franck LENORMAND Signed-off-by: Akhil Goyal --- ...ryptodev_security_pdcp_sda

[dpdk-dev] [RFC PATCH v3 1/6] eal: add power management intrinsics

2020-09-03 Thread Liang Ma
Add two new power management intrinsics, and provide an implementation in eal/x86 based on UMONITOR/UMWAIT instructions. The instructions are implemented as raw byte opcodes because there is not yet widespread compiler support for these instructions. The power management instructions provide an ar

[dpdk-dev] [PATCH 7/7] test/crypto: Add PDCP-SDAP cases

2020-09-03 Thread akhil . goyal
From: Franck LENORMAND A new functions which uses the structure of the test vectors for SDAP is added and call a functions responsible to call the test_pdcp_proto with the test vector both for encapsulation and decapsulation. Signed-off-by: Franck LENORMAND Signed-off-by: Akhil Goyal --- app/

[dpdk-dev] [PATCH 4/7] crypto/dpaa_sec: enable PDCP-SDAP sessions

2020-09-03 Thread akhil . goyal
From: Akhil Goyal Based on the new field in PDCP xform, a decision is made to create a PDCP session with or without SDAP enabled. Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa_sec/dpaa_sec.c | 63 +- drivers/crypto/dpaa_sec/dpaa_sec.h | 3 +- 2 files changed,

[dpdk-dev] [PATCH 2/7] security: modify PDCP xform to support SDAP

2020-09-03 Thread akhil . goyal
From: Akhil Goyal The SDAP is a protocol in the LTE stack on top of PDCP for QOS. A particular PDCP session may or may not have SDAP enabled. But if it is enabled, SDAP header should be authenticated but not encrypted if both confidentiality and integrity is enabled. Hence, the driver should be i

[dpdk-dev] [PATCH 6/7] test/crypto: Modify test_pdcp_proto to take parameters

2020-09-03 Thread akhil . goyal
From: Franck LENORMAND The function test_pdcp_proto was relying to heavily on the structure of test vectors for PDCP making it difficult to be reusable. The function is changed to take all the test parameters as input and does not need access to the tests vectors anymore. Signed-off-by: Franck

[dpdk-dev] [PATCH 3/7] crypto/dpaa2_sec: enable PDCP-SDAP sessions

2020-09-03 Thread akhil . goyal
From: Akhil Goyal Based on the new field in PDCP xform, a decision is made to create a PDCP session with or without SDAP enabled. Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 30 ++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git

[dpdk-dev] [PATCH 1/7] common/dpaax/caamflib: Support PDCP-SDAP

2020-09-03 Thread akhil . goyal
From: Franck LENORMAND The SDAP is a protocol in the LTE stack on top of PDCP. It is dedicated to QoS. The difficulty of implementing this protocol is because the PDCP change behavior regarding encryption and authentication of the SDU it receives. In effect PDCP shall not encrypt the SDAP SDU bu

[dpdk-dev] [PATCH 0/7] support PDCP-SDAP for dpaa2_sec

2020-09-03 Thread akhil . goyal
From: Akhil Goyal The SDAP is a protocol in the LTE stack on top of PDCP. It is dedicated to QoS. The difficulty of implementing this protocol is because the PDCP change behavior regarding encryption and authentication of the SDU it receives. In effect PDCP shall not encrypt the SDAP SDU but mus

Re: [dpdk-dev] [PATCH v2 3/3] doc: add notes on overriding extra config values

2020-09-03 Thread Hemant Agrawal
Acked-by: Hemant Agrawal

[dpdk-dev] [PATCH v3 32/37] doc: remove references to make in rawdev guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Reviewed-by: Kevin Laatz Signed-off-by: Ciara Power --- doc/guides/rawdevs/dpaa2_cmdif.rst | 21 - doc/guides/rawdevs/dpaa2_qdma.rst| 21 - doc/guides/r

Re: [dpdk-dev] [PATCH v3 1/4] ethdev: add a field for rxq info structure

2020-09-03 Thread Bruce Richardson
On Sat, Aug 29, 2020 at 03:13:16PM +0800, Chengchang Tang wrote: > Add a field named rx_buf_size in rte_eth_rxq_info to indicate the buffer > size used in receiving packets for HW. > > In this way, upper-layer users can get this information by calling > rte_eth_rx_queue_info_get. > > Signed-off-b

[dpdk-dev] [PATCH v3 37/37] doc: update quick build doc to remove make references

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power Reviewed-by: Kevin Laatz --- doc/build-sdk-quick.txt | 55 - 1 file changed, 21 insertions(+), 34 deletions(-) diff --git a/doc/bu

[dpdk-dev] [PATCH v3 36/37] doc: remove references to make in testpmd guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power Reviewed-by: Kevin Laatz --- v3: Added back in ieee1588 description. --- doc/guides/testpmd_app_ug/run_app.rst | 6 +++--- doc/guides/testpmd_app_ug/testpmd_funcs.r

[dpdk-dev] [PATCH v3 35/37] doc: remove reference to make in tools guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power Reviewed-by: Kevin Laatz --- doc/guides/tools/comp_perf.rst| 10 ++--- doc/guides/tools/cryptoperf.rst | 20 +++-- doc/guides/tools/pdump.rst

[dpdk-dev] [PATCH v3 33/37] doc: remove references to make in sample app guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power --- doc/guides/sample_app_ug/bbdev_app.rst| 34 ++-- doc/guides/sample_app_ug/cmd_line.rst | 2 +- doc/guides/sample_app_ug/compiling.rst| 83 +

[dpdk-dev] [PATCH v3 34/37] doc: remove references to make in vdpadevs guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power --- doc/guides/vdpadevs/ifc.rst | 13 doc/guides/vdpadevs/mlx5.rst | 40 +++- 2 files changed, 3 insertions(+), 50 deletions(-

[dpdk-dev] [PATCH v3 30/37] doc: remove references to make in platform guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power --- doc/guides/platform/bluefield.rst | 22 - doc/guides/platform/octeontx.rst | 33 +-- doc/guides/platform/octeontx2.rst

[dpdk-dev] [PATCH v3 31/37] doc: remove references to make in prog guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power Reviewed-by: Kevin Laatz --- MAINTAINERS | 3 +- doc/guides/prog_guide/build_app.rst | 48 +-- .../prog_guide/dev_kit_build_

[dpdk-dev] [PATCH v3 29/37] doc: remove references to make in NIC guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Reviewed-by: Bruce Richardson Signed-off-by: Ciara Power --- doc/guides/nics/ark.rst| 26 - doc/guides/nics/atlantic.rst | 4 -- doc/guides/nics/axgbe.rst | 1

[dpdk-dev] [PATCH v3 28/37] doc: remove references to make in mempool guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power --- doc/guides/mempool/octeontx.rst | 28 +++- doc/guides/mempool/octeontx2.rst | 10 +- 2 files changed, 4 insertions(+), 34 deletions(-)

[dpdk-dev] [PATCH v3 26/37] doc: remove references to make in howto guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power --- doc/guides/howto/lm_bond_virtio_sriov.rst | 4 +-- doc/guides/howto/lm_virtio_vhost_user.rst | 4 +-- doc/guides/howto/packet_capture_framework.rst | 21 +++--

[dpdk-dev] [PATCH v3 25/37] doc: remove references to make in FreeBSD gsg guide

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Acked-by: Bruce Richardson Signed-off-by: Ciara Power --- doc/guides/freebsd_gsg/build_dpdk.rst | 2 +- doc/guides/freebsd_gsg/intro.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(

[dpdk-dev] [PATCH v3 27/37] doc: remove references to make in Linux gsg guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Reviewed-by: Bruce Richardson Signed-off-by: Ciara Power --- doc/guides/linux_gsg/build_dpdk.rst | 84 +++ doc/guides/linux_gsg/build_sample_apps.rst| 69 +-

[dpdk-dev] [PATCH v3 22/37] doc: remove references to make in contributing guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power Signed-off-by: Louise Kilheeney --- doc/guides/contributing/coding_style.rst | 46 +--- doc/guides/contributing/design.rst| 127 ++ doc/g

[dpdk-dev] [PATCH v3 24/37] doc: remove references to make in eventdev guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Reviewed-by: Kevin Laatz Signed-off-by: Ciara Power --- doc/guides/eventdevs/dpaa.rst | 20 doc/guides/eventdevs/dpaa2.rst | 20 doc/guides/eventde

[dpdk-dev] [PATCH v3 23/37] doc: remove references to make in cryptodev guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Signed-off-by: Ciara Power Reviewed-by: Kevin Laatz --- doc/guides/cryptodevs/aesni_gcm.rst | 4 +- doc/guides/cryptodevs/aesni_mb.rst | 4 +- doc/guides/cryptodevs/armv8.rst | 3 -- doc/gui

[dpdk-dev] [PATCH v3 21/37] doc: remove references to make in compressdev guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Reviewed-by: Kevin Laatz Signed-off-by: Ciara Power --- doc/guides/compressdevs/isal.rst | 4 doc/guides/compressdevs/octeontx.rst | 24 ++-- doc/guides/compressdevs/zl

[dpdk-dev] [PATCH v3 20/37] doc: remove references to make in bbdev guides

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in the documentation. Reviewed-by: Kevin Laatz Signed-off-by: Ciara Power --- doc/guides/bbdevs/fpga_5gnr_fec.rst | 7 ++- doc/guides/bbdevs/fpga_lte_fec.rst | 7 ++- doc/guides/bbdevs/turbo_sw.rst | 15 -

[dpdk-dev] [PATCH v3 19/37] doc: remove deprecation notice for make

2020-09-03 Thread Ciara Power
The deprecation notice for make can now be removed as this patchset removes the make build system. Signed-off-by: Ciara Power --- doc/guides/rel_notes/deprecation.rst | 7 --- 1 file changed, 7 deletions(-) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecatio

[dpdk-dev] [PATCH v3 18/37] doc/guides: remove use of DPDK make build system

2020-09-03 Thread Ciara Power
From: Bruce Richardson When building the DPDK guide documents, the DPDK version information was pulled using "make showversion", which meant there was a dependency on the DPDK make-based build system. Change this to have the version info passed in from meson itself. Signed-off-by: Bruce Richards

[dpdk-dev] [PATCH v3 16/37] drivers: remove references to make config options

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in code comments. Signed-off-by: Ciara Power --- drivers/bus/pci/linux/pci_vfio.c | 1 - drivers/net/i40e/i40e_rxtx.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/bus/pci/linux/pci_vfio.c b/drivers/bus

[dpdk-dev] [PATCH v3 17/37] lib: remove references to make config options

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, references are now removed in code comments. Signed-off-by: Ciara Power --- lib/librte_mempool/rte_mempool.h | 2 +- lib/librte_ring/rte_ring_elem.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/librte_mempool/rte_mem

[dpdk-dev] [PATCH v3 15/37] app/test: remove references to make

2020-09-03 Thread Ciara Power
Make is no longer supported, RTE_SDK, RTE_TARGET and CONFIG options are no longer in use. Signed-off-by: Ciara Power --- app/test-bbdev/test-bbdev.py | 11 + app/test/test_cryptodev.c | 89 +- app/test/test_cryptodev_asym.c | 18 ++- 3 files changed

[dpdk-dev] [PATCH v3 13/37] buildtools: remove all scripts for use with make

2020-09-03 Thread Ciara Power
Make is no longer supported for compiling DPDK, scripts used with make are no longer needed. Signed-off-by: Ciara Power --- MAINTAINERS | 4 -- buildtools/auto-config-h.sh | 108 buildtools/gen-build-mk.sh | 23 buildtools/gen-con

[dpdk-dev] [PATCH v3 14/37] devtools: remove use of make in scripts

2020-09-03 Thread Ciara Power
Make is no longer supported, the test script for make builds is no longer required. Uses of make in other tool scripts are replaced. Signed-off-by: Ciara Power --- MAINTAINERS| 1 - devtools/build-tags.sh | 14 +- devtools/check-includes.sh | 3 +- devtools/git-log-fixes

[dpdk-dev] [PATCH v3 12/37] examples: remove old build system references

2020-09-03 Thread Ciara Power
Remove the references to RTE_SDK and RTE_TARGET environment variables from the build instructions in the comments of the various BPF files, and in the ipsec-secgw common definition script. Signed-off-by: Ciara Power Signed-off-by: Bruce Richardson --- examples/bpf/t2.c|

[dpdk-dev] [PATCH v3 11/37] config: remove all config files used by make

2020-09-03 Thread Ciara Power
Make is not supported for compiling DPDK, the config files are no longer needed. Signed-off-by: Ciara Power --- config/common_armv8a_linux| 43 - config/common_base| 1154 - config/common_freebsd | 15 -

[dpdk-dev] [PATCH v3 08/37] examples/ethtool: convert to pkg-config-based build

2020-09-03 Thread Ciara Power
From: Bruce Richardson Remove references to the old DPDK build system from the makefiles, and use pkg-config provided flags instead. Signed-off-by: Bruce Richardson --- examples/ethtool/Makefile | 26 +++ examples/ethtool/ethtool-app/Makefile | 56 +++-

[dpdk-dev] [PATCH v3 09/37] build: create dummy Makefile

2020-09-03 Thread Ciara Power
From: Bruce Richardson This patch modifies the root Makefile to act as a dummy Makefile for when the make support is removed from DPDK in subsequent patches. Signed-off-by: Bruce Richardson --- Makefile | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makef

[dpdk-dev] [PATCH v3 07/37] examples/vm_power_manager: convert guest cli to pkg-config

2020-09-03 Thread Ciara Power
From: Bruce Richardson Convert the makefile for the vm_power_manager/guest_cli utility to build using pkg-config rather than the old build system. Signed-off-by: Bruce Richardson --- examples/vm_power_manager/guest_cli/Makefile | 50 1 file changed, 31 insertions(+), 19 de

  1   2   >