[dpdk-dev] [git pull] virtio changes for 17.11-rc1

2017-10-05 Thread Yuanhan Liu
Hi Thomas, Please consider pulling following virtio changes for 17.11-rc1 at git://dpdk.org/next/dpdk-next-virtiomaster Thanks. --yliu --- Daniel Mrzyglod (1): net/virtio: fix of untrusted scalar value Jay Zhou (1): net/virtio: fix a typo Maxime Coquelin (19):

Re: [dpdk-dev] [PATCH 03/10] net/virtio: fix compilation with -Og

2017-10-05 Thread Maxime Coquelin
On 09/11/2017 05:13 PM, Olivier Matz wrote: The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following error: CC virtio_rxtx.o virtio_rxtx.c: In function ‘virtio_rx_offload’: virtio_rxtx.c:680:10: error: ‘csum’ may be used uninitialized in this fu

Re: [dpdk-dev] [PATCH v3 2/4] net/mrvl: add mrvl net pmd driver

2017-10-05 Thread Tomasz Duszynski
On Thu, Oct 05, 2017 at 06:29:12PM +0100, Ferruh Yigit wrote: > On 10/5/2017 9:43 AM, Tomasz Duszynski wrote: > > On Wed, Oct 04, 2017 at 05:59:11PM +0100, Ferruh Yigit wrote: > >> On 10/4/2017 9:59 AM, Tomasz Duszynski wrote: > >>> On Wed, Oct 04, 2017 at 01:24:27AM +0100, Ferruh Yigit wrote: > >>

Re: [dpdk-dev] [PATCH v3] vhost: Expose virtio interrupt need on rte_vhost API

