Re: [dpdk-dev] [PATCH] ethdev: add function to print a flow

2018-12-05 Thread Asaf Penso
Hi All, would be glad to have comments on this patch. Good day! Regards, Asaf Penso > -Original Message- > From: Asaf Penso > Sent: Wednesday, November 28, 2018 5:26 PM > To: Adrien Mazarguil > Cc: Asaf Penso ; dev@dpdk.org; Shahaf Shuler > ; Ori Kam ; Thomas > Monjalon > Subject: [PATC

Re: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Thursday, December 6, 2018 2:41 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code > > > Note: In version 1 I enquired about unit or DTS validation for PMD. Is this > still

Re: [dpdk-dev] About the data payload of rte_mbuf?

2018-12-05 Thread Stephen Hemminger
On Thu, 6 Dec 2018 11:45:22 +0800 "bai bakari" <912873...@qq.com> wrote: > when i send packets using dpdk-pktgen, i found: > ip_len = 46 > ip_header_len = 20 > but the tcp_header_len=(tcp_hdr->data_off << 2)=0, > and (payload - (uint8_t *)ipv4_hdr) = 340 > ip_len. dpdk pktgen sends UDP not TCP.

Re: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code

2018-12-05 Thread Zhang, Qi Z
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Varghese, Vipin > Sent: Thursday, December 6, 2018 2:41 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code > > snipped > > > > > > > > > > > > > > I this README

Re: [dpdk-dev] [PATCH v2 02/20] net/ice: support device initialization

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Thursday, December 6, 2018 2:31 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Yang, Qiming ; Li, Xiaoyun > ; Wu, Jingjing > Subject: RE: [dpdk-dev] [PATCH v2 02/20] net/ice: support device > initialization > > snipped > > > > > >

Re: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code

2018-12-05 Thread Varghese, Vipin
snipped > > > > > > > > > > > > I this README persistent in upcoming releases of 'driver/net/ice'? > > > > > Yes. > > > > If Linux driver is enabled in 4.20.1 or higher, then will the > > > > wording 'This directory contains source code of FreeBSD ice driver > > > > of' still > > hold true? > > > A

Re: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Thursday, December 6, 2018 2:03 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code > > snipped > > > > > > > > > > > +Intel® ICE driver > > > > > > +== > > >

Re: [dpdk-dev] [PATCH v2 19/20] doc: add ICE description and update release note

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Thursday, December 6, 2018 2:26 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 19/20] doc: add ICE description and > update release note > > snipped > > > > > Thanks Wenzhuo > > > > > > > > > > snippe

Re: [dpdk-dev] [PATCH v2 02/20] net/ice: support device initialization

2018-12-05 Thread Varghese, Vipin
snipped > > > > > + ice_init_controlq_parameter(hw); > > > > > + > > > > > + ret = ice_init_hw(hw); > > > > > + if (ret) { > > > > > + PMD_INIT_LOG(ERR, "Failed to initialize HW"); > > > > > + return -EINVAL; > > > > > + } > > > > > > > > Definition for ice_i

Re: [dpdk-dev] [PATCH v2 19/20] doc: add ICE description and update release note

2018-12-05 Thread Varghese, Vipin
snipped > > > > Thanks Wenzhuo > > > > > > > > snipped > > > > > > > > > > > > Do we support Traffic Manager and Inline Crypto? If not, can > > > > > > we add this also to limitations? > > > > > The style is only listed supported features here. I don't think > > > > > we'll list everything not supp

Re: [dpdk-dev] [PATCH v2 19/20] doc: add ICE description and update release note

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Thursday, December 6, 2018 2:09 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 19/20] doc: add ICE description and > update release note > > > > > -Original Message- > > From: Lu, Wenzhuo >

[dpdk-dev] [PATCH] net/i40e: fix statistics inconsistent issue

2018-12-05 Thread Xiaoyun Li
Port packets excluding pf VSI discards were used for packet count. And port bytes were used for byte count. This will cause inconsistent count in some cases. This patch would take all VSI stats as packet and byte count to address the issue. Fixes: 763de290cbd1 ("net/i40e: fix packet count for PF")

Re: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code

2018-12-05 Thread Ferruh Yigit
On 12/6/2018 6:03 AM, Varghese, Vipin wrote: > snipped > >> +Intel® ICE driver >> +== >> + >> +This directory contains source code of FreeBSD ice driver of >> +version >> +2018.10.30 released by the team which develops basic drivers >> +for any ice NI

[dpdk-dev] ?????? About the data payload of rte_mbuf?

2018-12-05 Thread bai bakari
Thank your answers, that helped me out. -- -- ??: "Shyam Shrivastav"; : 2018??12??6??(??) 2:22 ??: "bai bakari"<912873...@qq.com>; : "dev"; : Re: [dpdk-dev] About the data payload of rte_mbuf? And if just payload lengt

Re: [dpdk-dev] [PATCH v2 02/20] net/ice: support device initialization

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Thursday, December 6, 2018 1:33 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Yang, Qiming ; Li, Xiaoyun > ; Wu, Jingjing > Subject: RE: [dpdk-dev] [PATCH v2 02/20] net/ice: support device > initialization > > snipped > > > > +

