[dpdk-dev] [PATCH v4] net/e1000: add support for check descriptor status APIs

2018-06-28 Thread Wei Zhao
rte_eth_rx_descritpr_status and rte_eth_tx_descriptor_status are supported by igb VF. Signed-off-by: Wei Zhao --- v2: -add release note document info v3: -rebase code and change git log v4: -rebase code --- doc/guides/rel_notes/release_18_08.rst | 4 ++-- drivers/net/e1000/igb_ethdev.c

[dpdk-dev] [PATCH v6] net/fm10k: add support for check descriptor status APIs

2018-06-28 Thread Wei Zhao
rte_eth_rx_descritpr_status and rte_eth_tx_descriptor_status are supported by fm10K. Signed-off-by: Wei Zhao --- v2: -fix DD check error in tx descriptor v3: -fix DD check index error v4: -fix error in RS bit list poll v5: -rebase code to branch and delete useless variable v6: -change relea

[dpdk-dev] [PATCH v2 09/10] kni: add rte_kni_free to KNI vdev driver

2018-06-28 Thread Dan Gora
Add rte_kni_free to the virual KNI device. Signed-off-by: Dan Gora --- drivers/net/kni/rte_eth_kni.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/kni/rte_eth_kni.c b/drivers/net/kni/rte_eth_kni.c index ab63ea427..24c6991e6 100644 --- a/drivers/net/kni/rte

[dpdk-dev] [PATCH v2 08/10] kni: add rte_kni_free to KNI example app

2018-06-28 Thread Dan Gora
Add rte_kni_free to the KNI example application. Signed-off-by: Dan Gora --- examples/kni/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/kni/main.c b/examples/kni/main.c index 4b162debb..75e23cd0f 100644 --- a/examples/kni/main.c +++ b/examples/kni/main.c

[dpdk-dev] [PATCH v2 10/10] kni: add API to set link status on kernel interface

2018-06-28 Thread Dan Gora
Add a new API function to KNI, rte_kni_update_link() to allow DPDK applications to update the link state for the KNI network interfaces in the linux kernel. Note that the default carrier state is set to off when the interface is opened. Signed-off-by: Dan Gora --- kernel/linux/kni/kni_misc.c

[dpdk-dev] [PATCH v2 07/10] kni: update kni test for rte_kni_free

2018-06-28 Thread Dan Gora
Add support for testing rte_kni_free() function. Signed-off-by: Dan Gora --- test/test/test_kni.c | 20 1 file changed, 20 insertions(+) diff --git a/test/test/test_kni.c b/test/test/test_kni.c index 56773c8a2..ec051c07e 100644 --- a/test/test/test_kni.c +++ b/test/test/tes

[dpdk-dev] [PATCH v2 06/10] kni: increase length of timeout for KNI responses

2018-06-28 Thread Dan Gora
Increase the timeout to receive a response for KNI events handled through kni_net_process_request to 10 seconds. Certain actions, such as calling rte_eth_dev_start() can take more than 3 seconds to return, in addition to any additional time needed for the DPDK application to call rte_kni_handle_re

[dpdk-dev] [PATCH v2 05/10] kni: don't run rte_kni_handle_request after interface release

2018-06-28 Thread Dan Gora
Check to ensure that the KNI interface is still in use before accessing the KNI interface FIFOs to kernel space. This will help to ensure that the user does not access the KNI interface after rte_kni_release() has been called. Signed-off-by: Dan Gora --- lib/librte_kni/rte_kni.c | 6 +- lib

[dpdk-dev] [PATCH v2 03/10] kni: don't touch struct kni_dev after freeing

2018-06-28 Thread Dan Gora
Since the struct kni_dev is allocated as part of the netdev with alloc_netdev, when free_netdev is called, this also frees the struct kni_dev embedded in it. This means that we cannot touch struct kni_dev after calling free_netdev since that memory was already deallocated. Separate unregistering

[dpdk-dev] [PATCH v2 04/10] kni: add rte_kni_free to KNI library

2018-06-28 Thread Dan Gora
Add the new rte_kni_free() API function to the KNI library. This function will be called by DPDK applications after rte_kni_release() to free the KNI interface resources from the kernel driver. Signed-off-by: Dan Gora --- lib/librte_kni/rte_kni.c | 32 +--- lib/librt

[dpdk-dev] [PATCH v2 02/10] kni: separate releasing netdev from freeing KNI interface

2018-06-28 Thread Dan Gora
Currently the rte_kni kernel driver suffers from a problem where when the interface is released, it generates a callback to the DPDK application to change the interface state to Down. However, after the DPDK application handles the callback and generates a response back to the kernel, the rte_kni

[dpdk-dev] [PATCH v2 01/10] kni: remove unused variables from struct kni_dev

2018-06-28 Thread Dan Gora
Remove the unused fields 'status' and 'synchro' from the struct kni_dev. Signed-off-by: Dan Gora --- kernel/linux/kni/kni_dev.h | 4 1 file changed, 4 deletions(-) diff --git a/kernel/linux/kni/kni_dev.h b/kernel/linux/kni/kni_dev.h index 6275ef27f..ed42989cc 100644 --- a/kernel/linux/kni/

[dpdk-dev] [PATCH 00/10] kni: Interface detach and link status fixes.

2018-06-28 Thread Dan Gora
Hi All, The following patches are to fix a problem with detaching a KNI interface using rte_kni_release and to add a new API function to allow users to change the link status (up/down, speed, etc) of the interface in the linux kernel. In previous versions, it was impossible to release a KNI inter