2017-10-05 Thread Yuanhan Liu
On Sat, Sep 23, 2017 at 08:31:37PM +, Jan Scheurich wrote: ... > +int rte_vhost_tx_interrupt_requested(int vid, uint16_t qid) > +{ > + struct virtio_net *dev; > + struct vhost_virtqueue *vq; > + > + dev = get_device(vid); > + if (dev == NULL) > + return 0; > + > +

Re: [dpdk-dev] [PATCH] virtio: use pointer to replace memcpy

2017-10-05 Thread Yuanhan Liu
On Thu, Oct 05, 2017 at 09:31:25AM +, Zhang, Roy Fan wrote: > > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Zhiyong Yang > > Sent: Friday, August 11, 2017 3:13 AM > > To: dev@dpdk.org > > Cc: maxime.coque...@redhat.com; y...@fridaylinux.org; Yang, Z

Re: [dpdk-dev] [PATCH] net/virtio: fix a typo

2017-10-05 Thread Yuanhan Liu
On Mon, Sep 04, 2017 at 01:26:00PM +, Rybalchenko, Kirill wrote: > > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jay Zhou > > Sent: Tuesday 22 August 2017 03:35 > > To: dev@dpdk.org; y...@fridaylinux.org; maxime.coque...@redhat.com > > Cc: weidong.h

Re: [dpdk-dev] [PATCH v3 00/19] Vhost-user: Implement device IOTLB support

2017-10-05 Thread Yuanhan Liu
Series applied to dpdk-next-virtio. Thanks. --yliu On Thu, Oct 05, 2017 at 10:36:08AM +0200, Maxime Coquelin wrote: > This v3 lists the feature in the release note, and fixes the bug in > is_vring_iotlb_update() reported by Yuanhan. > > The purpose of this series is to add support for >

Re: [dpdk-dev] [PATCH v2 30/30] net/mlx5: add new operations for isolated mode

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:50:02PM +0200, Nelio Laranjeiro wrote: > Isolated works exclusively with the generic flow API, this patch adds a new > set of operations valid in this mode. > > - promiscuous*() > - allmulticast*() > - reta*() > - rss*() > > are not supported in this mode as it is f

Re: [dpdk-dev] [PATCH v2 29/30] net/mlx5: support flow director

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:50:01PM +0200, Nelio Laranjeiro wrote: > Support same functionalities as in > commit cf521eaa3c76 ("net/mlx5: remove flow director support") > > This implementation is done on top of the generic flow API. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh

Re: [dpdk-dev] [PATCH v2 27/30] net/mlx5: move Verbs flows and attributes

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:59PM +0200, Nelio Laranjeiro wrote: > Moves ibv_attr containing the specification of the flow from Verbs point of > view also with the verbs flow itself near the related verbs objects making > the flow. > > This is also a preparation to handle correctly the RSS hash c

Re: [dpdk-dev] [PATCH v2 26/30] net/mlx5: reorganise functions in the file

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:58PM +0200, Nelio Laranjeiro wrote: > Move mlx5_flow_validate/create/flush/isolate() to the end of the file. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh   Thanks

Re: [dpdk-dev] [PATCH v2 25/30] net/mlx5: use a better name for the flow parser

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:57PM +0200, Nelio Laranjeiro wrote: > struct mlx5_flow_parse was commonly used with the name "flow" confusing > sometimes the development. The variable name is replaced by parser to > reflect its use. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh

Re: [dpdk-dev] [PATCH v2 24/30] net/mlx5: merge internal parser and actions structures

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:56PM +0200, Nelio Laranjeiro wrote: > struct mlx5_flow_parse now embed fields from struct mlx5_flow_action. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh   Thanks

Re: [dpdk-dev] [PATCH v2 23/30] net/mlx5: process flows actions before of items

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:55PM +0200, Nelio Laranjeiro wrote: > In case the pattern contains an RSS actions, the RSS configuration to use > is the one provided by the user. To make the correct conversion from DPDK > RSS hash fields to Verbs ones according to the users requests the actions > mu

Re: [dpdk-dev] [PATCH v2 22/30] net/mlx5: fully convert a flow to verbs in validate

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:54PM +0200, Nelio Laranjeiro wrote: > Validation of flows is only making few verifications on the pattern, in > some situation the validate action could end by with success whereas the > pattern could not be converted correctly. > > This brings this conversion verific

Re: [dpdk-dev] [PATCH v2 21/30] net/mlx5: remove hash Rx queues support

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:53PM +0200, Nelio Laranjeiro wrote: > From this commit the RSS support becomes un-available until it is replaced > by the generic flow implementation. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh   Thanks

Re: [dpdk-dev] [PATCH v2 20/30] net/mlx5: handle a single RSS hash key for all protocols

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:52PM +0200, Nelio Laranjeiro wrote: > Since RSS configuration can also be used by flow API, there is no more > necessity to keep a list of RSS configurable for each protocol. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh   Thanks

Re: [dpdk-dev] [PATCH v2 19/30] net/mlx5: use flow to enable unicast traffic

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:51PM +0200, Nelio Laranjeiro wrote: [...] > -int > -mlx5_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on) > -{ > - struct priv *priv = dev->data->dev_private; > - int ret; > - > - priv_lock(priv); > - ret = vlan_filter_set(dev, vlan_id

Re: [dpdk-dev] [PATCH v2 18/30] net/mlx5: use flow to enable all multi mode

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:50PM +0200, Nelio Laranjeiro wrote: > RSS hash configuration is currently ignored by the PMD, this commits > removes the RSS feature on promiscuous mode. A mistake? "promiscuous" -> "all multi" > > This functionality will be added in a later commit. > > Signed-off-by

Re: [dpdk-dev] [PATCH v2 17/30] net/mlx5: use flow to enable promiscuous mode

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:49PM +0200, Nelio Laranjeiro wrote: > @@ -1630,3 +1646,90 @@ priv_flow_verify(struct priv *priv) > } > return ret; > } > + > +/** > + * Enable/disable a flow control configured from the control plane. "flow control" -> "control flow" Acked-by: Yongseok Ko

Re: [dpdk-dev] [PATCH v2 16/30] net/mlx5: fix clang compilation error

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:48PM +0200, Nelio Laranjeiro wrote: > drivers/net/mlx5/mlx5_rxq.c:606:6: error: comparison of constant 4 > with expression of type 'enum hash_rxq_flow_type' is always true > [-Werror,-Wtautological-constant-out-of-range-compare] > i

Re: [dpdk-dev] [PATCH v2 15/30] net/mlx5: add Hash Rx queue object

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:47PM +0200, Nelio Laranjeiro wrote: [...] > +struct mlx5_hrxq* > +mlx5_priv_hrxq_get(struct priv *priv, uint8_t *rss_key, uint8_t rss_key_len, > +uint64_t hash_fields, uint16_t queues[], uint16_t queues_n) > +{ > + struct mlx5_hrxq *hrxq; > + > +

Re: [dpdk-dev] [PATCH v2 14/30] net/mlx5: make indirection tables shareable

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:46PM +0200, Nelio Laranjeiro wrote: > Indirection table in verbs side resides in a list of final work queues to > spread the packets according to an higher level queue. This indirection > table can be shared among the hash Rx queues which points to them. > > Signed-o

Re: [dpdk-dev] [PATCH v2 13/30] net/mlx5: add reference counter on DPDK Rx queues

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:45PM +0200, Nelio Laranjeiro wrote: > Use the same design for DPDK queue as for Verbs queue for symmetry, this > also helps in fixing some issues like the DPDK release queue API which is > not expected to fail. With such design, the queue is released when the > refere

Re: [dpdk-dev] [PATCH v2 12/30] net/mlx5: add reference counter on DPDK Tx queues

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:44PM +0200, Nelio Laranjeiro wrote: > Use the same design for DPDK queue as for Verbs queue for symmetry, this > also helps in fixing some issues like the DPDK release queue API which is > not expected to fail. With such design, the queue is released when the > refere

Re: [dpdk-dev] [PATCH v2 11/30] net/mlx5: separate DPDK from Verbs Tx queue objects

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:43PM +0200, Nelio Laranjeiro wrote: > Move verbs object to their own functions to allocate/release them > independently from the DPDK queue. At the same time a reference counter is > added to help in issues detections when the queue is being release but > still in use

Re: [dpdk-dev] [PATCH v5 2/2] ethdev: get the supported pool for a port

2017-10-05 Thread santosh
On Friday 06 October 2017 06:00 AM, Thomas Monjalon wrote: > 01/10/2017 11:14, Santosh Shukla: >> --- a/lib/librte_ether/rte_ethdev_version.map >> +++ b/lib/librte_ether/rte_ethdev_version.map >> @@ -192,5 +192,6 @@ DPDK_17.11 { >> global: >> >> rte_eth_dev_reset; >> + rte_

Re: [dpdk-dev] [PATCH v5 1/2] eal: allow user to override default pool handle

2017-10-05 Thread santosh
On Friday 06 October 2017 05:59 AM, Thomas Monjalon wrote: > 01/10/2017 11:14, Santosh Shukla: >> --- a/lib/librte_eal/common/eal_common_options.c >> +++ b/lib/librte_eal/common/eal_common_options.c >> @@ -98,6 +98,7 @@ eal_long_options[] = { >> {OPT_VFIO_INTR, 1, NULL, OPT_VFIO_INTR_

Re: [dpdk-dev] [PATCH v2 10/30] net/mlx5: separate DPDK from Verbs Rx queue objects

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:42PM +0200, Nelio Laranjeiro wrote: [...] > +struct mlx5_rxq_ibv* > +mlx5_priv_rxq_ibv_get(struct priv *priv, uint16_t idx) > +{ > + struct mlx5_rxq_data *rxq_data = (*priv->rxqs)[idx]; > + struct mlx5_rxq_ctrl *rxq_ctrl; > + > + if (idx >= priv->rxqs_n) >

Re: [dpdk-dev] [PATCH v9 6/9] eal: auto detect iova mode

2017-10-05 Thread santosh
On Friday 06 October 2017 05:49 AM, Thomas Monjalon wrote: > 20/09/2017 13:23, Santosh Shukla: >> For auto detection purpose: >> * Below calls moved up in the eal initialization order: >> - eal_option_device_parse >> - rte_bus_scan >> >> Based on the result of rte_bus_scan_iommu_class -

Re: [dpdk-dev] [PATCH v9 3/9] linuxapp/eal_pci: get iommu class

2017-10-05 Thread santosh
On Friday 06 October 2017 05:47 AM, Thomas Monjalon wrote: > 20/09/2017 13:23, Santosh Shukla: >> +/** Device driver supports iova as va */ >> +#define RTE_PCI_DRV_IOVA_AS_VA 0X0040 > This flag name is surprizing and the comment does not help. > For the comment: > "Device driver supports I/O