Re: [dpdk-dev] [PATCH v2 19/20] doc: add ICE description and update release note

2018-12-05 Thread Varghese, Vipin
> -Original Message- > From: Lu, Wenzhuo > Sent: Thursday, December 6, 2018 11:36 AM > To: Varghese, Vipin ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 19/20] doc: add ICE description and update > release note > > Hi Vipin, > > > > -Original Message- > > From: Varghese, V

Re: [dpdk-dev] [PATCH v2 20/20] net/ice: support meson build

2018-12-05 Thread Varghese, Vipin
> -Original Message- > From: Lu, Wenzhuo > Sent: Thursday, December 6, 2018 11:29 AM > To: Varghese, Vipin ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 20/20] net/ice: support meson build > > Hi Vipin, > > > > -Original Message- > > From: Varghese, Vipin > > Sent: Thursd

Re: [dpdk-dev] [PATCH v2 19/20] doc: add ICE description and update release note

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Thursday, December 6, 2018 12:34 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 19/20] doc: add ICE description and > update release note > > Thanks Wenzhuo > > snipped > > > > > > Do we support Traf

Re: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code

2018-12-05 Thread Varghese, Vipin
snipped > > > > > > > > > +Intel® ICE driver > > > > > +== > > > > > + > > > > > +This directory contains source code of FreeBSD ice driver of > > > > > +version > > > > > +2018.10.30 released by the team which develops basic drivers > > > > > +for any ice NIC. The directory of base

Re: [dpdk-dev] [PATCH v2 20/20] net/ice: support meson build

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Thursday, December 6, 2018 12:31 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 20/20] net/ice: support meson build > > Hi Wenzhuo > > snipped > > > > > > Should not meson build option be add start.

Re: [dpdk-dev] [PATCH v2 07/20] net/ice: support MTU setting

2018-12-05 Thread Varghese, Vipin
Thanks, I get what you are saying since by default ' rte_eth_dev_get_mtu' fetches MTU ' dev->data->mtu'. But is not ICE_DSI a switch so MTU would be picked up from switch HW ? > -Original Message- > From: Lu, Wenzhuo > Sent: Thursday, December 6, 2018 11:11 AM > To: Varghese, Vipin ; dev

Re: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Thursday, December 6, 2018 12:29 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code > > Hi Wenzhuo, > > thanks for the updates, couple of follow up and suggestions > > snipp

Re: [dpdk-dev] [PATCH v2 16/20] net/ice: support basic RX/TX

2018-12-05 Thread Varghese, Vipin
> > > > snipped > > > +uint16_t > > > +ice_recv_pkts(void *rx_queue, > > > + struct rte_mbuf **rx_pkts, > > > + uint16_t nb_pkts) > > > +{ > > > + struct ice_rx_queue *rxq = rx_queue; > > > + volatile union ice_rx_desc *rx_ring = rxq->rx_ring; > > > + volatile union ice_rx_desc *rxdp; >

Re: [dpdk-dev] About the data payload of rte_mbuf?

2018-12-05 Thread Shyam Shrivastav
And if just payload length is required one can get by subtracting (ip-hdr-len + tcp-offset) from total length in ip header ... On Thu, Dec 6, 2018 at 11:18 AM Shyam Shrivastav wrote: > > As per my understanding > > payload = (uint8_t *)tcp_hdr + (tcp_hdr->data_off << 2); > > should be > > payloa

Re: [dpdk-dev] [PATCH v2 14/20] net/ice: support statistics

2018-12-05 Thread Varghese, Vipin
Snipped > > > > snipped > > > + ns->eth.tx_bytes -= (ns->eth.tx_unicast + ns->eth.tx_multicast + > > > + ns->eth.tx_broadcast) * ETHER_CRC_LEN; > > > > In earlier patch for 'mtu set check' we added VSI SWITCH VLAN. Should > > we add VSI VLAN here? > Don't need. They're differen

Re: [dpdk-dev] [PATCH v2 04/20] net/ice: support getting device information

2018-12-05 Thread Varghese, Vipin
> > > > snipped > > > +static void > > > +ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info > > > +*dev_info) { > > > + struct ice_pf *pf = ICE_DEV_PRIVATE_TO_PF(dev->data- > > >dev_private); > > > + struct ice_hw *hw = ICE_DEV_PRIVATE_TO_HW(dev->data- > > > >dev_private); > > > + s

Re: [dpdk-dev] About the data payload of rte_mbuf?

2018-12-05 Thread Shyam Shrivastav
As per my understanding payload = (uint8_t *)tcp_hdr + (tcp_hdr->data_off << 2); should be payload = (uint8_t *)tcp_hdr + (tcp_hdr->data_off >> 4) << 2); Note that data offset is 4 most significant bits of the byte, refer tcp header On Thu, Dec 6, 2018 at 9:15 AM bai bakari <912873...@qq.com

Re: [dpdk-dev] About the data payload of rte_mbuf?