Re: [dpdk-dev] [PATCH v4] net/fm10k: add support for check descriptor status APIs

2018-06-28 Thread Zhao1, Wei
> -Original Message- > From: Zhang, Qi Z > Sent: Wednesday, June 27, 2018 8:50 PM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: RE: [PATCH v4] net/fm10k: add support for check descriptor status > APIs > > > > > diff --git a/doc/guides/rel_notes/release_18_08.rst > > > > b

Re: [dpdk-dev] [PATCH v7 04/19] ethdev: introduce device lock

2018-06-28 Thread Zhang, Qi Z
From: Andrew Rybchenko [mailto:arybche...@solarflare.com] Sent: Friday, June 29, 2018 12:47 AM To: Zhang, Qi Z ; tho...@monjalon.net; Burakov, Anatoly Cc: Ananyev, Konstantin ; dev@dpdk.org; Richardson, Bruce ; Yigit, Ferruh ; Shelton, Benjamin H ; Vangati, Narender Subject: Re: [dpdk-dev]

Re: [dpdk-dev] [RFC] ethdev: remove all offload API

2018-06-28 Thread Thomas Monjalon
09/06/2018 00:41, Ferruh Yigit: > Cc: Shahaf Shuler > > Signed-off-by: Ferruh Yigit I start working on it. This is the list of remaining work on this patch: - rebase - add commit message (and fix title) - check git grep ETH_TXQ_FLAGS_NO - check git grep txq_flags

Re: [dpdk-dev] [PATCH v7 03/19] ethdev: enable hotplug on multi-process

2018-06-28 Thread Zhang, Qi Z
From: Andrew Rybchenko [mailto:arybche...@solarflare.com] Sent: Friday, June 29, 2018 12:33 AM To: Zhang, Qi Z ; tho...@monjalon.net; Burakov, Anatoly Cc: Ananyev, Konstantin ; dev@dpdk.org; Richardson, Bruce ; Yigit, Ferruh ; Shelton, Benjamin H ; Vangati, Narender Subject: Re: [dpdk-dev]

[dpdk-dev] 17.05 --> 17.11, minimum hash table key size

2018-06-28 Thread Yeddula, Avinash
Hello, We are in process of migrating our design from DPDK 17.05 to 17.11 and we ran into a small problem. Within our design, we have some hash tables with 4-byte keys. While going through the changes done in 17.11, we have found there was an added key_size check, which now requires key_size >=

Re: [dpdk-dev] [dpdk-stable] [PATCH] ipc: fix locking while sending messages

2018-06-28 Thread Thomas Monjalon
27/06/2018 14:25, Zhang, Qi Z: > From: Burakov, Anatoly > > > > Previously, we were putting an exclusive lock to prevent secondary processes > > spinning up while we are sending our messages. However, using exclusive > > locks had an effect of disallowing multiple simultaenous unrelated > > messag

Re: [dpdk-dev] [PATCH v7 01/19] ethdev: add function to release port in local process

