Re: [dpdk-dev] [PATCH v2] vhost: fix vhost user virtqueue not accessible

2019-10-29 Thread Tiwei Bie
On Wed, Oct 30, 2019 at 07:07:23PM +0800, Marvin Liu wrote: > Log feature is disabled in vhost user, so that log address was invalid > when checking. Check whether log address is valid can workaround it. > Also log address should be translated in packed ring virtqueue. > > Fixes: 04cfc7fdbfca ("vh

Re: [dpdk-dev] [PATCH v6 02/14] ethdev: add support for hairpin queue

2019-10-29 Thread Ori Kam
Hi Andrew, > -Original Message- > From: Andrew Rybchenko > Sent: Wednesday, October 30, 2019 8:39 AM > To: Ori Kam ; John McNamara > ; Marko Kovacevic > ; Thomas Monjalon ; > Ferruh Yigit > Cc: dev@dpdk.org; jingjing...@intel.com; step...@networkplumber.org > Subject: Re: [dpdk-dev] [PAT

[dpdk-dev] [PATCH v5] net/ixgbe: fix macsec setting

2019-10-29 Thread Sun GuinanX
macsec setting is not valid when port is stopped. In order to make it valid, the patch changes the setting to where port is started. Fixes: 597f9fafe13b ("app/testpmd: convert to new Tx offloads API") Cc: sta...@dpdk.org Signed-off-by: Sun GuinanX --- v5: * modified function name v4: * Deleted e

Re: [dpdk-dev] [PATCH v3] net/ice: fix setting max frame size

2019-10-29 Thread Min, JiaqiX
Hi, Xiaolong > -Original Message- > From: Ye, Xiaolong > Sent: Wednesday, October 30, 2019 1:22 PM > To: Min, JiaqiX > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3] net/ice: fix setting max frame size > > Hi, Jiaqi > > On 10/29, Min JiaqiX wrote: > >Max frame si

Re: [dpdk-dev] [PATCH v6 02/14] ethdev: add support for hairpin queue

2019-10-29 Thread Andrew Rybchenko
Hi Ori, On 10/29/19 10:39 PM, Ori Kam wrote: On 10/28/19 9:44 PM, Ori Kam wrote: On 10/27/19 3:24 PM, Ori Kam wrote: + if (rte_eth_dev_is_rx_hairpin_queue(dev, i)) The condition should be more tricky if we resetup hairpin queue. I.e. we should check if i is rx_queue_id a

Re: [dpdk-dev] [PATCH v2] net/ice: fix setting max frame size

2019-10-29 Thread Min, JiaqiX
Hi, Xiaolong > -Original Message- > From: Ye, Xiaolong > Sent: Tuesday, October 29, 2019 1:07 PM > To: Min, JiaqiX > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] net/ice: fix setting max frame size > > On 10/29, Min, JiaqiX wrote: > >Hi Xiaolong, > > > >> -Original Message--

Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata

2019-10-29 Thread Andrew Rybchenko
On 10/29/19 9:30 PM, Thomas Monjalon wrote: 29/10/2019 18:19, Slava Ovsiienko: From: Andrew Rybchenko --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst +* ethdev: DEV_TX_OFFLOAD_MATCH_METADATA will be removed, static +metadata + mbuf field will be removed i

[dpdk-dev] [PATCH v2 1/1] net/octeontx2: skip flow control on lbk ports

2019-10-29 Thread vattunuru
From: Vamsi Attunuru LBK interface does not support any flow control related HW configurations. Skip flow control set requests on LBK bound ethports. Signed-off-by: Harman Kalra Signed-off-by: Vamsi Attunuru --- V2 change: * Updated log type. drivers/net/octeontx2/otx2_flow_ctrl.c | 13

Re: [dpdk-dev] [PATCH] drivers/net: only compile PFE and ENETC when DPAA was selected

2019-10-29 Thread Gagandeep Singh
Hi Thierry, > -Original Message- > From: Thierry Herbelot > Sent: Tuesday, October 29, 2019 6:32 PM > To: dev@dpdk.org > Cc: Thomas Monjalon ; Gagandeep Singh > > Subject: [PATCH] drivers/net: only compile PFE and ENETC when DPAA was > selected > > PFE and ENETC depend on DPAA features.

Re: [dpdk-dev] [PATCH] net/ice: fix flow director

2019-10-29 Thread Ye Xiaolong
On 10/30, Ying Wang wrote: >Flow director rule can't be created when the flow table is nearly full. >The patch fixed this issue to enable created flows reaching the maximum >number. > >Fixes: 1a2fc1799f09 ("net/ice: reject duplicated flow for flow director") > >Signed-off-by: Ying Wang >--- > driv

Re: [dpdk-dev] [PATCH v4] net/ixgbe: fix macsec setting