Re: [dpdk-dev] [PATCH v9 2/9] eal/pci: get iommu class

2017-10-05 Thread santosh
Thomas, You comment is annoying and infuriating both. Patch is their for more than 4month, had enough time for you to comment and understand the topic. Thorough review and testing has happened both. NOTE: You have already delayed this series by one release and I'm guessing that you intent to push

Re: [dpdk-dev] [PATCH v6 0/5] increase port_id range

2017-10-05 Thread Ferruh Yigit
On 9/29/2017 8:17 AM, Zhiyong Yang wrote: > port_id is currently defined as uint8_t, which is limited to the range > 0 to 255. A larger range is required for vdev scalability. > > It is necessary for a redefinition of port_id to extend it from > 1 bytes to 2 bytes. All ethdev APIs and usages relat

Re: [dpdk-dev] [PATCH v3 00/27] NXP DPAA2 PMD updates

2017-10-05 Thread Ferruh Yigit
On 9/16/2017 11:52 AM, Hemant Agrawal wrote: > This patchset includes the hw driver upgrades and additional > nic feature implementations. > > patches 1..8 - upgrades the qbman hw driver > patches 9..10 - adds the support for LX2160 platform > patches 11..27 - adds various features and cleanups in

Re: [dpdk-dev] [PATCH v1 0/7] Flow API helpers enhancements

2017-10-05 Thread Ferruh Yigit
On 10/5/2017 10:49 AM, Adrien Mazarguil wrote: > This series brings enhancements to various rte_flow helpers: > > - Allow applications to use rte_flow_error_set() by making it part of the > public interface and documenting it as such. > > - Address rte_flow_copy()'s limitations by replacing it