2018-06-28 Thread Zhang, Qi Z
From: Andrew Rybchenko [mailto:arybche...@solarflare.com] Sent: Thursday, June 28, 2018 10:34 PM To: Zhang, Qi Z ; tho...@monjalon.net; Burakov, Anatoly Cc: Ananyev, Konstantin ; dev@dpdk.org; Richardson, Bruce ; Yigit, Ferruh ; Shelton, Benjamin H ; Vangati, Narender Subject: Re: [dpdk-dev

Re: [dpdk-dev] [PATCH] examples: fix RSS hash function configuration

2018-06-28 Thread Thomas Monjalon
20/06/2018 19:15, Ferruh Yigit: > On 6/20/2018 6:07 PM, Dan Gora wrote: > > Hi Ferruh, > > > > The documentation for rte_eth_dev_configure() should get updated as > > well to document this requirement to strip the unsupported RSS hash > > function bits. The current documentation only refers to th

Re: [dpdk-dev] [PATCH v2] ethdev: add new offload flag to keep CRC

2018-06-28 Thread Thomas Monjalon
21/06/2018 15:14, Ferruh Yigit: > --- a/lib/librte_ethdev/rte_ethdev.h > +++ b/lib/librte_ethdev/rte_ethdev.h > @@ -939,6 +939,11 @@ struct rte_eth_conf { > #define DEV_RX_OFFLOAD_SCATTER 0x2000 > #define DEV_RX_OFFLOAD_TIMESTAMP 0x4000 > #define DEV_RX_OFFLOAD_SECURITY

[dpdk-dev] [PATCH] kni: Fix kni_autotest for new Rx/Tx offloads API

2018-06-28 Thread Dan Gora
Fixed a bug where kni_autotest would not start due to the lack of the ETH_TXQ_FLAGS_IGNORE flag being set in the rte_eth_txconf structure passed to rte_eth_tx_queue_setup. This was introduced in commit 4b954bb16747 ("ethdev: remove new to old offloads API helpers") Signed-off-by: Dan Gora --- t

[dpdk-dev] [PATCH 1/1] kni: fix segfault in rte_kni_get

2018-06-28 Thread Dan Gora
Fix a segmentation fault which occurs when the kni_autotest is run in the 'test' application. This segmenation fault occurs when rte_kni_get() is called with a NULL value for 'name'. Fixes: 0c6bc8ef70ba ("kni: memzone pool for alloc and release") Cc: marc.s...@bisdn.de Signed-off-by: Dan Gora -

[dpdk-dev] [PATCH 0/1] kni: fix segfault in rte_kni_get

2018-06-28 Thread Dan Gora
Fix a segmentation fault which occurs when the kni_autotest is run in the 'test' application. This segmenation fault occurs whe rte_kni_get is called with a NULL value for 'name'. Here is how the segfault was reproduced: [root]# insmod /home/dg/dpdk/latest/x86_64-native-linuxapp-gcc/build/kerne

[dpdk-dev] [PATCH 10/10] kni: add API to set link status on kernel interface

2018-06-28 Thread Dan Gora
Add a new API function to KNI, rte_kni_update_link() to allow DPDK applications to update the link state for the KNI network interfaces in the linux kernel. Note that the default carrier state is set to off when the interface is opened. Signed-off-by: Dan Gora --- kernel/linux/kni/kni_misc.c

[dpdk-dev] [PATCH 09/10] kni: add rte_kni_free to KNI vdev driver

2018-06-28 Thread Dan Gora
Add rte_kni_free to the virual KNI device. Signed-off-by: Dan Gora --- drivers/net/kni/rte_eth_kni.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/kni/rte_eth_kni.c b/drivers/net/kni/rte_eth_kni.c index ab63ea427..24c6991e6 100644 --- a/drivers/net/kni/rte

[dpdk-dev] [PATCH 08/10] kni: add rte_kni_free to KNI example app

2018-06-28 Thread Dan Gora
Add rte_kni_free to the KNI example application. Signed-off-by: Dan Gora --- examples/kni/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/kni/main.c b/examples/kni/main.c index 4b162debb..75e23cd0f 100644 --- a/examples/kni/main.c +++ b/examples/kni/main.c

[dpdk-dev] [PATCH 07/10] kni: update kni test for rte_kni_free

2018-06-28 Thread Dan Gora
Add support for testing rte_kni_free() function. Signed-off-by: Dan Gora --- test/test/test_kni.c | 20 1 file changed, 20 insertions(+) diff --git a/test/test/test_kni.c b/test/test/test_kni.c index 56773c8a2..ec051c07e 100644 --- a/test/test/test_kni.c +++ b/test/test/tes

[dpdk-dev] [PATCH 05/10] kni: don't run rte_kni_handle_request after interface release

2018-06-28 Thread Dan Gora
Check to ensure that the KNI interface is still in use before accessing the KNI interface FIFOs to kernel space. This will help to ensure that the user does not access the KNI interface after rte_kni_release() has been called. Signed-off-by: Dan Gora --- lib/librte_kni/rte_kni.c | 6 +- lib

[dpdk-dev] [PATCH 06/10] kni: increase length of timeout for KNI responses

2018-06-28 Thread Dan Gora
Increase the timeout to receive a response for KNI events handled through kni_net_process_request to 10 seconds. Certain actions, such as calling rte_eth_dev_start() can take more than 3 seconds to return, in addition to any additional time needed for the DPDK application to call rte_kni_handle_re

[dpdk-dev] [PATCH 04/10] kni: add rte_kni_free to KNI library

2018-06-28 Thread Dan Gora
Add the new rte_kni_free() API function to the KNI library. This function will be called by DPDK applications after rte_kni_release() to free the KNI interface resources from the kernel driver. Signed-off-by: Dan Gora --- lib/librte_kni/rte_kni.c | 32 +--- lib/librt

[dpdk-dev] [PATCH 03/10] kni: don't touch struct kni_dev after freeing

2018-06-28 Thread Dan Gora
Since the struct kni_dev is allocated as part of the netdev with alloc_netdev, when free_netdev is called, this also frees the struct kni_dev embedded in it. This means that we cannot touch struct kni_dev after calling free_netdev since that memory was already deallocated. Separate unregistering

[dpdk-dev] [PATCH 02/10] kni: separate releasing netdev from freeing KNI interface

2018-06-28 Thread Dan Gora
Currently the rte_kni kernel driver suffers from a problem where when the interface is released, it generates a callback to the DPDK application to change the interface state to Down. However, after the DPDK application handles the callback and generates a response back to the kernel, the rte_kni

[dpdk-dev] [PATCH 01/10] kni: remove unused variables from struct kni_dev

2018-06-28 Thread Dan Gora
Remove the unused fields 'status' and 'synchro' from the struct kni_dev. Signed-off-by: Dan Gora --- kernel/linux/kni/kni_dev.h | 4 1 file changed, 4 deletions(-) diff --git a/kernel/linux/kni/kni_dev.h b/kernel/linux/kni/kni_dev.h index 6275ef27f..ed42989cc 100644 --- a/kernel/linux/kni/

[dpdk-dev] [PATCH 00/10] kni: Interface detach and link status fixes.

2018-06-28 Thread Dan Gora
Hi All, The following patches are to fix a problem with detaching a KNI interface using rte_kni_release and to add a new API function to allow users to change the link status (up/down, speed, etc) of the interface in the linux kernel. In previous versions, it was impossible to release a KNI inter

[dpdk-dev] [PATCH v2 23/23] net/bnxt: use correct flags during VLAN configuration

2018-06-28 Thread Ajit Khaparde
From: Somnath Kotur Setting of VLAN filter cmd was being done with incorrect flag value. We need to use inner vlan fields instead of outer vlan. Fixes: 7fe5668d2ea3 ("net/bnxt: support VLAN filter and strip") Cc: sta...@dpdk.org Signed-off-by: Somnath Kotur Signed-off-by: Ajit Khaparde --- d

Re: [dpdk-dev] [PATCH 05/31] net/bnxt: fix dev close operation

2018-06-28 Thread Ajit Khaparde
> > > + PMD_DRV_LOG(INFO, "Calling Device uninit\n"); > > This looks like can be a debug message, what do you think? > ​Yes. Changed it to debug. ​ > > <...> > > > @@ -3456,7 +3469,7 @@ static int bnxt_pci_remove(struct rte_pci_device > *pci_dev) > > static struct rte_pci_driver bnxt_rte_pmd

[dpdk-dev] [PATCH v2 22/23] net/bnxt: fix Rx ring count limitation

2018-06-28 Thread Ajit Khaparde
Fixed size of fw_grp_ids in VNIC is limiting the number of Rx rings being created. With this patch we are allocating fw_grp_ids dynamically, allowing us to get over this artificial limit. Fixes: 9738793f28ec ("net/bnxt: add VNIC functions and structs") Cc: sta...@dpdk.org Signed-off-by: Ajit Khap

[dpdk-dev] [PATCH v2 20/23] net/bnxt: fix to move a flow to a different queue

2018-06-28 Thread Ajit Khaparde
From: Somnath Kotur While moving a flow to a different destination queue, the l2_filter_id being passed to the FW command was incorrect. Fix it by re-using the matching filter's l2_filter_id since that is supposed to be the same in this case. Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter o

[dpdk-dev] [PATCH v2 21/23] net/bnxt: check VF resources if resource manager is enabled

2018-06-28 Thread Ajit Khaparde
If HWRM resource manager is enabled, check VF resources before proceeding. Make sure there are enough resources allocated and return an error in case of insufficient error. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt.h| 5 drivers/net/bnxt/bnxt_ethdev.c | 21 ++--

[dpdk-dev] [PATCH v2 15/23] net/bnxt: revert reset of L2 filter id

2018-06-28 Thread Ajit Khaparde
From: Somnath Kotur The L2 filter id is needed in many scenarios particularly when we are repurposing the same ntuple filter with different destination queues. This patch reverts a commit in which the L2 filter id was being reset in clear_ntuple_filter(). Fixes: 1383434c9089 ("net/bnxt: reset L2

[dpdk-dev] [PATCH v2 16/23] net/bnxt: check filter type before clearing it

2018-06-28 Thread Ajit Khaparde
In bnxt_free_filter_mem(), check the filter type and call the appropriate HWRM command to clear the filter from HW. Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops") Cc: sta...@dpdk.org Signed-off-by: Ajit Khaparde -- v1->v2: add sta...@dpdk.org in Cc. --- drivers/net/bnxt/bnxt_filter.c

[dpdk-dev] [PATCH v2 18/23] net/bnxt: fix incorrect IO address handling in Tx

2018-06-28 Thread Ajit Khaparde
rte_mbuf_data_iova returns a 64-bit address. But we are incorrectly using only 32-bits of that. Use rte_cpu_to_le_64 instead of rte_cpu_to_le_32 Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code") Cc: sta...@dpdk.org Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_txr.c | 4 ++-- 1 fil

[dpdk-dev] [PATCH v2 19/23] net/bnxt: allocate RSS context only if RSS mode is enabled

2018-06-28 Thread Ajit Khaparde
allocate RSS context only if RSS mode is enabled. Signed-off-by: Ajit Khaparde -- v1->v2: fix commit log --- drivers/net/bnxt/bnxt_ethdev.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index

[dpdk-dev] [PATCH v2 09/23] net/bnxt: fix Rx/Tx queue start/stop operations

2018-06-28 Thread Ajit Khaparde
Packets destined to the to-be-stopped queue should not be dropped (neither in HW nor in the driver), so re-program the RSS Table without this queue on stop and add it back to the table on start unless it is a Representor VF. Since 0th entry is used for default ring, use fw_grp_id + 1 to change the

[dpdk-dev] [PATCH v2 17/23] net/bnxt: fix set MTU

2018-06-28 Thread Ajit Khaparde
There is no need to update bnxt_hwrm_vnic_plcmode_cfg if new MTU is not greater than the max data the mbuf can accommodate. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Cc: sta...@dpdk.org Signed-off-by: Ajit Khaparde -- v1->v2: update commit log --- drivers/net/bnxt/bnxt_ethdev.c | 12 +++

[dpdk-dev] [PATCH v2 11/23] net/bnxt: refactor filter/flow

2018-06-28 Thread Ajit Khaparde
In preparation of more rte_flow support it has been decided to separate out filter and flow into their own files. Functionally the same. Signed-off-by: Michael Wildt Signed-off-by: Scott Branden Signed-off-by: Ajit Khaparde -- v1->v2: Fix commit log. --- drivers/net/bnxt/Makefile |1 +

[dpdk-dev] [PATCH v2 13/23] net/bnxt: update HWRM API to v1.9.2.9

2018-06-28 Thread Ajit Khaparde
From: Rob Miller update HWRM API to v1.9.2.9 Signed-off-by: Rob Miller Reviewed-by: Scott Branden Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Randy Schacher Signed-off-by: Rob Miller --- drivers/net/bnxt/hsi_struct_def_dpdk.h | 113 - 1 file changed, 111 i

[dpdk-dev] [PATCH v2 14/23] net/bnxt: fix Tx with multiple mbuf

2018-06-28 Thread Ajit Khaparde
From: Xiaoxin Peng When using multi-mbuf to xmit large packets, we need to use total packet lengths (sum of all segments) to set txbd->flags_type. Packets will not be sent when using tx_pkt->data_len(The first segment of packets). Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code") Cc: sta...@

[dpdk-dev] [PATCH v2 08/23] net/bnxt: add support for VF id 0xd800

2018-06-28 Thread Ajit Khaparde
Add support for StingRay VF device 0xd800 Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 15dab10bb..0bb3f29d9 100644 --- a/drivers/net/bn

[dpdk-dev] [PATCH v2 07/23] net/bnxt: fix HW Tx checksum offload check

2018-06-28 Thread Ajit Khaparde
Add more checks for checksum calculation offload. Also check for tunnel frames and select the proper buffer descriptor size. Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code") Cc: sta...@dpdk.org Signed-off-by: Xiaoxin Peng Signed-off-by: Ajit Khaparde Reviewed-by: Jason He Reviewed-by: Qin

[dpdk-dev] [PATCH v2 12/23] net/bnxt: check for invalid vnic id

2018-06-28 Thread Ajit Khaparde
From: Jay Ding Passing an invalid fw_vnic_id to the firmware will cause the bnxt_hwrm_vnic_plcmode_cfg command to fail. Add a check for VNIC id before sending message to firmware. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Cc: sta...@dpdk.org Signed-off-by: Jay Ding Reviewed-by: Randy S

[dpdk-dev] [PATCH v2 10/23] net/bnxt: move function check zero bytes to bnxt util.h

2018-06-28 Thread Ajit Khaparde
From: Scott Branden Move check_zero_bytes into new bnxt_util.h file. Signed-off-by: Scott Branden Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/Makefile | 1 + drivers/net/bnxt/bnxt_ethdev.c | 1 + drivers/net/bnxt/bnxt_filter.c | 9 - drivers/net/bnxt/bnxt_filter.h | 1 -

[dpdk-dev] [PATCH v2 00/23] bnxt patchset

2018-06-28 Thread Ajit Khaparde
Patchset against dpdk-next-net. Please apply. v1->v2: Takes care of the various comments made in the previous version. I am dropping the style changes for now. I will send them later after addressing the coding convention issues. Ajit Khaparde (16): net/bnxt: fix clear port stats net/bnxt: a

[dpdk-dev] [PATCH v2 06/23] net/bnxt: set ring coalesce parameters for Stratus NIC

2018-06-28 Thread Ajit Khaparde
Set ring coalesce parameters for Stratus NIC. Other skews don't necessarily need this. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt.h| 19 drivers/net/bnxt/bnxt_ethdev.c | 11 + drivers/net/bnxt/bnxt_hwrm.c | 51 +++

[dpdk-dev] [PATCH v2 05/23] net/bnxt: fix dev close operation

2018-06-28 Thread Ajit Khaparde
We are not cleaning up all the memory and also not unregistering the driver during device close operation. This patch fixes the issue. Fixes: 893074951314 ("net/bnxt: free memory in close operation") Cc: sta...@dpdk.org Signed-off-by: Ajit Khaparde -- v1->v2: Remove incorrectly added RTE_PCI_DRV

[dpdk-dev] [PATCH v2 02/23] net/bnxt: add Tx batching support

2018-06-28 Thread Ajit Khaparde
Batch more than one Tx requests such that only one completion is generarted by the HW. We request a Tx completion for first and last Tx request in the batch. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_cpr.h | 12 ++ drivers/net/bnxt/bnxt_txq.h | 1 + drivers/net/bnxt/bnxt_txr.c

[dpdk-dev] [PATCH v2 04/23] net/bnxt: set MIN/MAX descriptor count fox Tx and Rx Rings

2018-06-28 Thread Ajit Khaparde
Set MIN and MAX descriptor count for TX and RX rings. Signed-off-by: Ajit Khaparde -- v1->v2: fix commit log --- drivers/net/bnxt/bnxt.h| 3 +++ drivers/net/bnxt/bnxt_ethdev.c | 4 2 files changed, 7 insertions(+) diff --git a/drivers/net/bnxt/bnxt.h b/drivers/net/bnxt/bnxt.h index

[dpdk-dev] [PATCH v2 01/23] net/bnxt: fix clear port stats

2018-06-28 Thread Ajit Khaparde
PORT_CLR_STATS is not allowed for VFs, NPAR, MultiHost functions or when SR-IOV is enabled. Don't send the HWRM command in such cases. Fixes: bfb9c2260be2 ("net/bnxt: support xstats get/reset") Cc: sta...@dpdk.org Signed-off-by: Ajit Khaparde -- v1->v2: Fix a checkpatch warning. --- drivers/net

[dpdk-dev] [PATCH v2 03/23] net/bnxt: optimize receive processing code

2018-06-28 Thread Ajit Khaparde
1) Use nb_rx_pkts instead of checking producer indices of Rx and aggregator rings to decide if any Rx completions were processed. 2) Post Rx buffers early in Rx processing instead of waiting for the budgeted burst quota. 3) Ring Rx CQ DB after Rx buffers are posted. Signed-off-by: Ajit Khaparde -