2019-10-29 Thread Ye Xiaolong
Hi, Guinan [snip] On 10/30, Sun GuinanX wrote: >+ >+void >+ixgbe_dev_macsec_register_set(struct rte_eth_dev *dev, I'd prefer to keep ixgbe_dev_macsec_register_enable since when it comes to HW register, `enable` is more accurate then `set` for this routine. And same for the below function, pre

Re: [dpdk-dev] [PATCH v3] net/ice: fix setting max frame size

2019-10-29 Thread Ye Xiaolong
Hi, Jiaqi On 10/29, Min JiaqiX wrote: >Max frame size is not set to HW, so packets above the MTU >do not get dropped by HW. The patch fixed the issue. > >Fixes: 50370662b727 ("net/ice: support device and queue ops") >Cc: sta...@dpdk.org > >Signed-off-by: Min JiaqiX >Reviewed-by: Xiaolong Ye Sor

[dpdk-dev] [PATCH 2/2] examples/l3fwd: print port bdf when initializing routes

2019-10-29 Thread pbhagavatula
From: Pavan Nikhilesh Since the number of Ethernet ports have gone up, print the pci bdf along with the routes. This is also helpful for cases where whitelisting order is honored. Signed-off-by: Pavan Nikhilesh --- examples/l3fwd/l3fwd_lpm.c | 16 1 file changed, 12 insertions

[dpdk-dev] [PATCH 1/2] examples/l3fwd: increase number of routes

2019-10-29 Thread pbhagavatula
From: Pavan Nikhilesh Increase the number of routes from 8 to 16 that are statically added for lpm and em mode as most of the SoCs support more than 8 interfaces. Signed-off-by: Pavan Nikhilesh --- examples/l3fwd/l3fwd_em.c | 72 ++ examples/l3fwd/l3fwd_lpm

Re: [dpdk-dev] [PATCH] net/ice: correct key len and queues check for RSS

2019-10-29 Thread Ye Xiaolong
On 10/30, Simei Su wrote: >This patch corrects key_len and queues check. The key_len and queues >are not supported to configure for RSS in rte_flow. > >Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") >Cc: sta...@dpdk.org > >Signed-off-by: Simei Su >--- > drivers/net/ice/ice_hash.c | 10 --

Re: [dpdk-dev] [PATCH] net/ice/base: fix ptype mapping polution from gtp flow

2019-10-29 Thread Ye Xiaolong
On 10/30, Qi Zhang wrote: >A new gtp flow's profile will capture other profile's non-gtp ptypes >which is unexpected. For example, an RSS flow for inner IP / UDP on >regular tunnel packet's behaviour will changed by a following GTP RSS >rule when inner IP is the only inputset, since all tunnel ptyp

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-29 Thread Wang, Haiyue
> -Original Message- > From: Jerin Jacob > Sent: Wednesday, October 30, 2019 12:38 > To: Yigit, Ferruh > Cc: Thomas Monjalon ; Wang, Haiyue > ; dpdk-dev > ; Ye, Xiaolong ; Kinsella, Ray > ; > Iremonger, Bernard ; Sun, Chenmin > ; Andrew > Rybchenko ; Slava Ovsiienko > ; Stephen Hemmin

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-29 Thread Jerin Jacob
On Tue, Oct 29, 2019 at 10:29 PM Ferruh Yigit wrote: > > On 10/26/2019 7:58 AM, Jerin Jacob wrote: > > On Sat, Oct 26, 2019 at 3:57 AM Thomas Monjalon wrote: > >> > >> 25/10/2019 18:02, Jerin Jacob: > >>> On Fri, Oct 25, 2019 at 9:15 PM Thomas Monjalon > >>> wrote: > 25/10/2019 16:08, Ferr

Re: [dpdk-dev] [PATCH v2 0/3] ethdev: configure SR-IOV VF from host

2019-10-29 Thread Jerin Jacob
On Wed, Oct 30, 2019 at 12:21 AM Thomas Monjalon wrote: > > In a virtual environment, the network controller may have to configure > some SR-IOV VF parameters for security reasons. Just to understand, Could you explain more details/examples for security reasons? > > When the PF (host port) is dr

Re: [dpdk-dev] [EXT] [PATCH 5/5] mempool: prevent objects from being across pages

2019-10-29 Thread Vamsi Krishna Attunuru
Hi Olivier, > -Original Message- > From: Vamsi Krishna Attunuru > Sent: Tuesday, October 29, 2019 10:55 PM > To: Olivier Matz ; dev@dpdk.org > Cc: Anatoly Burakov ; Andrew Rybchenko > ; Ferruh Yigit ; > Giridharan, Ganesan ; Jerin Jacob Kollanukkaran > ; Kiran Kumar Kokkilagadda ; > Stephe

[dpdk-dev] [PATCH v4] net/ixgbe: fix macsec setting

2019-10-29 Thread Sun GuinanX
macsec setting is not valid when port is stopped. In order to make it valid, the patch changes the setting to where port is started. Fixes: 597f9fafe13b ("app/testpmd: convert to new Tx offloads API") Cc: sta...@dpdk.org Signed-off-by: Sun GuinanX --- v4: * Deleted extra comments * Modified func

[dpdk-dev] [PATCH v2] vhost: fix vhost user virtqueue not accessible

2019-10-29 Thread Marvin Liu
Log feature is disabled in vhost user, so that log address was invalid when checking. Check whether log address is valid can workaround it. Also log address should be translated in packed ring virtqueue. Fixes: 04cfc7fdbfca ("vhost: translate incoming log address to gpa") Signed-off-by: Marvin Li

Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix macsec setting

2019-10-29 Thread Sun, GuinanX
Hi, Xiaolong On 10/29, Sun GuinanX wrote: > >macsec setting is not valid when port is stopped. > >In order to make it valid, the patch changes the setting to where port > >is started. > > > >Fixes: 597f9fafe13b ("app/testpmd: convert to new Tx offloads API") > >Cc: sta...@dpdk.org > > > >Signed-of

Re: [dpdk-dev] [PATCH] net/ice: correct RSS types check error

2019-10-29 Thread Ye Xiaolong
On 10/30, Simei Su wrote: >This patch corrects logic error for checking rss->types to match >pattern in RSS action parser. > >Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") >Cc: sta...@dpdk.org > >Signed-off-by: Simei Su >--- > drivers/net/ice/ice_hash.c | 14 +++--- > 1 file changed,

Re: [dpdk-dev] [PATCH] net/ice: correct key len and queues check for RSS

2019-10-29 Thread Zhang, Qi Z
> -Original Message- > From: Su, Simei > Sent: Wednesday, October 30, 2019 10:52 AM > To: Zhang, Qi Z ; Xing, Beilei ; > Yang, Qiming > Cc: dev@dpdk.org; Ye, Xiaolong ; Su, Simei > ; sta...@dpdk.org > Subject: [PATCH] net/ice: correct key len and queues check for RSS > > This patch co

Re: [dpdk-dev] [PATCH] net/ice: correct RSS types check error

2019-10-29 Thread Zhang, Qi Z
> -Original Message- > From: Su, Simei > Sent: Wednesday, October 30, 2019 10:50 AM > To: Zhang, Qi Z ; Xing, Beilei ; > Yang, Qiming > Cc: dev@dpdk.org; Ye, Xiaolong ; Su, Simei > ; sta...@dpdk.org > Subject: [PATCH] net/ice: correct RSS types check error > > This patch corrects logi

[dpdk-dev] [PATCH v3] net/ixgbe: fix macsec setting

2019-10-29 Thread Sun GuinanX
macsec setting is not valid when port is stopped. In order to make it valid, the patch changes the setting to where port is started. Fixes: 597f9fafe13b ("app/testpmd: convert to new Tx offloads API") Cc: sta...@dpdk.org Signed-off-by: Sun GuinanX --- v3: * Deleted extra comments * Modified the

[dpdk-dev] [PATCH] net/ice: correct key len and queues check for RSS

2019-10-29 Thread Simei Su
This patch corrects key_len and queues check. The key_len and queues are not supported to configure for RSS in rte_flow. Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Cc: sta...@dpdk.org Signed-off-by: Simei Su --- drivers/net/ice/ice_hash.c | 10 -- 1 file changed, 4 insertions(

[dpdk-dev] [PATCH v4] net/virtio: fix multicast and promisc mode enable failure

2019-10-29 Thread Marvin Liu
As doc mentioned, promisc and multicast are by-default supported in virtio pmd. Mac/vlan filter are supported by best effort. These control messages should return success. Fixes: f9b9d1a55775 ("net/virtio-user: add multiple queues in device emulation") Cc: sta...@dpdk.org Signed-off-by: Marvin Li

[dpdk-dev] [PATCH] net/ice: correct RSS types check error

2019-10-29 Thread Simei Su
This patch corrects logic error for checking rss->types to match pattern in RSS action parser. Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Cc: sta...@dpdk.org Signed-off-by: Simei Su --- drivers/net/ice/ice_hash.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) di

Re: [dpdk-dev] [PATCH v3] net/virtio: fix multicast and promisc mode enable failure

2019-10-29 Thread Liu, Yong
> -Original Message- > From: Bie, Tiwei > Sent: Tuesday, October 29, 2019 8:28 PM > To: Liu, Yong > Cc: maxime.coque...@redhat.com; Wang, Zhihong ; > dev@dpdk.org; sta...@dpdk.org > Subject: Re: [PATCH v3] net/virtio: fix multicast and promisc mode enable > failure > > On Tue, Oct 29, 2

[dpdk-dev] [PATCH] net/ice: fix flow director

2019-10-29 Thread Ying Wang
Flow director rule can't be created when the flow table is nearly full. The patch fixed this issue to enable created flows reaching the maximum number. Fixes: 1a2fc1799f09 ("net/ice: reject duplicated flow for flow director") Signed-off-by: Ying Wang --- drivers/net/ice/ice_fdir_filter.c | 1 +

Re: [dpdk-dev] [PATCH v4] net/bonding: fix invalid port using

2019-10-29 Thread Yang, Qiming
> -Original Message- > From: Jiang, JunyuX > Sent: Tuesday, October 29, 2019 10:24 AM > To: dev@dpdk.org > Cc: Chas Williams ; Yang, Qiming ; > Jiang, JunyuX ; sta...@dpdk.org > Subject: [PATCH v4] net/bonding: fix invalid port using > > Port validation should be prior to getting device

[dpdk-dev] [PATCH]net/bonding: add DEFAULTED state in rx_machine in 802.3ad bonding implementation

2019-10-29 Thread lidejun
Hi All: This patch fixes a issue when DPDK 802.3ad bonding rx_machine enters EXPIRED state, but the opposite SWITCH lacp ignores distributing and collecting bit, so the SWITCH still sends packets to DPDK and all these packets are dropped. diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b

[dpdk-dev] [PATCH v2] vhost: fix compile error

2019-10-29 Thread Jin Yu
Compile librte_vhost/vhost_crypto.c needs the rte_hash.h So we need the librte_hash to be compiled before vhost. Add the DEPDIRs to make sure this. Bugzilla ID: 356 Fixes: 939066d96563 ("vhost/crypto: add public function implementation") Cc: sta...@dpdk.org Signed-off-by: Jin Yu --- V2 - add the

[dpdk-dev] [PATCH] vhost: fix compile error

2019-10-29 Thread Jin Yu
Compile librte_vhost/vhost_crypto.c needs the rte_hash.h So we need the librte_hash to be compiled before vhost. Add the DEPDIRs to make sure this. Bugzilla ID: 356 Fixes: 939066d96563 ("vhost/crypto: add public function implementation") Cc: sta...@dpdk.org Signed-off-by: Jin Yu --- V2 - add the

[dpdk-dev] [PATCH v2 1/2] net/virtio: do not limit packed ring size

2019-10-29 Thread Marvin Liu
Virtio spec only set rule that packed ring maximum size is up to 2^15 entries. Should not limit packed ring size to power of two. Fixes: aea29aa5d37b ("net/virtio: enable packed virtqueues by default") Cc: sta...@dpdk.org Signed-off-by: Marvin Liu --- drivers/net/virtio/virtio_ethdev.c | 4 ++--

[dpdk-dev] [PATCH v2 2/2] vhost: do not limit packed ring size

2019-10-29 Thread Marvin Liu
Virtio spec only set rule that packed ring maximum size is up to 2^15 entries. Should not limit packed ring size to power of two. Fixes: 708e14d8b9ac ("vhost: advertize packed ring layout support") Cc: sta...@dpdk.org Signed-off-by: Marvin Liu --- lib/librte_vhost/vhost_user.c | 14

Re: [dpdk-dev] [dpdk-stable] [PATCH] vhost: fix compile error

2019-10-29 Thread Yu, Jin
> -Original Message- > From: Bie, Tiwei > Sent: Tuesday, October 29, 2019 9:36 PM > To: Yu, Jin > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-stable] [PATCH] vhost: fix compile error > > On Mon, Oct 28, 2019 at 06:34:43PM +0800, Jin Yu wrote: > > Compile librte_vhost/vhost_cryp