2018-12-05 Thread Varghese, Vipin
Hi, snipped For your two question, 1. I think it's right, because the definition of "rte_pktmbuf_mtod_offset" is: #define rte_pktmbuf_mtod_offset(m, t, o) \ ((t)((char *)(m)->buf_addr + (m)->data_off + (o))) You are passing ' ipv4_hdr = rte_pktmbuf_mtod_offset(m, struct ipv4

Re: [dpdk-dev] [PATCH v2 07/20] net/ice: support MTU setting

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Tuesday, December 4, 2018 1:52 PM > To: Varghese, Vipin ; Lu, Wenzhuo > ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Yang, Qiming > ; Li, Xiaoyun ; Wu, Jingjing > > Subject: RE: [dpdk-dev] [PATCH v2 07/20] net/ice: support MTU setting >

Re: [dpdk-dev] [PATCH v2 16/20] net/ice: support basic RX/TX

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Tuesday, December 4, 2018 1:42 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Yang, Qiming > ; Li, Xiaoyun ; Wu, Jingjing > > Subject: RE: [dpdk-dev] [PATCH v2 16/20] net/ice: support basic RX/TX > > snipped > > +ui

Re: [dpdk-dev] [PATCH v2 14/20] net/ice: support statistics

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Tuesday, December 4, 2018 1:35 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Guo, Jia > Subject: RE: [dpdk-dev] [PATCH v2 14/20] net/ice: support statistics > > snipped > > + ns->eth.tx_bytes -= (ns->eth.tx_unica

Re: [dpdk-dev] [PATCH v2 07/20] net/ice: support MTU setting

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Tuesday, December 4, 2018 1:26 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Yang, Qiming > ; Li, Xiaoyun ; Wu, Jingjing > > Subject: RE: [dpdk-dev] [PATCH v2 07/20] net/ice: support MTU setting > > snipped > > +st

Re: [dpdk-dev] [PATCH v2 05/20] net/ice: support packet type getting

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Tuesday, December 4, 2018 1:19 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Zhao1, Wei > > Subject: RE: [dpdk-dev] [PATCH v2 05/20] net/ice: support packet type > getting > > snipped > > +static inline uint32_t >

Re: [dpdk-dev] [PATCH v2 02/20] net/ice: support device initialization

2018-12-05 Thread Varghese, Vipin
snipped > > > + ice_init_controlq_parameter(hw); > > > + > > > + ret = ice_init_hw(hw); > > > + if (ret) { > > > + PMD_INIT_LOG(ERR, "Failed to initialize HW"); > > > + return -EINVAL; > > > + } > > > > Definition for ice_init_hw in patch 01/20 does not check for primary- > > second

Re: [dpdk-dev] [PATCH v2 04/20] net/ice: support getting device information

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Tuesday, December 4, 2018 1:00 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Yang, Qiming > ; Li, Xiaoyun ; Wu, Jingjing > > Subject: RE: [dpdk-dev] [PATCH v2 04/20] net/ice: support getting device > information >

Re: [dpdk-dev] [PATCH v2 03/20] net/ice: support device and queue ops

2018-12-05 Thread Varghese, Vipin
Hi Wenzhuo, Please find my updates below snipped > > > + if (!vsi->rss_key) > > > + vsi->rss_key = rte_zmalloc("rss_key", > > > +vsi->rss_key_size, 0); > > > + if (!vsi->rss_lut) > > > + vsi->rss_lut = rte_zmalloc("rss_lut", > > > +

Re: [dpdk-dev] [PATCH v2 03/20] net/ice: support device and queue ops

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Tuesday, December 4, 2018 12:53 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Yang, Qiming > ; Li, Xiaoyun ; Wu, Jingjing > > Subject: RE: [dpdk-dev] [PATCH v2 03/20] net/ice: support device and queue > ops > > sni

Re: [dpdk-dev] [PATCH v2 02/20] net/ice: support device initialization

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Tuesday, December 4, 2018 12:41 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Lu, Wenzhuo ; Yang, Qiming > ; Li, Xiaoyun ; Wu, Jingjing > > Subject: RE: [dpdk-dev] [PATCH v2 02/20] net/ice: support device > initialization > > >

Re: [dpdk-dev] About the data payload of rte_mbuf?

2018-12-05 Thread bai bakari
Hi, Thank your reply. For your two question, 1. I think it's right, because the definition of "rte_pktmbuf_mtod_offset" is: #define rte_pktmbuf_mtod_offset(m, t, o)\ ((t)((char *)(m)->buf_addr + (m)->data_off + (o))) 2. I set the packet type is IPv4 when i use dpdk-pktgen,

Re: [dpdk-dev] [PATCH v2 19/20] doc: add ICE description and update release note

2018-12-05 Thread Varghese, Vipin
Thanks Wenzhuo snipped > > > > Do we support Traffic Manager and Inline Crypto? If not, can we add > > this also to limitations? > The style is only listed supported features here. I don't think we'll list > everything > not supported as limitation. Thanks for the correction in format, hence the

Re: [dpdk-dev] [PATCH v2 20/20] net/ice: support meson build

2018-12-05 Thread Varghese, Vipin
Hi Wenzhuo snipped > > > > Should not meson build option be add start. That is in patch 1/20 so > > compile options does not fail? > It will not fail. Enabling the compile earlier only means the code can be > compiled. > But, to use this device we do need the whole patch set. From this point of

Re: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code

2018-12-05 Thread Varghese, Vipin
Hi Wenzhuo, thanks for the updates, couple of follow up and suggestions snipped > > > > > +Intel® ICE driver > > > +== > > > + > > > +This directory contains source code of FreeBSD ice driver of > > > +version > > > +2018.10.30 released by the team which develops basic drivers for

Re: [dpdk-dev] [2/5] vhost: enforce desc flags and content read ordering

2018-12-05 Thread Jason Wang
On 2018/12/5 下午9:33, Ilya Maximets wrote: On 05.12.2018 12:49, Maxime Coquelin wrote: A read barrier is required to ensure that the ordering between descriptor's flags and content reads is enforced. Fixes: 2f3225a7d69b ("vhost: add vector filling support for packed ring") Cc: sta...@dpdk.org

Re: [dpdk-dev] About the data payload of rte_mbuf?

2018-12-05 Thread Varghese, Vipin
Hi, A quick query from your email Snipped > ipv4_hdr = rte_pktmbuf_mtod_offset(m, struct ipv4_hdr *, sizeof(struct > ether_hdr)); Questions: 1. Should not be sizeof(struct ipv4_hdr) since you are passing second argument as ipv4_hdr? 2. you are getting packets which starts from ether or ipv4?

Re: [dpdk-dev] [1/5] vhost: enforce avail index and desc read ordering

2018-12-05 Thread Jason Wang
On 2018/12/5 下午7:30, Ilya Maximets wrote: On 05.12.2018 12:49, Maxime Coquelin wrote: A read barrier is required to ensure the ordering between available index and the descriptor reads is enforced. Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application") Cc: sta...@dpdk.org

[dpdk-dev] [Bug 120] secondary fails failure without option '--legacy-mem'

2018-12-05 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=120 Bug ID: 120 Summary: secondary fails failure without option '--legacy-mem' Product: DPDK Version: 18.05 Hardware: All OS: All Status: CONFIRMED Severity: normal

[dpdk-dev] About the data payload of rte_mbuf?

2018-12-05 Thread bai bakari
Hi, Now, I want to get the data payload of rte_mbuf, and i wrote the following code: struct ipv4_hdr *ipv4_hdr; struct tcp_hdr *tcp_hdr; uint32_t payload_len, ip_len; uint8_t *payload = NULL; ipv4_hdr = rte_pktmbuf_mtod_offset(m, struct ipv4_hdr *, sizeof(struct ether_hdr)); ip_len = ntohs(

Re: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code

2018-12-05 Thread Lu, Wenzhuo
Hi Vipin, > -Original Message- > From: Varghese, Vipin > Sent: Tuesday, December 4, 2018 12:19 PM > To: Lu, Wenzhuo ; dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: RE: [dpdk-dev] [PATCH v2 01/20] net/ice: add base code > > Snipped > > > +Intel® ICE driver > > +== > > + > >

[dpdk-dev] [PATCH v2] app/testpmd: add boundary check in flow commandline

2018-12-05 Thread Wei Zhao
There is need to add boundary for input number from commandline, If it beyond the defination, code will return error. Signed-off-by: Wei Zhao --- v2: change mask writing format. --- app/test-pmd/cmdline_flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/

Re: [dpdk-dev] [PATCH v2] net/i40e: fix VF/PF port reset

2018-12-05 Thread Yang, Qiming
Hi, Zhirun > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Zhirun Yan > Sent: Wednesday, December 5, 2018 8:46 PM > To: dev@dpdk.org; Zhang, Qi Z ; Wang, Haiyue > > Cc: Yan, Zhirun > Subject: [dpdk-dev] [PATCH v2] net/i40e: fix VF/PF port reset > > Port reset

Re: [dpdk-dev] [PATCH 03/19] net/ice: support device and queue ops

2018-12-05 Thread Lu, Wenzhuo
Hi Rami, > -Original Message- > From: Rami Rosen [mailto:roszenr...@gmail.com] > Sent: Monday, December 3, 2018 11:24 PM > To: Lu, Wenzhuo > Cc: dev@dpdk.org; Yang, Qiming ; Li, Xiaoyun > ; Wu, Jingjing > Subject: Re: [dpdk-dev] [PATCH 03/19] net/ice: support device and queue > ops > >

Re: [dpdk-dev] [PATCH] app/testpmd: add boundary check in flow commandline

2018-12-05 Thread Zhao1, Wei
> -Original Message- > From: Ananyev, Konstantin > Sent: Tuesday, December 4, 2018 5:22 PM > To: Zhao1, Wei ; dev@dpdk.org > Cc: sta...@dpdk.org; Peng, Yuan ; Zhao1, Wei > > Subject: RE: [dpdk-dev] [PATCH] app/testpmd: add boundary check in flow > commandline > > > > > -Original

Re: [dpdk-dev] vhost: batch used descriptors chains write-back with packed ring

2018-12-05 Thread Michael S. Tsirkin
On Wed, Dec 05, 2018 at 07:01:23PM +0300, Ilya Maximets wrote: > On 28.11.2018 12:47, Maxime Coquelin wrote: > > Instead of writing back descriptors chains in order, let's > > write the first chain flags last in order to improve batching. > > I'm not sure if this fully compliant with virtio spec.

[dpdk-dev] [PATCH] eal: fix unlock in rte_eal_memzone_init

2018-12-05 Thread gfree . wind
From: Gao Feng The RTE_PROC_PRIMARY error handler lost the unlock statement in the current codes. Now fix it. Signed-off-by: Gao Feng --- lib/librte_eal/common/eal_common_memzone.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/eal_common_memzone.c b/lib/librte_eal/

Re: [dpdk-dev] [PATCH v11 6/9] net/virtio: implement receive path for packed queues

2018-12-05 Thread Stephen Hemminger
On Wed, 5 Dec 2018 12:28:27 +0100 Maxime Coquelin wrote: > > +static uint16_t > > In think it should be inlined. > > > +virtqueue_dequeue_burst_rx_packed(struct virtqueue *vq, > > + struct rte_mbuf **rx_pkts, > > + uint32_t *len, > > +

Re: [dpdk-dev] Problems running netvsc multiq

2018-12-05 Thread Stephen Hemminger
The problem is a regression in 4.20 kernel. Bisecting now. The kernel in 4.19.7 works. Failure with logging is: $ sudo ./testpmd -l 0-1 -n2 --log-level=8 --log-level='pmd.*,8' --log-level='bus.vmbus,8' -- --port-topology=chained --forward-mode=rxonly --stats-period 1 --eth-peer=0,00:15:5d:1e:20

Re: [dpdk-dev] Problems running netvsc multiq

2018-12-05 Thread Stephen Hemminger
On WS2016 and 4.19.7 kernel (with the 4 patches), this is what I see: $ sudo ./testpmd -l 0-1 -n2 --log-level=8 --log-level='pmd.*,8' --log-level='bus.vmbus,8' -- --port-topology=chained --forward-mode=rxonly --stats-period 1 --eth-peer=0,00:15:5d:1e:20:c0 --txq 2 --rxq 2 EAL: Detected 4 lcore(s

[dpdk-dev] [PATCH v2 4/4] bus/vmbus: debug subchannel setup

2018-12-05 Thread Stephen Hemminger
Add more instrumentation to subchannel setup to help diagnose startup issues. Signed-off-by: Stephen Hemminger --- drivers/bus/vmbus/linux/vmbus_uio.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/bus/vmbus/linux/vmbus_uio.c b/drivers/bus/

[dpdk-dev] [PATCH v2 3/4] net/netvsc: disable multi-queue on older servers

2018-12-05 Thread Stephen Hemminger
NDIS multi-queue support is only in WS2012 or later. Check the NDIS version to limit to single queue on older versions. Similar code exists in Linux driver. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_ethdev.c | 5

[dpdk-dev] [PATCH v2 2/4] net/netvsc: enable SR-IOV

2018-12-05 Thread Stephen Hemminger
Make DPDK enable SRIOV flag in same way as Linux and FreeBSD. Fixes: dc7680e8597c ("net/netvsc: support integrated VF") Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_nvs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/netvsc/hn_nvs.c b/drivers

[dpdk-dev] [PATCH v2 1/4] bus/vmbus: fix race in sub channel creation

2018-12-05 Thread Stephen Hemminger
When using multiple queues, there was a race with the kernel in setting up the second channel. This regression is due to a kernel change which does not allow accessing sysfs files for Hyper-V channels that are not opened. The fix is simple, just move the logic to detect not ready sub channels ear

[dpdk-dev] [PATCH] bus/dpaa: do nothing if bus not present

2018-12-05 Thread Stephen Hemminger
The DPAA bus support code put out messages like: dpaax: read_memory_node(): Unable to glob device-tree memory node: (/proc/device-tree/memory[@0-9]*/reg)(3) dpaax: PA->VA translation not available; dpaax: Expect performance impact. These are unnecessary and likely to

Re: [dpdk-dev] Bypass support in the i40e PMD driver

2018-12-05 Thread EJ Raymond
Hi, Just wondering if there's any change in status of this topic? I can currently access bypass support for this card in the Silicom utility driver, but have no access in the current DPDK-18.11.0. Will there be support similar to the 82599 bypass API in the future? Thanks, EJ On Tue, Jul 24, 201

[dpdk-dev] [PATCH] net-i40e-Match-on-outer-and-inner-headers-for-tunnel

2018-12-05 Thread subarna . kar
From: Subarna Kar --- drivers/net/i40e/i40e_ethdev.c | 14 +- drivers/net/i40e/i40e_ethdev.h | 109 +- drivers/net/i40e/i40e_fdir.c | 392 +++-- drivers/net/i40e/i40e_flow.c | 781 - 4 files changed, 1250 insertions(+), 46 deletion

Re: [dpdk-dev] [PATCH] lib: add warning for NULL pointer

2018-12-05 Thread Stephen Hemminger
On Wed, 5 Dec 2018 19:55:31 +0800 Qiming Yang wrote: > May return NULL when manage tries for packet in acl library. So > this patch added warning for the NULL pointer return. > > Fixes: 074f54ad03ee ("acl: fix build and runtime for default target") > Cc: sta...@dpdk.org > > Signed-off-by: Qimi

[dpdk-dev] [PATCH v2] doc: fix a typo in testpmd guide

2018-12-05 Thread Rami Rosen
This patch fixes a typo in testpmd guide (should be ICMP and not IMCP). Fixes: ac718398f477 ("doc: testpmd application user guide") Signed-off-by: Rami Rosen Acked-by: Bernard Iremonger --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [dpdk-dev] [PATCH v2] baseband/turbo_sw: update for FlexRAN 18.09

2018-12-05 Thread Mokhtar, Amr
> -Original Message- > From: Chalupnik, KamilX > Sent: Wednesday 5 December 2018 10:40 > To: dev@dpdk.org > Cc: Mokhtar, Amr ; akhil.go...@nxp.com; > Chalupnik, KamilX > Subject: [PATCH v2] baseband/turbo_sw: update for FlexRAN 18.09 > > Update BBDEV Turbo SW driver download/build instr

Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags

2018-12-05 Thread Mokhtar, Amr
> -Original Message- > From: David Marchand [mailto:david.march...@redhat.com] > Sent: Tuesday 4 December 2018 20:58 > To: dev@dpdk.org > Cc: sta...@dpdk.org; nhor...@tuxdriver.com; tredae...@redhat.com; > Yigit, Ferruh ; Mokhtar, Amr > > Subject: [PATCH] bbdev: add missing experimental

Re: [dpdk-dev] [RFC PATCH 0/3] Add rte_eth_read_clock API

2018-12-05 Thread zr
From: Zyta Szpak I'd ask few questions: how is this new rte_ethdev_read_clock different from existing rte_eth_timesync_read_time ? Is it that this new function does not convert the clock raw value into timespec? Would it be too much overhead to use the timespec type of value? Or do they intent

Re: [dpdk-dev] [PATCH] test: add missing fbarray autotest to meson

2018-12-05 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Anatoly Burakov > Sent: Wednesday, December 5, 2018 9:26 AM > To: dev@dpdk.org > Cc: sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] test: add missing fbarray autotest to meson > > Currently, fbarray autotest is o

[dpdk-dev] [PATCH] test: add missing fbarray autotest to meson

2018-12-05 Thread Anatoly Burakov
Currently, fbarray autotest is only built by make, but is missing from meson build files. Fixes: 7985860c18af ("test/fbarray: add autotests") Cc: sta...@dpdk.org Signed-off-by: Anatoly Burakov --- test/test/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test/meson.build

[dpdk-dev] [PATCH] test: add missing external mem autotest to meson

2018-12-05 Thread Anatoly Burakov
The 'external_mem_autotest' was defined in the meson build, but the actual source file was not being compiled by meson. Fixes: b270daa43b3d ("test: support external memory") Cc: sta...@dpdk.org Signed-off-by: Anatoly Burakov --- test/test/meson.build | 1 + 1 file changed, 1 insertion(+) diff

Re: [dpdk-dev] vhost: batch used descriptors chains write-back with packed ring

2018-12-05 Thread Ilya Maximets
On 28.11.2018 12:47, Maxime Coquelin wrote: > Instead of writing back descriptors chains in order, let's > write the first chain flags last in order to improve batching. I'm not sure if this fully compliant with virtio spec. It says that 'each side (driver and device) are only required to poll (or

Re: [dpdk-dev] [PATCH v5 0/5] add initial version of compress-perf

2018-12-05 Thread Daly, Lee
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Tomasz Jozwiak > Sent: Wednesday, December 5, 2018 8:47 AM > To: dev@dpdk.org; Trahe, Fiona ; Jozwiak, TomaszX > ; shally.ve...@cavium.com; > akhil.go...@nxp.com > Subject: [dpdk-dev] [PATCH v5 0/5] add initial v

Re: [dpdk-dev] [PATCH v3] test/compress: add mbuf offset unit test

2018-12-05 Thread Jozwiak, TomaszX
> -Original Message- > From: Daly, Lee > Sent: Wednesday, December 5, 2018 3:39 PM > To: akhil.go...@nxp.com; Jozwiak, TomaszX ; > Trahe, Fiona > Cc: dev@dpdk.org; Daly, Lee > Subject: [PATCH v3] test/compress: add mbuf offset unit test > > added mbuf offset test to compressdev test s

[dpdk-dev] [PATCH] vhost: fix double read of descriptor flags

2018-12-05 Thread Ilya Maximets
Flags could be updated in a separate process leading to the inconsistent check. Additionally, read marked as 'volatile' to highlight the shared nature of the variable and avoid such issues in the future. Fixes: d3211c98c456 ("vhost: add helpers for packed virtqueues") Cc: sta...@dpdk.org Signed-

[dpdk-dev] [PATCH v3] test/compress: add mbuf offset unit test

2018-12-05 Thread Lee Daly
added mbuf offset test to compressdev test suite, which tests compression/decompression with a mbuf containing an offset spanning across mulitple segments. V2: - Change how test checks capalilites structure. V3: - Change commit message. Signed-off-by: Lee Daly --- test/test/test_compress

[dpdk-dev] [PATCH] doc: fix garbage text in generated HTML guides

2018-12-05 Thread Luca Boccassi
If the user has MAKEFLAGS set in the environment when building the documentation, the doc/guides/conf.py script which calls "make" exclusively to get the project version might pick up garbage from stdout, like: FAQ — Data Plane Development Kit make[2]: Entering directory '/build/1st/dpdk-18.11/doc

Re: [dpdk-dev] [PATCH v2 2/3] test/compress: add checksum tests

2018-12-05 Thread Jozwiak, TomaszX
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Lee Daly > Sent: Wednesday, November 28, 2018 11:42 AM > To: Trahe, Fiona ; akhil.go...@nxp.com > Cc: dev@dpdk.org; Daly, Lee > Subject: [dpdk-dev] [PATCH v2 2/3] test/compress: add checksum tests > > This patc

Re: [dpdk-dev] [5/5] vhost: remove useless casts to volatile

2018-12-05 Thread Ilya Maximets
On 05.12.2018 12:49, Maxime Coquelin wrote: > Cast to volatile is done when reading avail index and writing > the used index. This would not be necessary if proper barriers > are used. 'volatile' and barriers are not really connected. 'volatile' is the disabling of the compiler optimizations, whil

Re: [dpdk-dev] [2/5] vhost: enforce desc flags and content read ordering

2018-12-05 Thread Ilya Maximets
On 05.12.2018 12:49, Maxime Coquelin wrote: > A read barrier is required to ensure that the ordering between > descriptor's flags and content reads is enforced. > > Fixes: 2f3225a7d69b ("vhost: add vector filling support for packed ring") > Cc: sta...@dpdk.org > > Reported-by: Jason Wang > Signe

Re: [dpdk-dev] Marking symbols as experimental in the headers only

2018-12-05 Thread David Marchand
On Wed, Dec 5, 2018 at 1:23 PM Neil Horman wrote: > On Tue, Dec 04, 2018 at 09:48:22PM +0100, David Marchand wrote: > > On Tue, Dec 4, 2018 at 4:16 PM Neil Horman > wrote: > > > If you would like to make this adjustment, I'm fine with it, though be > > > aware, > > > you will likely need to make

Re: [dpdk-dev] [PATCH v2] net/i40e: fix VF/PF port reset

2018-12-05 Thread Zhang, Qi Z
Hi Zhirun: > -Original Message- > From: Yan, Zhirun > Sent: Wednesday, December 5, 2018 8:46 PM > To: dev@dpdk.org; Zhang, Qi Z ; Wang, Haiyue > > Cc: Yan, Zhirun > Subject: [PATCH v2] net/i40e: fix VF/PF port reset > > Port reset will call i40evf_uninit_vf() to release resource. It wan

[dpdk-dev] [PATCH] net/e1000: xstat RXERRC statictic register added.

2018-12-05 Thread Leonid Myravjev
Signed-off-by: Leonid Myravjev --- drivers/net/e1000/igb_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index d9d29d22f..ebc242cd9 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -458

Re: [dpdk-dev] Marking symbols as experimental in the headers only

2018-12-05 Thread Neil Horman
On Tue, Dec 04, 2018 at 09:48:22PM +0100, David Marchand wrote: > On Tue, Dec 4, 2018 at 4:16 PM Neil Horman wrote: > > > On Tue, Dec 04, 2018 at 09:21:43AM +0100, David Marchand wrote: > > > On Mon, Dec 3, 2018 at 5:48 PM Neil Horman > > wrote: > > > > On Mon, Dec 03, 2018 at 02:01:02PM +0100,

Re: [dpdk-dev] [PATCH] bbdev: add missing experimental tags

2018-12-05 Thread Neil Horman
On Tue, Dec 04, 2018 at 09:57:45PM +0100, David Marchand wrote: > Those two symbols are missing the experimental tag in the library > header. > Because of this, a user can try to call this symbol without being aware > this is an experimental api (neither compilation nor link warning). > > Fixes: 4

Re: [dpdk-dev] [PATCH v11 6/9] net/virtio: implement receive path for packed queues

2018-12-05 Thread Jens Freimann
On Wed, Dec 05, 2018 at 12:28:27PM +0100, Maxime Coquelin wrote: On 12/3/18 3:15 PM, Jens Freimann wrote: Implement the receive part. Signed-off-by: Jens Freimann Signed-off-by: Tiwei Bie --- drivers/net/virtio/virtio_ethdev.c | 61 +++-- drivers/net/virtio/virtio_ethdev.h | 5 + driver

Re: [dpdk-dev] [PATCH] mbuf: implement generic format for sched field

2018-12-05 Thread Singh, Jasvinder
> -Original Message- > From: Dumitrescu, Cristian > Sent: Tuesday, December 4, 2018 5:39 PM > To: Singh, Jasvinder ; dev@dpdk.org > Cc: Pattan, Reshma > Subject: RE: [PATCH] mbuf: implement generic format for sched field > > > > > > > > + uint8_t color;

Re: [dpdk-dev] [1/5] vhost: enforce avail index and desc read ordering

2018-12-05 Thread Ilya Maximets
On 05.12.2018 12:49, Maxime Coquelin wrote: > A read barrier is required to ensure the ordering between > available index and the descriptor reads is enforced. > > Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application") > Cc: sta...@dpdk.org > > Reported-by: Jason Wang > Signe

Re: [dpdk-dev] [PATCH v11 6/9] net/virtio: implement receive path for packed queues

2018-12-05 Thread Maxime Coquelin
On 12/3/18 3:15 PM, Jens Freimann wrote: Implement the receive part. Signed-off-by: Jens Freimann Signed-off-by: Tiwei Bie --- drivers/net/virtio/virtio_ethdev.c | 61 +++-- drivers/net/virtio/virtio_ethdev.h | 5 + drivers/net/virtio/virtio_rxtx.c | 369 +++

Re: [dpdk-dev] [PATCH v11 3/9] net/virtio: add packed virtqueue helpers

2018-12-05 Thread Maxime Coquelin
On 12/3/18 3:15 PM, Jens Freimann wrote: Add helper functions to set/clear and check descriptor flags. Signed-off-by: Jens Freimann --- drivers/net/virtio/virtio_ethdev.c | 2 + drivers/net/virtio/virtqueue.h | 73 +- 2 files changed, 73 insertions(+), 2

Re: [dpdk-dev] [PATCH v11 5/9] net/virtio: implement transmit path for packed queues

2018-12-05 Thread Maxime Coquelin
On 12/3/18 3:15 PM, Jens Freimann wrote: This implements the transmit path for devices with support for packed virtqueues. Signed-off-by: Jens Freiman Signed-off-by: Tiwei Bie --- drivers/net/virtio/virtio_ethdev.c | 54 --- drivers/net/virtio/virtio_ethdev.h | 2 + drivers/net/v

Re: [dpdk-dev] [PATCH] mbuf: implement generic format for sched field

2018-12-05 Thread Singh, Jasvinder
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Saturday, December 1, 2018 2:23 PM > To: Singh, Jasvinder > Cc: dev@dpdk.org; Dumitrescu, Cristian ; > Pattan, Reshma ; Rao, Nikhil > > Subject: Re: [dpdk-dev] [PATCH] mbuf: implement generic forma

[dpdk-dev] [PATCH v2] baseband/turbo_sw: update for FlexRAN 18.09

2018-12-05 Thread Kamil Chalupnik
Update BBDEV Turbo SW driver download/build instructions for FlexRAN 18.09 release Signed-off-by: Kamil Chalupnik --- doc/guides/bbdevs/turbo_sw.rst | 21 +++--- drivers/baseband/turbo_sw/bbdev_turbo_software.c | 90 +--- 2 files changed, 14 insertions(+), 9

Re: [dpdk-dev] [PATCH] malloc: notify primary process about hotplug in secondary

2018-12-05 Thread Burakov, Anatoly
On 04-Dec-18 5:06 PM, Seth Howell wrote: When secondary process hotplugs memory, it sends a request to primary, which then performs the real mmap() and sends sync requests to all secondary processes. Upon receiving such sync request, each secondary process will notify the upper layers of hotplugg

[dpdk-dev] [PATCH 5/5] vhost: remove useless casts to volatile

2018-12-05 Thread Maxime Coquelin
Cast to volatile is done when reading avail index and writing the used index. This would not be necessary if proper barriers are used. Now that the read barrier has been added, we can remove these cast to volatile. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.c | 7 +++ 1

[dpdk-dev] [PATCH 4/5] vhost: remove useless prefetch for packed ring descriptor

2018-12-05 Thread Maxime Coquelin
This prefetch does not show any performance improvement. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 0a860ca72..679ce388b 100644 --- a/lib/librte_vhost/vi

[dpdk-dev] [PATCH 3/5] vhost: prefetch descriptor after the read barrier

2018-12-05 Thread Maxime Coquelin
This patch moves the prefetch after the available index is read to avoid prefetching a descriptor not available yet. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/lib

[dpdk-dev] [PATCH 2/5] vhost: enforce desc flags and content read ordering

2018-12-05 Thread Maxime Coquelin
A read barrier is required to ensure that the ordering between descriptor's flags and content reads is enforced. Fixes: 2f3225a7d69b ("vhost: add vector filling support for packed ring") Cc: sta...@dpdk.org Reported-by: Jason Wang Signed-off-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.

[dpdk-dev] [PATCH 1/5] vhost: enforce avail index and desc read ordering

2018-12-05 Thread Maxime Coquelin
A read barrier is required to ensure the ordering between available index and the descriptor reads is enforced. Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application") Cc: sta...@dpdk.org Reported-by: Jason Wang Signed-off-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.

  1   2   >