Re: [dpdk-dev] [PATCH 00/31] bnxt patchset

2018-06-28 Thread Ajit Khaparde
On Tue, Jun 26, 2018 at 8:27 AM, Ferruh Yigit wrote: > On 6/19/2018 10:30 PM, Ajit Khaparde wrote: > > Patchset against dpdk-next-net contains bug fixes, > > some code refactoring and style cleanup. > > > > Please apply. > > > > Ajit Khaparde (15): > > net/bnxt: fix clear port stats > > net/b

Re: [dpdk-dev] [PATCH 08/31] net/bnxt: add support for VF id 0xd800

2018-06-28 Thread Ajit Khaparde
On Tue, Jun 26, 2018 at 8:28 AM, Ferruh Yigit wrote: > On 6/19/2018 10:30 PM, Ajit Khaparde wrote: > > Add support for StingRay VF device 0xd800 > > Can you please document new supported device on doc/guides/nics/bnxt.rst > I think we don't need it. ​We are just adding another VF device id. The a

Re: [dpdk-dev] [PATCH 28/31] net/bnxt: fix set MTU

2018-06-28 Thread Ajit Khaparde
On Tue, Jun 26, 2018 at 8:30 AM, Ferruh Yigit wrote: > On 6/19/2018 10:30 PM, Ajit Khaparde wrote: > > There is no need to update hardware configuration if new MTU is > > not greater than the max data the mbuf can accommodate. > > If app sets a smaller MTU won't it expect that HW will drop receiv