[dpdk-dev] [PATCH] net/ice/base: fix ptype mapping polution from gtp flow

2019-10-29 Thread Qi Zhang
A new gtp flow's profile will capture other profile's non-gtp ptypes which is unexpected. For example, an RSS flow for inner IP / UDP on regular tunnel packet's behaviour will changed by a following GTP RSS rule when inner IP is the only inputset, since all tunnel ptypes has been shifted from the f

Re: [dpdk-dev] [PATCH v1] examples/vm_power: fix no PCI option for guest cli

2019-10-29 Thread Yao, Lei A
> -Original Message- > From: Hunt, David > Sent: Tuesday, October 29, 2019 7:40 PM > To: dev@dpdk.org > Cc: Yao, Lei A ; Hunt, David > Subject: [PATCH v1] examples/vm_power: fix no PCI option for guest cli > > If there are no ports available to the guest cli application, it will exit

[dpdk-dev] [dpdk-announce] Register Today - DPDK Summit NA (Nov. 12-13)

2019-10-29 Thread Jill Lovato
Hello DPDK Community, 14 Days and counting! Please join us at DPDK Summit North America, November 12th and 13th, in Mountain View, CA. Hear from DPDK leaders and contributors in the community, with speakers from Intel, Mellanox, Nvidia, NTT, NEC, Microsoft, Huawe, ZTE and many others. Check out