Re: [dpdk-dev] [PATCH v2 09/30] net/mlx5: add reference counter on memory region

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:41PM +0200, Nelio Laranjeiro wrote: [...] > @@ -180,12 +133,14 @@ mlx5_txq_mp2mr_reg(struct mlx5_txq_data *txq, struct > rte_mempool *mp, > { > struct mlx5_txq_ctrl *txq_ctrl = > container_of(txq, struct mlx5_txq_ctrl, txq); > - struct ibv_mr

Re: [dpdk-dev] [PATCH v6 1/3] ethdev: add Rx HW timestamp capability

2017-10-05 Thread Ferruh Yigit
On 10/3/2017 12:00 PM, Raslan Darawsheh wrote: > Add a new offload capability flag for Rx HW > timestamp and enabling/disabling this via rte_eth_rxmode. > > Signed-off-by: Raslan Darawsheh <...> > +++ b/doc/guides/nics/features.rst > @@ -567,6 +567,17 @@ Supports L4 checksum offload. > * **[pr

Re: [dpdk-dev] [PATCH v2 08/30] net/mlx5: fix rxqs vector support verification

2017-10-05 Thread Yongseok Koh
> On Oct 5, 2017, at 5:49 AM, Nelio Laranjeiro > wrote: > > The number of queues in DPDK does not means that the array of queue will be > totally filled, those information are uncorrelated. The number of queues > is provided in the port configuration whereas the array is filled by > calling tx

Re: [dpdk-dev] [PATCH v2 07/30] net/mlx5: fix reta update can segfault

2017-10-05 Thread Yongseok Koh
> On Oct 5, 2017, at 5:49 AM, Nelio Laranjeiro > wrote: > > Reta update needs to stop/start the port but stopping the port does not > disable the polling functions which may end in a segfault if a core is > polling the queue while the control thread is modifying it. > > This patch changes the

Re: [dpdk-dev] [PATCH v2 05/30] net/mlx5: remove redundant started flag

2017-10-05 Thread Yongseok Koh
> On Oct 5, 2017, at 5:49 AM, Nelio Laranjeiro > wrote: > > This flag is already present in the Ethernet device. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh Thanks

Re: [dpdk-dev] [PATCH v2 06/30] net/mlx5: verify all flows are been removed on close

2017-10-05 Thread Yongseok Koh
> On Oct 5, 2017, at 5:49 AM, Nelio Laranjeiro > wrote: > > Debug tools to verify all flows are be un-register from the NIC. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh Thanks

Re: [dpdk-dev] [PATCH v2 04/30] net/mlx5: prefix Tx structures and functions

2017-10-05 Thread Yongseok Koh
> On Oct 5, 2017, at 5:49 AM, Nelio Laranjeiro > wrote: > > Prefix struct txq_ctrl and associated function with mlx5. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh Thanks

Re: [dpdk-dev] [PATCH v2 03/30] net/mlx5: prefix Rx structures and functions

2017-10-05 Thread Yongseok Koh
> On Oct 5, 2017, at 5:49 AM, Nelio Laranjeiro > wrote: > > Prefix struct rxq_ctrl and associated functions with mlx5. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh Thanks

Re: [dpdk-dev] [PATCH v2 02/30] net/mlx5: remove flow director support

2017-10-05 Thread Yongseok Koh
> On Oct 5, 2017, at 5:49 AM, Nelio Laranjeiro > wrote: > > Generic flow API should be use for flow steering as is provides a better > and easier way to configure flows. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh Thanks

Re: [dpdk-dev] [PATCH v2 01/30] net/mlx5: merge action and flow parser structure

2017-10-05 Thread Yongseok Koh
On Thu, Oct 05, 2017 at 02:49:33PM +0200, Nelio Laranjeiro wrote: > mlx5_flow_create() and mlx5_flow_validate() are making common checks. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh   Thanks

Re: [dpdk-dev] [PATCH] net/i40e: Improve i40evf buffer cleanup in tx vector mode

2017-10-05 Thread Ferruh Yigit
On 10/6/2017 12:42 AM, Roger B. Melton wrote: > Hi Everyone, > > As soon as I submitted the patch, I realized I neglected to signoff.  > What's the recommended procedure, resubmit the original signed off, or > bump to v1? Please send a new one increasing version, since this was v1 already next

Re: [dpdk-dev] [PATCH v5 2/2] ethdev: get the supported pool for a port

2017-10-05 Thread Thomas Monjalon
01/10/2017 11:14, Santosh Shukla: > --- a/lib/librte_ether/rte_ethdev_version.map > +++ b/lib/librte_ether/rte_ethdev_version.map > @@ -192,5 +192,6 @@ DPDK_17.11 { > global: > > rte_eth_dev_reset; > + rte_eth_dev_pool_ops_supported; You missed the alphabetical order here :

Re: [dpdk-dev] [PATCH v5 1/2] eal: allow user to override default pool handle

2017-10-05 Thread Thomas Monjalon
01/10/2017 11:14, Santosh Shukla: > --- a/lib/librte_eal/common/eal_common_options.c > +++ b/lib/librte_eal/common/eal_common_options.c > @@ -98,6 +98,7 @@ eal_long_options[] = { > {OPT_VFIO_INTR, 1, NULL, OPT_VFIO_INTR_NUM}, > {OPT_VMWARE_TSC_MAP,0, NULL, OPT_VMWARE

Re: [dpdk-dev] [PATCH 00/10] fix compilation with -Og

2017-10-05 Thread Ferruh Yigit
On 9/11/2017 4:13 PM, Olivier Matz wrote: > In developer mode (RTE_DEVEL_BUILD=y) where -Werror is passed in the > CFLAGS, the compilation fails with gcc-6.3.0 and EXTRA_CFLAGS=-Og. Some > errors are real bugs (but not critical), while some are false positives > (gcc bugs?). > > The solution often

Re: [dpdk-dev] [PATCH v9 6/9] eal: auto detect iova mode

2017-10-05 Thread Thomas Monjalon
20/09/2017 13:23, Santosh Shukla: > For auto detection purpose: > * Below calls moved up in the eal initialization order: > - eal_option_device_parse > - rte_bus_scan > > Based on the result of rte_bus_scan_iommu_class - select iova > mapping mode. It does not explain why you need to

Re: [dpdk-dev] [PATCH 08/10] lpm6: fix compilation with -Og

2017-10-05 Thread Ferruh Yigit
On 9/11/2017 4:13 PM, Olivier Matz wrote: > The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following > error: > > CC rte_lpm6.o > rte_lpm6.c: In function ‘rte_lpm6_add_v1705’: > rte_lpm6.c:442:11: error: ‘tbl_next’ may be used uninitialized in > th

Re: [dpdk-dev] [PATCH v9 3/9] linuxapp/eal_pci: get iommu class

2017-10-05 Thread Thomas Monjalon
20/09/2017 13:23, Santosh Shukla: > +/** Device driver supports iova as va */ > +#define RTE_PCI_DRV_IOVA_AS_VA 0X0040 This flag name is surprizing and the comment does not help. For the comment: "Device driver supports I/O virtual addressing" ? For the flag: RTE_PCI_DRV_IOVA ? [.

Re: [dpdk-dev] [PATCH v9 2/9] eal/pci: get iommu class

2017-10-05 Thread Thomas Monjalon
This patch is introducing a new abstraction. It is important to explain it for future readers of this code. 20/09/2017 13:23, Santosh Shukla: > +/** > + * IOVA mapping mode. > + */ Please explain what IOVA means and what is the purpose of distinguish the different modes. > +enum rte_iova_mode {

Re: [dpdk-dev] [PATCH] net/i40e: Improve i40evf buffer cleanup in tx vector mode

2017-10-05 Thread Roger B. Melton
Hi Everyone, As soon as I submitted the patch, I realized I neglected to signoff.  What's the recommended procedure, resubmit the original signed off, or bump to v1? Thanks, Roger On 10/5/17 3:11 PM, Roger B Melton wrote: --- i40evf tx vector logic frees mbufs, but it does not remove the

Re: [dpdk-dev] [PATCH] eal: fslmc bus need vfio enabled for non PCI case as well

2017-10-05 Thread Thomas Monjalon
13/07/2017 13:48, Hemant Agrawal: > In case no_pci is configured, fslmc bus will still need the > the vfio to be enabled. > > Signed-off-by: Hemant Agrawal > --- > --- a/lib/librte_eal/linuxapp/eal/eal.c > +++ b/lib/librte_eal/linuxapp/eal/eal.c > +#ifdef RTE_LIBRTE_FSLMC_BUS > + if (!vfio_en

Re: [dpdk-dev] [PATCH] bus/fslmc: update MC to 10.3.x

2017-10-05 Thread Thomas Monjalon
> Signed-off-by: Shreyansh Jain > Signed-off-by: Hemant Agrawal This is a huge patch without any comment! It will be hard to find bugs in it when debugging in future. And it will be also pointless to reference it in future fixes. >From a quality point of view, it is bad. As it is touching only

Re: [dpdk-dev] [PATCH 03/10] net/virtio: fix compilation with -Og

2017-10-05 Thread Ferruh Yigit
On 10/6/2017 12:17 AM, Ferruh Yigit wrote: > On 9/11/2017 4:13 PM, Olivier Matz wrote: >> The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following >> error: >> >> CC virtio_rxtx.o >> virtio_rxtx.c: In function ‘virtio_rx_offload’: >> virtio_rxtx.c:680:10: error: ‘csum’ may be u

Re: [dpdk-dev] [PATCH 04/10] net/i40e: fix compilation with -Og

2017-10-05 Thread Ferruh Yigit
On 9/11/2017 4:13 PM, Olivier Matz wrote: > The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following > error: > > CC i40e_adminq.o > i40e_adminq.c: In function ‘i40e_clean_arq_element’: > i40e_adminq.c:1145:56: error: ‘ntu’ may be used uninitialized in >

Re: [dpdk-dev] [PATCH v6 3/3] net/mlx5: add Rx HW timestamp

2017-10-05 Thread Yongseok Koh
> On Oct 3, 2017, at 4:00 AM, Raslan Darawsheh wrote: > > Expose Rx HW timestamp to packet mbufs. > > Signed-off-by: Raslan Darawsheh > --- > Changes in v6: > - Rebasing the work on top of 217b1421 ("net/mlx5: separate DPDK from Verbs > Rx queue objects") > --- Raslan, It looks like you als

Re: [dpdk-dev] [PATCH] eal: bus scan and probe never fail

2017-10-05 Thread Thomas Monjalon
19/09/2017 20:51, Jan Blunck: > On Mon, Sep 18, 2017 at 1:36 PM, Hemant Agrawal > wrote: > > Tested-by: Hemant Agrawal > > > > > > On 8/12/2017 3:52 PM, Shreyansh Jain wrote: > >> > >> Bus scan is responsible for finding devices over *all* buses. > >> Some of these buses might not be able to sca

Re: [dpdk-dev] [PATCH 03/10] net/virtio: fix compilation with -Og

2017-10-05 Thread Ferruh Yigit
On 9/11/2017 4:13 PM, Olivier Matz wrote: > The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following > error: > > CC virtio_rxtx.o > virtio_rxtx.c: In function ‘virtio_rx_offload’: > virtio_rxtx.c:680:10: error: ‘csum’ may be used uninitialized in > thi

Re: [dpdk-dev] [PATCH v6 2/3] app/testpmd: add Rx HW timestamp

2017-10-05 Thread Yongseok Koh
> On Oct 3, 2017, at 4:00 AM, Raslan Darawsheh wrote: > > Add enabling/disabling Rx HW timestamp from > command line and parameter. > > Signed-off-by: Raslan Darawsheh > --- Acked-by: Yongseok Koh Thanks

Re: [dpdk-dev] [PATCH v2 0/6] NXP DPAA2: Refactor bus scan/probe code

2017-10-05 Thread Thomas Monjalon
11/09/2017 16:06, Ferruh Yigit: > On 8/25/2017 11:19 AM, Shreyansh Jain wrote: > > Change Log: > > ~~~ > > v2: > >- Minor updates for logging (removed some logs and changed others > > to make it cleaner when application starts) > > > > Brief: > > ~~ > > > > -- v1 is at [3]

[dpdk-dev] [PATCH v1 7/7] net/mlx5: add vectorized Rx/Tx burst for ARM

2017-10-05 Thread Yongseok Koh
Brings vectorization through NEON instructions. Signed-off-by: Yongseok Koh Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/Makefile |3 +- drivers/net/mlx5/mlx5_rxtx_vec.c |4 +- drivers/net/mlx5/mlx5_rxtx_vec.h |4 + drivers/net/mlx5/mlx5_rxtx_vec_neon.h | 10

[dpdk-dev] [PATCH v1 6/7] net/mlx5: fix configuration of Rx CQE compression

2017-10-05 Thread Yongseok Koh
With the upstream rdma-core, to enable Rx CQE compression, mlx5dv_create_cq() in Direct Verbs has to be used instead of regular Verbs call (ibv_create_cq()). And if the size of CQE is 128 bytes, compression is supported only by certain devices. Thus, it has to be decided by checking the capabilitiy

[dpdk-dev] [PATCH v1 4/7] net/mlx5: separate shareable vector functions

2017-10-05 Thread Yongseok Koh
Considering more architecture (e.g. ARM and PowerPC) will be added for vectorized Rx/Tx burst, all the shareable functions which don't use any vector instrinsics need to be separated from architecture-dependent functions. All the vector functions for x86 SSE are moved to a new header file - mlx5_rx

[dpdk-dev] [PATCH v1 5/7] net/mlx5: match Rx completion entry size to cacheline

2017-10-05 Thread Yongseok Koh
The size of Rx completion entry should match the size of a cacheline. This is already reflected in struct mlx5_cqe by adding 64bytes padding if a cacheline is 128bytes. Some ARM CPUs have 128bytes cacheline. Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5.c | 3 +++ 1 file changed, 3 inser

[dpdk-dev] [PATCH v1 3/7] net/mlx5: use static assert for compile-time sanity checks

2017-10-05 Thread Yongseok Koh
Replace compile-time sanity check with static_assert() as c11 standard has been set. Add mlx5_rxtx_vec.h and move the sanity checks to the file. Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_rxtx_vec.c | 32 +-- drivers/net/mlx5/mlx5_rxtx_vec.h | 87 ++

[dpdk-dev] [PATCH v1 0/7] net/mlx5: add vectorized Rx/Tx burst for ARM

2017-10-05 Thread Yongseok Koh
Add dataplane functions using ARM NEON instructions. To modularize vectorized functions for different architectures, the existing files having x86 SSE support is reorganized. This patchset has dependency with the following patches: - net/mlx5: fix overflow of Rx SW ring - Nelio's mlx5 flow cleanup

[dpdk-dev] [PATCH v1 2/7] net/mlx5: rename a file of SSE Rx/Tx

2017-10-05 Thread Yongseok Koh
Rename mlx5_rxtx_vec_sse.c to mlx5_rxtx_vec.c to separate shareable vector functions. Signed-off-by: Yongseok Koh Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/Makefile | 2 +- drivers/net/mlx5/{mlx5_rxtx_vec_sse.c => mlx5_rxtx_vec.c} | 0 2 files changed, 1 in

[dpdk-dev] [PATCH v1 1/7] net/mlx5: cleanup memory barriers

2017-10-05 Thread Yongseok Koh
Updating a consumer index to HW doesn't require a memory barrier in case that there's no updated data to be posted to HW, but a compiler barrier is sufficient. rte_wmb() is replaced with rte_io_wmb() when it makes changes visible to HW, not other core. Signed-off-by: Yongseok Koh Acked-by: Shahaf

[dpdk-dev] [PATCH v3] net/failsafe: fix calling device during RMV events

2017-10-05 Thread Ophir Munk
This commit prevents control path operations from failing after a sub device removal. Following are the failure steps: 1. The physical device is removed due to change in one of PF parameters (e.g. MTU) 2. The interrupt thread flags the device 3. Within 2 seconds Interrupt thread initializes the ac

Re: [dpdk-dev] [PATCH v2] eal: fix resource leak

2017-10-05 Thread Thomas Monjalon
04/10/2017 21:24, Ferruh Yigit: > On 9/22/2017 3:48 PM, Daniel Mrzyglod wrote: > > Memory allocated in strdup is not free. > > > > Coverity issue: 143257 > > Fixes: d8a2bc71dfc2 ("log: remove app path from syslog id") > > Cc: tho...@monjalon.net > > > > Signed-off-by: Daniel Mrzyglod > > --- > T

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix overflow of Rx SW ring

2017-10-05 Thread Ferruh Yigit
On 10/5/2017 10:37 PM, Yongseok Koh wrote: > If vectorized Rx burst is short of mbufs in replenishment, Rx SW ring can > overflow as the Rx burst handles 4 packets in a loop. This is because the > function fills SW ring and its mbufs first and checks validity of > each completion later. So, there s

Re: [dpdk-dev] [PATCH v9 0/6] Support TCP/IPv4, VxLAN, and GRE GSO in DPDK

2017-10-05 Thread Ananyev, Konstantin
> -Original Message- > From: Kavanagh, Mark B > Sent: Thursday, October 5, 2017 9:37 PM > To: dev@dpdk.org > Cc: Hu, Jiayu ; Tan, Jianfeng ; > Ananyev, Konstantin ; Yigit, > Ferruh ; tho...@monjalon.net; Kavanagh, Mark B > > Subject: [PATCH v9 0/6] Support TCP/IPv4, VxLAN, and GRE GSO

Re: [dpdk-dev] [RFC] Wireless Base Band Device (bbdev)

2017-10-05 Thread Thomas Monjalon
05/10/2017 23:55, Mokhtar, Amr: > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > 03/10/2017 16:29, Mokhtar, Amr: > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > > 25/08/2017 15:46, Amr Mokhtar: > > > > > +int > > > > > +rte_bbdev_configure(uint8_t dev_id, uint16_t num_queues,

Re: [dpdk-dev] [PATCH v4] librte_eal: fix wrong assert for arm and ppc

2017-10-05 Thread Thomas Monjalon
28/09/2017 08:54, Lukasz Majczak: > The assertion of return value from the open() function is done against > 0, while it is a correct value - open() returns -1 in case of an error. > It causes problems while trying to run as a daemon, in which case, this > call to open() will return 0 as a valid de

Re: [dpdk-dev] [PATCH] eal: cleanup strerror function

2017-10-05 Thread Thomas Monjalon
> > When compiled on Ubuntu with extra warnings enabled, the rte_strerror() > > function triggered a warning about an unused return value from > > strerror_r(). Rather than always have this warning disabled, we fix this, > > and in the process do some cleanup of the code so as to reduce the > > com

Re: [dpdk-dev] [RFC] Wireless Base Band Device (bbdev)

2017-10-05 Thread Mokhtar, Amr
> -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Tuesday 3 October 2017 16:18 > To: Mokhtar, Amr > Cc: dev@dpdk.org; f...@redhat.com; acon...@redhat.com; bl...@debian.org > Subject: Re: [dpdk-dev] [RFC] Wireless Base Band Device (bbdev) > > 03/10/2017 16

Re: [dpdk-dev] Mellanox ConnectX-5 crashes and mbuf leak

2017-10-05 Thread Yongseok Koh
Hi, Martin Thanks for your thorough and valuable reporting. We could reproduce it. I found a bug and fixed it. Please refer to the patch [1] I sent to the mailing list. This might not be automatically applicable to v17.08 as I rebased it on top of Nelio's flow cleanup patch. But as this is a simpl

Re: [dpdk-dev] [PATCH v2] vfio: fix close unchecked file descriptor

2017-10-05 Thread Thomas Monjalon
21/09/2017 18:07, Patrick MacArthur: > On 09/21/2017 09:49 AM, Michal Jastrzebski wrote: > > From: Kuba Kozak > > > > Add file descriptor value check before calling close() function. > > > > Coverity issue: 141297 > > Fixes: 811b6b25060f ("vfio: fix file descriptor leak in multi-process") > > Cc

[dpdk-dev] [PATCH] net/mlx5: fix overflow of Rx SW ring

2017-10-05 Thread Yongseok Koh
If vectorized Rx burst is short of mbufs in replenishment, Rx SW ring can overflow as the Rx burst handles 4 packets in a loop. This is because the function fills SW ring and its mbufs first and checks validity of each completion later. So, there should be some buffer slots at the tail of the ring

Re: [dpdk-dev] [PATCH] hash: document rte_jhash() boundary behavior

2017-10-05 Thread Thomas Monjalon
> > Due to the uint32_t accesses in the hash computation, keys that aren't > > aligned to a uint32_t boundary or multiples of uint32_t in length, may see > > accesses beyond the end of the key. This may cross a page boundary. > > > > Signed-off-by: Chas Williams > > Acked-by: John McNamara A

Re: [dpdk-dev] [PATCH 2/2] net/tap: allow RSS flow action

2017-10-05 Thread Ferruh Yigit
<...> >> On 03/10/2017 16:55, Matan Azrad wrote: >>> One of the main identified use cases for the tap PMD is to be used in >>> combination with the fail-safe PMD as a fallback for a physical device. >>> >>> Fail-safe is very strict about making sure its current configuration is >>> properly applie

Re: [dpdk-dev] [PATCH 1/2] net/tap: fix indentation in flow file

2017-10-05 Thread Ferruh Yigit
On 10/4/2017 6:26 PM, Ferruh Yigit wrote: > On 10/4/2017 9:15 AM, Pascal Mazon wrote: >> Hi, >> >> I'm surprised there's only one place in the file with indent problem, >> but I'm ok with the patch otherwise. >> >> Ferruh, I didn't get what you mean; Matan is modifying tap_flow.c in >> patch 2/2, r

Re: [dpdk-dev] [PATCH] net: fix inner L2 length in software ptype parser

2017-10-05 Thread Thomas Monjalon
11/09/2017 16:57, Olivier Matz: > The inner L2 length returned by rte_net_get_ptype() is not > properly initialized. If the caller does not zero the header > lengths structure, the inner_l2 field will be undefined. > > Fix it by initializing inner_l2 to 0 when parsing a inner layer. > > Fixes: 2c

Re: [dpdk-dev] [PATCH v2 1/2] ring: increase maximum ring size

2017-10-05 Thread Thomas Monjalon
20/09/2017 13:32, Olivier Matz: > There is no reason to prevent ring from being larger than 0x0FFF. > Increase the maximum size to 0x7FFF, which is the maximum possible > without changing the code and the structure definition (size is stored > on a uint32_t). > > Link: http://dpdk.org/ml/a

Re: [dpdk-dev] [PATCH] test/logs: fix dynamic log levels testing

2017-10-05 Thread Thomas Monjalon
25/09/2017 12:25, Olivier MATZ: > On Thu, Sep 21, 2017 at 08:44:09PM +0200, Radoslaw Biernacki wrote: > > This patch fixes the dynamic log levels testing in logs_autotest. > > Introduction of rte_log_set_level() in patch c1b5fa94a46f was done > > with parameter RTE_LOG_EMERG which caused all RTE_LO

Re: [dpdk-dev] [PATCH v8 0/7] net/i40e: GPT-C and GTP-U enabling

2017-10-05 Thread Ferruh Yigit
On 10/5/2017 9:14 AM, Beilei Xing wrote: > This patch set enables RSS/FDIR/cloud filter for GPT-C and GTP-U. > <...> > > Beilei Xing (7): > mbuf: support GTP in software packet type parser > net/i40e: update ptype and pctype info > ethdev: add GTP items to support flow API > net/i40e: f

Re: [dpdk-dev] [RFC] sched: parameterize QoS traffic-classes and queues

2017-10-05 Thread Robertson, Alan
Hi Alan, Comments inline, search for AGR> Alan. From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of alangordonde...@gmail.com Sent: Thursday, October 05, 2017 10:21 AM To: cristian.dumitre...@intel.com Cc: dev@dpdk.org; Alan Dewar Subject: [dpdk-dev] [RFC] sched: parameterize QoS traffic-class

[dpdk-dev] [PATCH v3 4/4] doc: add description of raw flow type in flow director in testpmd

2017-10-05 Thread Kirill Rybalchenko
v3: Add description of raw flow type mode for flow_director_filter command in testpmd. Signed-off-by: Kirill Rybalchenko --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_u

[dpdk-dev] [PATCH v3 2/4] net/i40e: add support for raw flow type for flow director

2017-10-05 Thread Kirill Rybalchenko
When addidng flow director filter for raw flow type, instead of constructing packet use buffer with pre-constructed packet. v3: Merge with dynamic pctype to flow type mapping patch. Signed-off-by: Kirill Rybalchenko --- drivers/net/i40e/i40e_fdir.c | 25 - 1 file changed

[dpdk-dev] [PATCH v3 3/4] app/testpmd: add raw flow type to flow director

2017-10-05 Thread Kirill Rybalchenko
v3: Add raw flow type support to flow_director_filter command Signed-off-by: Kirill Rybalchenko --- app/test-pmd/cmdline.c | 69 +++--- 1 file changed, 66 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index

[dpdk-dev] [PATCH v3 0/4] ethdev: add support for raw flow type for flow director

2017-10-05 Thread Kirill Rybalchenko
For complex packets use raw flow type with pre-constructed packet buffer instead of creating a packet internally in PMD. v2: Fixed code style, comment added v3: Merged with dunamic pctype to flow type mapping patch. Added raw fode to flow_director_filter command in testpmd. Kirill Rybalchenko (4

[dpdk-dev] [PATCH v3 1/4] ethdev: add support for raw flow type for flow director

2017-10-05 Thread Kirill Rybalchenko
Add new structure rte_eth_raw_flow to the union rte_eth_fdir_flow to support filter for raw flow type. Signed-off-by: Kirill Rybalchenko --- lib/librte_ether/rte_eth_ctrl.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_

Re: [dpdk-dev] [RFC] Wireless Base Band Device (bbdev)

2017-10-05 Thread Thomas Monjalon
05/10/2017 22:06, Mokhtar, Amr: > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > 25/08/2017 15:46, Amr Mokhtar: > > Did you think about the API required for inline processing (i.e. bbdev > > combined > > with ethdev Rx/Tx)? > > The current programming model is that ethdev is being used fo

Re: [dpdk-dev] [PATCH v2 0/4] patch series for bnxt

2017-10-05 Thread Ferruh Yigit
On 10/5/2017 4:06 PM, Ajit Khaparde wrote: > A continuation of the previous submission, > this patchset adds support for ntuple filtering. > It also fixes an issue found while testing VMDQ > and updates bnxt.ini > The last patch removes some unnecessary parentheses from the code. > > Ajit Khaparde

[dpdk-dev] [PATCH v9 6/6] doc: add GSO programmer's guide

2017-10-05 Thread Mark Kavanagh
Add programmer's guide doc to explain the design and use of the GSO library. Signed-off-by: Mark Kavanagh Signed-off-by: Jiayu Hu --- MAINTAINERS| 6 + .../generic_segmentation_offload_lib.rst | 256 +++ .../prog_guide/img/gso-output-s

[dpdk-dev] [PATCH v9 2/6] gso: add TCP/IPv4 GSO support

2017-10-05 Thread Mark Kavanagh
From: Jiayu Hu This patch adds GSO support for TCP/IPv4 packets. Supported packets may include a single VLAN tag. TCP/IPv4 GSO doesn't check if input packets have correct checksums, and doesn't update checksums for output packets (the responsibility for this lies with the application). Additional

[dpdk-dev] [PATCH v9 5/6] app/testpmd: enable TCP/IPv4, VxLAN and GRE GSO

2017-10-05 Thread Mark Kavanagh
From: Jiayu Hu This patch adds GSO support to the csum forwarding engine. Oversized packets transmitted over a GSO-enabled port will undergo segmentation (with the exception of packet-types unsupported by the GSO library). GSO support is disabled by default. GSO support may be toggled on a per-p

  1   2   3   4   >