Re: [dpdk-dev] [PATCH 24/31] net/bnxt: update HWRM API to v1.9.2.9

2018-06-28 Thread Ajit Khaparde
On Tue, Jun 26, 2018 at 8:30 AM, Ferruh Yigit wrote: > On 6/19/2018 10:30 PM, Ajit Khaparde wrote: > > From: Rob Miller > > > > update HWRM API to v1.9.2.9 > > Does it make sense to update release notes to document this update? > ​Since there are a few more weeks for release, there is a good cha

[dpdk-dev] [Bug 56] crash when freeing memory with no mlx5 device attached

2018-06-28 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=56 Yongseok Koh (ys...@mellanox.com) changed: What|Removed |Added Status|CONFIRMED |RESOLVED CC|

Re: [dpdk-dev] [PATCH v2] doc: update qede management firmware guide

2018-06-28 Thread Ferruh Yigit
On 6/28/2018 1:32 AM, Rasesh Mody wrote: > Fixes: c49a438fce90 ("doc: update qede guide and features") > Fixes: db86fbe54d90 ("doc: update qede PMD NIC guide") > Cc: sta...@dpdk.org > > Signed-off-by: Rasesh Mody Applied to dpdk-next-net/master, thanks.

Re: [dpdk-dev] [PATCH v7 04/19] ethdev: introduce device lock