Re: [dpdk-dev] [PATCH v6 02/14] ethdev: add support for hairpin queue

2019-10-29 Thread Ori Kam
Hi Andrew, > -Original Message- > From: Andrew Rybchenko > Sent: Tuesday, October 29, 2019 9:39 AM > To: Ori Kam ; John McNamara > ; Marko Kovacevic > ; Thomas Monjalon ; > Ferruh Yigit > Cc: dev@dpdk.org; jingjing...@intel.com; step...@networkplumber.org > Subject: Re: [dpdk-dev] [PATCH

[dpdk-dev] [PATCH v5] ethdev: extend flow metadata

2019-10-29 Thread Viacheslav Ovsiienko
Currently, metadata can be set on egress path via mbuf tx_metadata field with PKT_TX_METADATA flag and RTE_FLOW_ITEM_TYPE_META matches metadata. This patch extends the metadata feature usability. 1) RTE_FLOW_ACTION_TYPE_SET_META When supporting multiple tables, Tx metadata can also be set by a r

[dpdk-dev] [PATCH v2 3/3] net/mlx5: set VF MAC address from host

2019-10-29 Thread Thomas Monjalon
Allow to configure the default MAC address of a VF via its representor port in the host. This patch is a stub to demonstrate how to implement a VF operation. The real code is not implemented. Signed-off-by: Thomas Monjalon --- drivers/net/mlx5/mlx5.c | 6 ++ drivers/net/mlx5/mlx5.h

[dpdk-dev] [PATCH v2 2/3] ethdev: set VF MAC address from host

2019-10-29 Thread Thomas Monjalon
The API to set a default MAC address is extended to support a VF ID as port ID. In order to be supported by a driver, the related vf_ops must be implemented. Signed-off-by: Thomas Monjalon --- lib/librte_ethdev/rte_ethdev.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff

[dpdk-dev] [PATCH v2 1/3] ethdev: identify SR-IOV VF from host

2019-10-29 Thread Thomas Monjalon
In a virtual environment, the network controller may have to configure some SR-IOV VF parameters for security reasons. When the PF (host port) is driven by DPDK (OVS-DPDK case), we face two different cases: - driver is bifurcated (Mellanox case), so the VF can be configured via t

[dpdk-dev] [PATCH v2 0/3] ethdev: configure SR-IOV VF from host

2019-10-29 Thread Thomas Monjalon
In a virtual environment, the network controller may have to configure some SR-IOV VF parameters for security reasons. When the PF (host port) is driven by DPDK (OVS-DPDK case), we face two different cases: - driver is bifurcated (Mellanox case), so the VF can be configured via the kerne

Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata

2019-10-29 Thread Slava Ovsiienko
> -Original Message- > From: Thomas Monjalon > Sent: Tuesday, October 29, 2019 20:30 > To: Slava Ovsiienko > Cc: Andrew Rybchenko ; dev@dpdk.org; > Matan Azrad ; olivier.m...@6wind.com; Ori Kam > > Subject: Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata > > 29/10/2019 18:19, Sla

Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata

2019-10-29 Thread Thomas Monjalon
29/10/2019 18:19, Slava Ovsiienko: > From: Andrew Rybchenko > > > --- a/doc/guides/rel_notes/deprecation.rst > > > +++ b/doc/guides/rel_notes/deprecation.rst > > > +* ethdev: DEV_TX_OFFLOAD_MATCH_METADATA will be removed, static > > > +metadata > > > + mbuf field will be removed in 20.02, metadat

[dpdk-dev] [PATCH v1 1/1] net/octeontx2: fix VF index in VF action

2019-10-29 Thread vattunuru
From: Vamsi Attunuru VF index needs to be checked against maxvf count before incrementing it for preparing pf_func. Fixes: 520270d518 ("net/octeontx2: support PF and VF action") Signed-off-by: Vamsi Attunuru --- drivers/net/octeontx2/otx2_flow_parse.c | 4 ++-- 1 file changed, 2 insertions(+)

[dpdk-dev] [PATCH v1 1/1] net/octeontx2: skip flow control on lbk ports

2019-10-29 Thread vattunuru
From: Vamsi Attunuru LBK interface does not support any flow control related HW configurations. Skip flow control set requests on LBK bound ethports. Signed-off-by: Harman Kalra Signed-off-by: Vamsi Attunuru --- drivers/net/octeontx2/otx2_flow_ctrl.c | 13 + 1 file changed, 13 in

Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata

2019-10-29 Thread Slava Ovsiienko
> -Original Message- > From: Olivier Matz > Sent: Tuesday, October 29, 2019 18:34 > To: Slava Ovsiienko > Cc: dev@dpdk.org; Thomas Monjalon ; Matan > Azrad ; Ori Kam ; Yongseok > Koh > Subject: Re: [PATCH v4] ethdev: extend flow metadata > > On Tue, Oct 29, 2019 at 05:25:22PM +0100, Oli

Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata

2019-10-29 Thread Slava Ovsiienko
Hi, Olivier Thanks a lot for the review. > -Original Message- > From: Olivier Matz > Sent: Tuesday, October 29, 2019 18:25 > To: Slava Ovsiienko > Cc: dev@dpdk.org; Thomas Monjalon ; Matan > Azrad ; Ori Kam ; Yongseok > Koh > Subject: Re: [PATCH v4] ethdev: extend flow metadata > > Hi

Re: [dpdk-dev] ***Spam*** [PATCH 5/5] mempool: prevent objects from being across pages

2019-10-29 Thread Olivier Matz
On Tue, Oct 29, 2019 at 01:59:00PM +0300, Andrew Rybchenko wrote: > On 10/28/19 5:01 PM, Olivier Matz wrote: > > When populating a mempool, ensure that objects are not located across > > several pages, except if user did not request iova contiguous objects. > > I think it breaks distribution acros

Re: [dpdk-dev] [EXT] Re: [PATCH v15 3/7] ethdev: add validation to offloads set by PMD

2019-10-29 Thread Pavan Nikhilesh Bhagavatula
>>lib/librte_ethdev/rte_ethdev.c | 59 ++ >> 1 file changed, 59 insertions(+) >> >>diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c >>index 3f45b9e9c..8c58da91c 100644 >>--- a/lib/librte_ethdev/rte_ethdev.c >>+++ b/lib/librte_ethdev/rte_eth

Re: [dpdk-dev] [EXT] [PATCH 5/5] mempool: prevent objects from being across pages

2019-10-29 Thread Vamsi Krishna Attunuru
Hi Olivier, > -Original Message- > From: Olivier Matz > Sent: Monday, October 28, 2019 7:31 PM > To: dev@dpdk.org > Cc: Anatoly Burakov ; Andrew Rybchenko > ; Ferruh Yigit ; > Giridharan, Ganesan ; Jerin Jacob Kollanukkaran > ; Kiran Kumar Kokkilagadda > ; Stephen Hemminger > ; Thomas Mon

Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata

2019-10-29 Thread Slava Ovsiienko
Hi, Andrew Thank you for the review. > -Original Message- > From: Andrew Rybchenko > Sent: Tuesday, October 29, 2019 18:22 > To: Slava Ovsiienko ; dev@dpdk.org > Cc: Thomas Monjalon ; Matan Azrad > ; olivier.m...@6wind.com; Ori Kam > ; Yongseok Koh > Subject: Re: [dpdk-dev] [PATCH v4] e

Re: [dpdk-dev] [PATCH 4/5] mempool: introduce function to get mempool page size

2019-10-29 Thread Olivier Matz
On Tue, Oct 29, 2019 at 01:31:22PM +0300, Andrew Rybchenko wrote: > On 10/28/19 5:01 PM, Olivier Matz wrote: > > In rte_mempool_populate_default(), we determine the page size, > > which is needed for calc_size and allocation of memory. > > > > Move this in a function and export it, it will be used

Re: [dpdk-dev] [PATCH 3/5] mempool: remove optimistic IOVA-contiguous allocation

2019-10-29 Thread Olivier Matz
On Tue, Oct 29, 2019 at 01:25:10PM +0300, Andrew Rybchenko wrote: > On 10/28/19 5:01 PM, Olivier Matz wrote: > > The previous commit reduced the amount of required memory when > > populating the mempool with non iova-contiguous memory. > > > > Since there is no big advantage to have a fully iova-c

Re: [dpdk-dev] [PATCH 2/5] mempool: reduce wasted space on mempool populate