2018-06-28 Thread Andrew Rybchenko
On 06/28/2018 03:56 PM, Qi Zhang wrote: Introduce API rte_eth_dev_lock and rte_eth_dev_unlock to let application lock or unlock on specific ethdev, a locked device can't be detached, this help applicaiton to prevent unexpected device detaching, especially in multi-process envrionment. I think t

Re: [dpdk-dev] [PATCH v7 03/19] ethdev: enable hotplug on multi-process

2018-06-28 Thread Andrew Rybchenko
On 06/28/2018 03:56 PM, Qi Zhang wrote: We are going to introduce the solution to handle different hotplug cases in multi-process situation, it include below scenario: 1. Attach a share device from primary 2. Detach a share device from primary 3. Attach a share device from secondary 4. Detach a

Re: [dpdk-dev] [PATCH v5] ethdev: add flow API to expand RSS flows

2018-06-28 Thread Adrien Mazarguil
On Thu, Jun 28, 2018 at 06:01:21PM +0200, Nelio Laranjeiro wrote: > Introduce an helper for PMD to expand easily flows items list with RSS > action into multiple flow items lists with priority information. > > For instance a user items list being "eth / end" with rss action types > "ipv4-udp ipv6-

Re: [dpdk-dev] [PATCH 01/14] net/enic: fix receive packet types

2018-06-28 Thread Ferruh Yigit
On 6/28/2018 4:19 AM, John Daley wrote: > From: Hyong Youb Kim > > Fix missing or incorrect packet types discovered by DTS. > - Non-IP inner packets > Set the tunnel flag. > - Inner Ethernet packets > All supported tunnel packets have Ethernet as inner packets. So, set > INNER_L2_ETHER for

Re: [dpdk-dev] [PATCH 09/14] net/enic: support mbuf fast free offload

2018-06-28 Thread Ferruh Yigit
On 6/28/2018 4:19 AM, John Daley wrote: > From: Hyong Youb Kim > > Signed-off-by: Hyong Youb Kim > Reviewed-by: John Daley <...> > @@ -183,7 +183,9 @@ int enic_get_vnic_config(struct enic *enic) >* Default hardware capabilities. enic_dev_init() may add additional >* flags if i

Re: [dpdk-dev] [PATCH 11/14] net/enic: add the simple version of Tx handler

2018-06-28 Thread Ferruh Yigit
On 6/28/2018 4:19 AM, John Daley wrote: > From: Hyong Youb Kim > > Add a much-simplified handler that works when all offloads are > disabled, except mbuf fast free. When compared against the default > handler, under ideal conditions, cycles per packet drop by 60+%. > > By default, the driver tri

Re: [dpdk-dev] [PATCH 06/14] net/enic: add devarg to specify ingress VLAN rewrite mode

2018-06-28 Thread Ferruh Yigit
On 6/28/2018 4:19 AM, John Daley wrote: > From: Hyong Youb Kim > > Add a new devarg "ig-vlan-rewrite" to allow the user to set > non-default rewrite mode. The UCS VIC may add/remove/modify the VLAN > header of an ingress packet depending on the ingress VLAN rewrite > mode. > > By default, the dr

[dpdk-dev] [PATCH v5] ethdev: add flow API to expand RSS flows

2018-06-28 Thread Nelio Laranjeiro
Introduce an helper for PMD to expand easily flows items list with RSS action into multiple flow items lists with priority information. For instance a user items list being "eth / end" with rss action types "ipv4-udp ipv6-udp end" needs to be expanded into three items lists: - eth - eth / ipv4

Re: [dpdk-dev] [PATCH v3 08/11] net/virtio: add in-order Rx/Tx into selection

2018-06-28 Thread Liu, Yong
> -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Thursday, June 28, 2018 11:16 PM > To: Liu, Yong ; Bie, Tiwei > Cc: Wang, Zhihong ; dev@dpdk.org > Subject: Re: [PATCH v3 08/11] net/virtio: add in-order Rx/Tx into > selection > > > > On 06/28/20

Re: [dpdk-dev] [PATCH v3] net/mlx4: support hardware TSO

2018-06-28 Thread Matan Azrad
Hi Moti I started to review it but not finished all :) Please see some comments\questions, I will continue the review again in the next version, after addressing the next comments and Adrien comments. From: Mordechay Haimovsky > + * No TSO SIZE is defined in DPDK, need to figure it

Re: [dpdk-dev] [PATCH v3 11/11] doc: add in-order funciton for virtio device

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: Signed-off-by: Marvin Liu Reviewed-by: Maxime Coquelin Thanks, Maxime

Re: [dpdk-dev] [PATCH v3 10/11] doc: add mrg_rxbuf and in_order parameters for virtio device

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: Virtio vdev parameter mrg_rxbuf and in_order can configure VIRTIO_NET_F_MRG_RXBUF and VIRTIO_F_IN_ORDER feature bits. These feature bits can effect [RT]x path selection. Signed-off-by: Marvin Liu Reviewed-by: Maxime Coquelin Thanks, Maxime

Re: [dpdk-dev] [PATCH v3 09/11] net/virtio: advertise support in-order feature

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: Signed-off-by: Marvin Liu Reviewed-by: Maxime Coquelin Thanks, Maxime

Re: [dpdk-dev] [PATCH v3 08/11] net/virtio: add in-order Rx/Tx into selection

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: After IN_ORDER Rx/Tx paths added, need to update Rx/Tx path selection logic. Rx path select logic: If IN_ORDER is disabled will select normal Rx path. If IN_ORDER is enabled, Rx offload and merge-able are disabled will select simple Rx path. Otherwise