2019-10-29 Thread Olivier Matz
On Tue, Oct 29, 2019 at 01:09:01PM +0300, Andrew Rybchenko wrote: > On 10/28/19 5:01 PM, Olivier Matz wrote: > > The size returned by rte_mempool_op_calc_mem_size_default() is aligned > > to the specified page size. Therefore, with big pages, the returned size > > can be much more that what we real

Re: [dpdk-dev] [PATCH 1/5] mempool: allow unaligned addr/len in populate virt

2019-10-29 Thread Olivier Matz
Hi Andrew, On Tue, Oct 29, 2019 at 12:21:27PM +0300, Andrew Rybchenko wrote: > On 10/28/19 5:01 PM, Olivier Matz wrote: > > rte_mempool_populate_virt() currently requires that both addr > > and length are page-aligned. > > > > Remove this uneeded constraint which can be annoying with big > > huge

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-29 Thread Ferruh Yigit
On 10/26/2019 7:58 AM, Jerin Jacob wrote: > On Sat, Oct 26, 2019 at 3:57 AM Thomas Monjalon wrote: >> >> 25/10/2019 18:02, Jerin Jacob: >>> On Fri, Oct 25, 2019 at 9:15 PM Thomas Monjalon wrote: 25/10/2019 16:08, Ferruh Yigit: > On 10/25/2019 10:36 AM, Thomas Monjalon wrote: >> 15/10

Re: [dpdk-dev] [PATCH v15 3/7] ethdev: add validation to offloads set by PMD

2019-10-29 Thread Andrew Rybchenko
On 10/29/19 6:37 PM, pbhagavat...@marvell.com wrote: From: Pavan Nikhilesh Some PMDs cannot work when certain offloads are enable/disabled, as a workaround PMDs auto enable/disable offloads internally and expose it through dev->data->dev_conf.rxmode.offloads. After device specific dev_configur

Re: [dpdk-dev] [PATCH v2 0/6] implement common rte bit operation APIs in PMDs

2019-10-29 Thread Thomas Monjalon
23/10/2019 04:54, Joyce Kong: > There are a lot functions of bit operations scattered in PMDs, > consolidate them into a common API family and applied in different > PMDs to reduce code duplication. Please, could you look at what Adrien did in the Mellanox PMD? http://code.dpdk.org/dpdk/latest/so

Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata

2019-10-29 Thread Olivier Matz
On Tue, Oct 29, 2019 at 05:25:22PM +0100, Olivier Matz wrote: > Hi Slava, > > Looks good to me overall. Few minor comments below. > > On Sun, Oct 27, 2019 at 06:40:36PM +, Viacheslav Ovsiienko wrote: > > Currently, metadata can be set on egress path via mbuf tx_metadata field > > with PKT_TX_

Re: [dpdk-dev] [PATCH v6 11/15] net/hinic: add hinic PMD build and doc files

2019-10-29 Thread Andrew Rybchenko
On 10/29/19 6:50 PM, Stephen Hemminger wrote: On Thu, 27 Jun 2019 16:18:20 +0800 Ziyang Xuan wrote: +# +# Compile burst-oriented HINIC PMD driver +# +CONFIG_RTE_LIBRTE_HINIC_PMD=n The most common naming convention for drivers is: CONFIG_RTE_LIBRTE_PMD_XXX so please use that. It looks like

Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata

2019-10-29 Thread Olivier Matz
Hi Slava, Looks good to me overall. Few minor comments below. On Sun, Oct 27, 2019 at 06:40:36PM +, Viacheslav Ovsiienko wrote: > Currently, metadata can be set on egress path via mbuf tx_metadata field > with PKT_TX_METADATA flag and RTE_FLOW_ITEM_TYPE_META matches metadata. > > This patch

Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata

2019-10-29 Thread Andrew Rybchenko
On 10/27/19 9:40 PM, Viacheslav Ovsiienko wrote: Currently, metadata can be set on egress path via mbuf tx_metadata field with PKT_TX_METADATA flag and RTE_FLOW_ITEM_TYPE_META matches metadata. This patch extends the metadata feature usability. 1) RTE_FLOW_ACTION_TYPE_SET_META When supporting

Re: [dpdk-dev] [PATCH v5] vhost: add support for large buffers