Re: [dpdk-dev] [PATCH v3 07/11] net/virtio: support in-order Rx and Tx

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: IN_ORDER Rx function depends on merge-able feature. Descriptors allocation and free will be done in bulk. Virtio dequeue logic: dequeue_burst_rx(burst mbufs) for (each mbuf b) { if (b need merge) { merge rem

[dpdk-dev] [PATCH v2] crypto/zuc: add dynamic logging

2018-06-28 Thread Jananee Parthasarathy
From: Agalya Babu RadhaKrishnan 1.added new logtype for zuc driver. 2.registered new logtype. 3.ZUC_LOG_ERR and CDEV_LOG_ERR are replaced with new logtype name ZUC_PMD_LOG Signed-off-by: Agalya Babu RadhaKrishnan Reviewed-by: Reshma Pattan Reviewed-by: Pablo de Lara Guarch ---

Re: [dpdk-dev] [PATCH v2 3/4] eal: enable WC during resources mapping

2018-06-28 Thread Ferruh Yigit
On 6/28/2018 2:15 PM, Rafal Kozik wrote: > Write combining (WC) increases NIC performance by making better > utilization of PCI bus, but cannot be used by all PMDs. > > It will be enabled only if RTE_PCI_DRV_WC_ACTIVATE will be set in > drivers flags. For proper work also igb_uio driver must be lo

Re: [dpdk-dev] [PATCH v3 06/11] net/virtio: extract common part for in-order functions

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: IN_ORDER virtio-user Tx function support Tx checksum offloading and TSO which also support on normal Tx function. So extracts common part into separated function for reuse. Signed-off-by: Marvin Liu Reviewed-by: Maxime Coquelin Thanks, Maxime

[dpdk-dev] [PATCH v2] crypto/aesni_gcm: add dynamic logging

2018-06-28 Thread Naga Suresh Somarowthu
From: Chaitanya Babu Talluri 1.added new logtype for aesni_gcm driver. 2.registered new logtype. 3.GCM_LOG_ERR and CDEV_LOG_ERR are replaced with new logtype name AESNI_GCM_PMD_LOG. Signed-off-by: Chaitanya Babu Talluri Reviewed-by: Reshma Pattan Reviewed-by: Pablo de Lara Guarch --- v2:

Re: [dpdk-dev] [PATCH v3 05/11] net/virtio: free in-order descriptors before device start

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: Add new function for freeing IN_ORDER descriptors. As descriptors will be allocated and freed sequentially when IN_ORDER feature was negotiated. There will be no need to utilize chain for freed descriptors management, only index update is enough. Sign

Re: [dpdk-dev] [PATCH v3 04/11] net/virtio-user: add mrg_rxbuf and in_order vdev parameters

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: Add parameters for configuring VIRTIO_NET_F_MRG_RXBUF and VIRTIO_F_IN_ORDER feature bits. If feature is disabled, also update corresponding unsupported feature bit. Signed-off-by: Marvin Liu Reviewed-by: Maxime Coquelin Thanks, Maxime

Re: [dpdk-dev] [PATCH v3 03/11] net/virtio-user: add unsupported features mask

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: This patch introduces unsupported features mask for virtio-user device. For virtio-user server mode, when reconnecting virtio-user will retrieve vhost device features as base and then unmask unsupported features. Signed-off-by: Marvin Liu Reviewed

Re: [dpdk-dev] [PATCH v7 01/19] ethdev: add function to release port in local process

2018-06-28 Thread Andrew Rybchenko
On 06/28/2018 03:56 PM, Qi Zhang wrote: Add driver API rte_eth_release_port_private to support the requirement that an ethdev only be released on secondary process, so only local state be set to unused , share data will not be Extra space before comma above. reset so primary process can still

Re: [dpdk-dev] [PATCH v3 02/11] net/virtio: add in-order feature bit definition

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: If VIRTIO_F_IN_ORDER has been negotiated, driver will use descriptors in ring order: starting from offset 0 in the table, and wrapping around at the end of the table. Also introduce use_inorder_[rt]x flag for selection of IN_ORDER [RT]x handlers. Sign

Re: [dpdk-dev] [PATCH v3 01/11] vhost: advertise support in-order feature

2018-06-28 Thread Maxime Coquelin
On 06/28/2018 11:52 PM, Marvin Liu wrote: If devices always use descriptors in the same order in which they have been made available. These devices can offer the VIRTIO_F_IN_ORDER feature. If negotiated, this knowledge allows devices to notify the use of a batch of buffers to virtio driver by

Re: [dpdk-dev] [PATCH v2 1/4] igb_uio: add wc option

2018-06-28 Thread Ferruh Yigit
On 6/28/2018 2:15 PM, Rafal Kozik wrote: > Write combining (WC) increases NIC performance by making better > utilization of PCI bus, but cannot be use by all PMDs. > > To get internal_addr memory need to be mapped. But as memory could not be > mapped twice: with and without WC, it should be skippe

Re: [dpdk-dev] [PATCH v3] net/mlx4: support hardware TSO

2018-06-28 Thread Adrien Mazarguil
Hi Moti, On Thu, Jun 28, 2018 at 03:48:57PM +0300, Moti Haimovsky wrote: > Implement support for hardware TSO. > > Signed-off-by: Moti Haimovsky I only glanced at the code but overall TSO logic appears to be sound; assuming it went through non-regression I think it's OK. Please see below for a

Re: [dpdk-dev] [PATCH v3 16/16] cryptodev: check if symmetric sessions are supported

2018-06-28 Thread De Lara Guarch, Pablo
Hi Shally, > -Original Message- > From: Verma, Shally [mailto:shally.ve...@cavium.com] > Sent: Thursday, June 28, 2018 2:40 PM > To: De Lara Guarch, Pablo ; Doherty, Declan > ; akhil.go...@nxp.com; ravi1.ku...@amd.com; > Jacob, Jerin ; Zhang, Roy Fan > ; Trahe, Fiona ; > t...@semihalf.com;

Re: [dpdk-dev] [PATCH v2 7/8] net/virtio: add IN_ORDER Rx/Tx into selection

2018-06-28 Thread Liu, Yong
> -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Wednesday, June 27, 2018 4:20 PM > To: Liu, Yong ; Bie, Tiwei > Cc: Wang, Zhihong ; dev@dpdk.org > Subject: Re: [PATCH v2 7/8] net/virtio: add IN_ORDER Rx/Tx into selection > > > > On 06/25/2018 0

[dpdk-dev] [PATCH v3 11/11] doc: add in-order funciton for virtio device

2018-06-28 Thread Marvin Liu
Signed-off-by: Marvin Liu diff --git a/doc/guides/nics/virtio.rst b/doc/guides/nics/virtio.rst index 46e292c4d..1b88cec96 100644 --- a/doc/guides/nics/virtio.rst +++ b/doc/guides/nics/virtio.rst @@ -201,7 +201,7 @@ The packet transmission flow is: Virtio PMD Rx/Tx Callbacks

[dpdk-dev] [PATCH v3 10/11] doc: add mrg_rxbuf and in_order parameters for virtio device

2018-06-28 Thread Marvin Liu
Virtio vdev parameter mrg_rxbuf and in_order can configure VIRTIO_NET_F_MRG_RXBUF and VIRTIO_F_IN_ORDER feature bits. These feature bits can effect [RT]x path selection. Signed-off-by: Marvin Liu diff --git a/doc/guides/nics/virtio.rst b/doc/guides/nics/virtio.rst index a42d1bb30..46e292c4d 1006

[dpdk-dev] [PATCH v3 09/11] net/virtio: advertise support in-order feature

2018-06-28 Thread Marvin Liu
Signed-off-by: Marvin Liu diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index 8ab1267b0..69da18d9c 100644 --- a/drivers/net/virtio/virtio_ethdev.h +++ b/drivers/net/virtio/virtio_ethdev.h @@ -36,6 +36,7 @@ 1ULL << VIRTIO_NET_F_GUEST_ANNOUNCE | \

[dpdk-dev] [PATCH v3 08/11] net/virtio: add in-order Rx/Tx into selection

2018-06-28 Thread Marvin Liu
After IN_ORDER Rx/Tx paths added, need to update Rx/Tx path selection logic. Rx path select logic: If IN_ORDER is disabled will select normal Rx path. If IN_ORDER is enabled, Rx offload and merge-able are disabled will select simple Rx path. Otherwise will select IN_ORDER Rx path. Tx path select

  1   2   3   >