2019-10-29 Thread David Marchand
On Tue, Oct 29, 2019 at 1:21 PM Flavio Leitner wrote: > On Tue, 29 Oct 2019 10:02:57 +0100 > David Marchand wrote: > > Using rte_malloc() means that the allocation can end up on any numa > > node. This external buffer might end up on a different node than the > > mbuf (which resides on mp->socket

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-29 Thread Wang, Haiyue
> -Original Message- > From: Jerin Jacob > Sent: Tuesday, October 29, 2019 23:59 > To: Wang, Haiyue > Cc: Thomas Monjalon ; Yigit, Ferruh > ; dpdk-dev > ; Ye, Xiaolong ; Kinsella, Ray > ; > Iremonger, Bernard ; Sun, Chenmin > ; Andrew > Rybchenko ; Slava Ovsiienko > ; Stephen Hemminge

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-29 Thread Jerin Jacob
On Tue, Oct 29, 2019 at 9:12 PM Wang, Haiyue wrote: > > > -Original Message- > > From: Jerin Jacob > > Sent: Tuesday, October 29, 2019 22:09 > > To: Wang, Haiyue > > Cc: Thomas Monjalon ; Yigit, Ferruh > > ; dpdk-dev > > ; Ye, Xiaolong ; Kinsella, Ray > > ; > > Iremonger, Bernard ; Sun

Re: [dpdk-dev] [PATCH v4] net/bonding: fix invalid port using

2019-10-29 Thread Chas Williams
On 10/28/19 10:23 PM, Jiang JunyuX wrote: Port validation should be prior to getting device data to avoid segment fault. This patch fixed the segment fault caused by invalid port using. Fixes: 6d72657ce379 ("net/bonding: add other aggregator modes") Fixes: 112891cd27e5 ("net/bonding: add dedicat

Re: [dpdk-dev] [PATCH v6 11/15] net/hinic: add hinic PMD build and doc files

2019-10-29 Thread Stephen Hemminger
On Thu, 27 Jun 2019 16:18:20 +0800 Ziyang Xuan wrote: > +# > +# Compile burst-oriented HINIC PMD driver > +# > +CONFIG_RTE_LIBRTE_HINIC_PMD=n The most common naming convention for drivers is: CONFIG_RTE_LIBRTE_PMD_XXX so please use that.

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-29 Thread Wang, Haiyue
> -Original Message- > From: Jerin Jacob > Sent: Tuesday, October 29, 2019 22:09 > To: Wang, Haiyue > Cc: Thomas Monjalon ; Yigit, Ferruh > ; dpdk-dev > ; Ye, Xiaolong ; Kinsella, Ray > ; > Iremonger, Bernard ; Sun, Chenmin > ; Andrew > Rybchenko ; Slava Ovsiienko > ; Stephen Hemminge

[dpdk-dev] [PATCH v15 4/7] drivers/net: update Rx RSS hash offload capabilities

2019-10-29 Thread pbhagavatula
From: Pavan Nikhilesh Add DEV_RX_OFFLOAD_RSS_HASH flag for all PMDs that support RSS hash delivery. Signed-off-by: Pavan Nikhilesh Reviewed-by: Andrew Rybchenko Reviewed-by: Hemant Agrawal Acked-by: Jerin Jacob Acked-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 8 +++-

[dpdk-dev] [PATCH v15 7/7] app/testpmd: add command to set supported ptype mask

2019-10-29 Thread pbhagavatula
From: Pavan Nikhilesh Add command to set supported ptype mask. Usage: set port ptype_mask Disable ptype parsing by default. Signed-off-by: Pavan Nikhilesh --- app/test-pmd/cmdline.c | 80 + app/test-pmd/testpmd.c | 6 ++

[dpdk-dev] [PATCH v15 5/7] examples/eventdev_pipeline: add new Rx RSS hash offload

2019-10-29 Thread pbhagavatula
From: Pavan Nikhilesh Since pipeline_generic uses `rte_mbuf::hash::rss` add the new Rx offload flag `DEV_RX_OFFLOAD_RSS_HASH` to inform PMD to copy the RSS hash result into the mbuf. Signed-off-by: Pavan Nikhilesh --- examples/eventdev_pipeline/main.c | 128 - .../p

[dpdk-dev] [PATCH v15 6/7] examples/l2fwd: disable ptype parsing

2019-10-29 Thread pbhagavatula
From: Pavan Nikhilesh Disable packet type parsing as l2fwd doesn't rely on packet types. Signed-off-by: Pavan Nikhilesh --- examples/l2fwd/Makefile| 1 + examples/l2fwd/main.c | 2 ++ examples/l2fwd/meson.build | 1 + 3 files changed, 4 insertions(+) diff --git a/examples/l2fwd/Makef

[dpdk-dev] [PATCH v15 3/7] ethdev: add validation to offloads set by PMD

2019-10-29 Thread pbhagavatula
From: Pavan Nikhilesh Some PMDs cannot work when certain offloads are enable/disabled, as a workaround PMDs auto enable/disable offloads internally and expose it through dev->data->dev_conf.rxmode.offloads. After device specific dev_configure is called compare the requested offloads to the offlo

[dpdk-dev] [PATCH v15 0/7] ethdev: add new Rx offload flags

2019-10-29 Thread pbhagavatula
From: Pavan Nikhilesh Add new Rx offload flags `DEV_RX_OFFLOAD_RSS_HASH` These flags can be used to enable/disable PMD writes to rte_mbuf fields `hash.rss` and also `ol_flags:PKT_RX_RSS` and `ol_flags:PKT_RX_FDIR`. Add new packet type set function `rte_eth_dev_set_supported_ptypes`, allows appli

[dpdk-dev] [PATCH v15 1/7] ethdev: add set ptype function

2019-10-29 Thread pbhagavatula
From: Pavan Nikhilesh Add `rte_eth_dev_set_supported_ptypes` function that will allow the application to inform the PMD the packet types it is interested in. Based on the ptypes set PMDs can optimize their Rx path. -If application doesn’t want any ptype information it can call `rte_eth_dev_set_s

[dpdk-dev] [PATCH v15 2/7] ethdev: add mbuf RSS update as an offload

2019-10-29 Thread pbhagavatula
From: Pavan Nikhilesh Add new Rx offload flag `DEV_RX_OFFLOAD_RSS_HASH` which can be used to enable/disable PMDs write to `rte_mbuf::hash::rss`. PMDs notify the validity of `rte_mbuf::hash:rss` to the applcation by enabling `PKT_RX_RSS_HASH ` flag in `rte_mbuf::ol_flags`. Signed-off-by: Pavan Ni

Re: [dpdk-dev] [PATCH v5] net/memif: zero-copy slave

2019-10-29 Thread David Marchand
On Fri, Oct 25, 2019 at 6:45 PM Yigit, Ferruh wrote: > > On 8/22/2019 9:18 AM, Jakub Grajciar wrote: > > Zero-copy slave support for memif PMD. > > Slave interface exposes DPDK memory to > > master interface. Only single file segments > > are supported (EAL option --single-file-segments). Do you

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-29 Thread Ferruh Yigit
On 10/26/2019 5:23 PM, Thomas Monjalon wrote: > 26/10/2019 11:23, Wang, Haiyue: >> From: Thomas Monjalon [mailto:tho...@monjalon.net] >>> 26/10/2019 06:40, Wang, Haiyue: From: Thomas Monjalon [mailto:tho...@monjalon.net] > 25/10/2019 18:02, Jerin Jacob: >> On Fri, Oct 25, 2019 at 9:15

[dpdk-dev] [PATCH v6 10/12] net/i40e: clean LTO build warnings (maybe-uninitialized)

2019-10-29 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘filter_idx’ may be used uninitialized in this function [-Werror=maybe-uninitia

[dpdk-dev] [PATCH v6 09/12] net/e1000: clean LTO build warnings (maybe-uninitialized)

2019-10-29 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘link’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

[dpdk-dev] [PATCH v6 12/12] net/qede: clean LTO build warnings (maybe-uninitialized)

2019-10-29 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘transceiver_type’ may be used uninitialized in this function [-Werror=maybe-un

[dpdk-dev] [PATCH v6 07/12] app/test: clean LTO build warnings (maybe-uninitialized)

2019-10-29 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘stats.greatest_free_size’ may be used uninitialized in this function [-Werror=

[dpdk-dev] [PATCH v6 11/12] net/ifc: clean LTO build warnings (maybe-uninitialized)

2019-10-29 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘features’ may be used uninitialized in this function [-Werror=maybe-uninitiali

[dpdk-dev] [PATCH v6 06/12] event/octeontx2: clean LTO build warnings (maybe-uninitialized)

2019-10-29 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘chunk’ may be used uninitialized in this function [-Werror=maybe-uninitialized

[dpdk-dev] [PATCH v6 08/12] net/dpaa2: fix possible use of uninitialized vars

2019-10-29 Thread Andrzej Ostruszka
This patch fixes 'maybe-uninitialized' warnings reported by compiler when using LTO. Compiler warning pointing to this error (with LTO enabled): error: ‘kg_cfg.extracts[0].masks[0].mask’ may be used uninitialized in this function [-Werror=maybe-uninitialized] extr->masks[j].mask = cfg->extract

[dpdk-dev] [PATCH v6 01/12] doc: fix description of versioning macros

2019-10-29 Thread Andrzej Ostruszka
This patch fixes documentation of versioning macros so that they are aligned with their implementation (no underscore is added by macros). Signed-off-by: Andrzej Ostruszka Acked-by: Neil Horman --- doc/guides/contributing/versioning.rst | 4 ++-- lib/librte_eal/common/include/r

[dpdk-dev] [PATCH v6 02/12] build: annotate versioned symbols with __vsym macro

2019-10-29 Thread Andrzej Ostruszka
Every implementation of a particular version of given symbol needs to be marked in its declaration as such (using `__vsym` macro). This patch fixes this and also clarifies the documentation about that. Signed-off-by: Andrzej Ostruszka Acked-by: Neil Horman --- doc/guides/contributing/versionin

[dpdk-dev] [PATCH v6 05/12] app/eventdev: clean LTO build warnings (maybe-uninitialized)

2019-10-29 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘service_id’ may be used uninitialized in this function [-Werror=maybe-uninitia

[dpdk-dev] [PATCH v6 04/12] eventdev: fix possible use of uninitialized var

2019-10-29 Thread Andrzej Ostruszka
Fix the logic for the case of event queue allowing all schedule types. Compiler warning pointing to this error (with LTO enabled): error: ‘sched_type’ may be used uninitialized in this function [-Werror=maybe-uninitialized] if ((ret < 0 && ret != -EOVERFLOW) || Fixes: 6750b21bd6af ("eventdev: a

[dpdk-dev] [PATCH v6 03/12] build: add an option to enable LTO build

2019-10-29 Thread Andrzej Ostruszka
This patch adds an option to enable link time optimization. In addition to LTO option itself (-flto) fat-lto-objects are being used. This is because during the build pmdinfogen scans the generated ELF objects to find this_pmd_name* symbol in symbol table. Without fat-lto-objects gcc produces ELF

[dpdk-dev] [PATCH v6 00/12] Add an option to use LTO for DPDK build

2019-10-29 Thread Andrzej Ostruszka
This patch series adds an option to make use of link time optimization (if compiler has support for it). It is split as follows: - 1st patch is just a minor doc fix for versioning macros - 2nd patch fixes missing __vsym annotations (needed for LTO) - 3rd is the LTO enablement - remaining patches a

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-29 Thread Jerin Jacob
> > > > > > > > > > How about *_str_* style ? > > > > _name kind of implies it the string. may be _mode is good as it is short. > > > > > int > > > rte_eth_rx_burst_mode_str_get(uint16_t port_id, uint16_t queue_id, > > > char *buf, int buflen) > > > > About the

Re: [dpdk-dev] [PATCH v1] examples/power: fix oob frequency oscillations

2019-10-29 Thread Hunt, David
On 27/10/2019 18:35, Thomas Monjalon wrote: 06/08/2019 13:18, Thomas Monjalon: 26/07/2019 12:15, Burakov, Anatoly: So it's biased towards scaling up quickly, but it's doing that over a period. Please correct me if i'm wrong as i'm not really familiar with this codebase, but, assuming the wind

  1   2   >