[dpdk-dev] [PATCH] virtio: fix memory leak of virtqueue memzones

2016-04-28 Thread Tan, Jianfeng
Hi Yuanhan, On 4/28/2016 6:37 AM, Yuanhan Liu wrote: > On Tue, Apr 26, 2016 at 12:32:12PM +, Jianfeng Tan wrote: >> Issue: When virtio was proposed in DPDK, there is no API to free memzones. >> But this has changed since rte_memzone_free() has been implemented by >> commit ff909fe21f. > The m

[dpdk-dev] [PATCH v3 1/2] i40e: fix problematic dereference

2016-04-28 Thread Helin Zhang
It fixes the issue reported by Coverity of 'Dereference before null check', by deleting null checks as they are not necessary at all, or move null checks before where uses it. Coverity ID 119267: Dereference before null check. Coverity ID 13301: Dereference before null check. Coverity ID 13294: De

[dpdk-dev] [PATCH v3 2/2] i40e: fix missing break in switch

2016-04-28 Thread Helin Zhang
It fixes the issue reported by Coverity of 'Missing break in switch', by deleting 'case I40E_VIRTCHNL_OP_FCOE', as it is not necessary at all. Coverity ID 13265: Missing break in switch. Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_pf.

[dpdk-dev] [PATCH v3 0/2] fix Coverity reported issues

2016-04-28 Thread Helin Zhang
It fixes the issue reported by Coverity of 'Missing break in switch', by deleting 'case I40E_VIRTCHNL_OP_FCOE', as it is not necessary at all. It also fixes the issue reported by Coverity of 'Dereference before null check', by deleting null checks as they are not necessary at all, or move null chec

[dpdk-dev] [PATCH V2] i40evf: add ops for rx queue and tx queue

2016-04-28 Thread Beilei Xing
Add 3 vf ops: rx_queue_count, rxq_info_get and txq_info_get. They can reuse corresponding pf APIs. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev_vf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index

[dpdk-dev] [PATCH V2] i40e: configure MTU

2016-04-28 Thread Beilei Xing
This patch enables configuring MTU for i40e. Since changing MTU needs to reconfigure queue, stop port first before configuring MTU. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/net/i

[dpdk-dev] [PATCH V2] i40evf: add ops for rx queue and tx queue

2016-04-28 Thread Wu, Jingjing
> -Original Message- > From: Xing, Beilei > Sent: Thursday, April 28, 2016 11:18 AM > To: Wu, Jingjing > Cc: dev at dpdk.org; Xing, Beilei > Subject: [PATCH V2] i40evf: add ops for rx queue and tx queue > > Add 3 vf ops: rx_queue_count, rxq_info_get and txq_info_get. They can > reuse cor

[dpdk-dev] [PATCH 0/7] vhost/example cleanup/fix

2016-04-28 Thread Wang, Zhihong
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yuanhan Liu > Sent: Tuesday, April 26, 2016 12:46 PM > To: dev at dpdk.org > Cc: Xie, Huawei ; Yuanhan Liu > > Subject: [dpdk-dev] [PATCH 0/7] vhost/example cleanup/fix > > I'm starting to work on the vhost AB

[dpdk-dev] [PATCH] mk: add build-time library directory to linker path

2016-04-28 Thread Tetsuya Mukawa
On 2016/04/27 20:02, Panu Matilainen wrote: > This is a pre-requisite for adding DT_NEEDED dependencies > between internal libraries. > > Signed-off-by: Panu Matilainen > --- > mk/rte.lib.mk | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk

[dpdk-dev] [PATCH] virtio: avoid avail ring entry index update if equal

2016-04-28 Thread Thomas Monjalon
2016-04-27 23:19, Yuanhan Liu: > And applied to dpdk-next-virtio, with few tiny changes: > > - we normally put suggested/reported-by above the SoB. Yes we must keep the chronological order in these lines.

[dpdk-dev] [PATCH v2 0/3] testpmd: extend commands for better scatter-gather tests

2016-04-28 Thread De Lara Guarch, Pablo
> -Original Message- > From: maciej.czekaj at caviumnetworks.com > [mailto:maciej.czekaj at caviumnetworks.com] > Sent: Friday, April 22, 2016 3:51 PM > To: dev at dpdk.org > Cc: De Lara Guarch, Pablo; Mcnamara, John; Maciej Czekaj > Subject: [PATCH v2 0/3] testpmd: extend commands for be

[dpdk-dev] [RFC PATCH] avail idx update optimizations

2016-04-28 Thread Xie, Huawei
On 4/24/2016 9:24 PM, Xie, Huawei wrote: > On 4/24/2016 5:15 PM, Michael S. Tsirkin wrote: >> On Sun, Apr 24, 2016 at 02:45:22AM +, Xie, Huawei wrote: >>> Forget to cc the mailing list. >>> >>> On 4/22/2016 9:53 PM, Xie, Huawei wrote: Hi: This is a series of virtio/vhost idx/ring

[dpdk-dev] [PATCH] examples: fix CID 30699 copy-paste error

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Mrozowicz, SlawomirX > Sent: Wednesday, April 13, 2016 12:47 PM > To: Dumitrescu, Cristian > Cc: dev at dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH] examples: fix CID 30699 copy-paste error > > It fix coverity issue: > CID 30699 (#1 of 1): Copy-paste

[dpdk-dev] [PATCH] cfgfile: fix uninitialized scalar variable

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Kobylinski, MichalX > Sent: Wednesday, April 13, 2016 1:15 PM > To: dev at dpdk.org; Dumitrescu, Cristian > Cc: Kobylinski, MichalX > Subject: [PATCH] cfgfile: fix uninitialized scalar variable > > CID 13323: > Uninitialized scalar variable. Using uninitial

[dpdk-dev] [PATCH] examples/ip_pipeline: fix out-of-bounds write

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Kerlin, MarcinX > Sent: Thursday, April 14, 2016 10:54 AM > To: dev at dpdk.org > Cc: Dumitrescu, Cristian ; Kerlin, MarcinX > > Subject: [PATCH] examples/ip_pipeline: fix out-of-bounds write > > CID 124567: > In the function app_init_eal(struct app params *

[dpdk-dev] [PATCH] examples: fix CID 30708 out-of-bounds read

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Mrozowicz, SlawomirX > Sent: Thursday, April 14, 2016 10:53 AM > To: Dumitrescu, Cristian > Cc: dev at dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH] examples: fix CID 30708 out-of-bounds read > > It fix coverity issue: > CID 30708 (#1 of 1): Out-of-bo

[dpdk-dev] [PATCH] examples: fix CID 30704 negative loop bound

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Mrozowicz, SlawomirX > Sent: Thursday, April 14, 2016 12:16 PM > To: Dumitrescu, Cristian > Cc: dev at dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH] examples: fix CID 30704 negative loop bound > > Fixes: de3cfa2c9823 ("sched: initial import") > Signed

[dpdk-dev] [PATCH v2] examples/qos_sched: fix copy-paste error

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Jastrzebski, MichalX K > Sent: Thursday, April 21, 2016 12:48 PM > To: Dumitrescu, Cristian ; Zhang, Roy Fan > ; Singh, Jasvinder > Cc: dev at dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH v2] examples/qos_sched: fix copy-paste error > > From: Slawomir

[dpdk-dev] [PATCH v2] examples/qos_sched: fix negative loop bound

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Jastrzebski, MichalX K > Sent: Thursday, April 21, 2016 12:48 PM > To: Dumitrescu, Cristian ; Zhang, Roy Fan > ; Singh, Jasvinder > Cc: dev at dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH v2] examples/qos_sched: fix negative loop bound > > From: Slawo

[dpdk-dev] [PATCH v2] examples/qos_sched: fix out-of-bounds read

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Jastrzebski, MichalX K > Sent: Thursday, April 21, 2016 12:48 PM > To: Dumitrescu, Cristian ; Zhang, Roy Fan > ; Singh, Jasvinder > Cc: dev at dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH v2] examples/qos_sched: fix out-of-bounds read > > From: Slawom

[dpdk-dev] [PATCH v3] examples/qos_sched: fix negative loop bound

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Jastrzebski, MichalX K > Sent: Thursday, April 21, 2016 2:08 PM > To: Dumitrescu, Cristian ; Zhang, Roy Fan > ; Singh, Jasvinder > Cc: dev at dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH v3] examples/qos_sched: fix negative loop bound > > From: Slawom

[dpdk-dev] [PATCH v3] examples/qos_sched: fix copy-paste error

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Jastrzebski, MichalX K > Sent: Thursday, April 21, 2016 2:08 PM > To: Dumitrescu, Cristian ; Zhang, Roy Fan > ; Singh, Jasvinder > Cc: dev at dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH v3] examples/qos_sched: fix copy-paste error > > From: Slawomir

[dpdk-dev] [PATCH] cfgfile: fix integer overflow

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Kobylinski, MichalX > Sent: Friday, April 22, 2016 11:41 AM > To: Dumitrescu, Cristian ; dev at dpdk.org > Cc: Kobylinski, MichalX > Subject: [PATCH] cfgfile: fix integer overflow > > Fix issue reported by Coverity. > > Coverity ID 13289: Integer overflowed

[dpdk-dev] [PATCH v3] examples/qos_sched: fix bad bit shift operation

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Jastrzebski, MichalX K > Sent: Thursday, April 21, 2016 2:08 PM > To: Dumitrescu, Cristian ; Zhang, Roy Fan > ; Singh, Jasvinder > Cc: dev at dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH v3] examples/qos_sched: fix bad bit shift operation > > From: Sl

[dpdk-dev] [PATCH v2] examples/qos_meter: fix unchecked return value

2016-04-28 Thread Dumitrescu, Cristian
> -Original Message- > From: Jastrzebski, MichalX K > Sent: Thursday, April 21, 2016 12:48 PM > To: Dumitrescu, Cristian ; Zhang, Roy Fan > ; Singh, Jasvinder > Cc: dev at dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH v2] examples/qos_meter: fix unchecked return value > > From: Sl

[dpdk-dev] [PATCH] lpm6: fix missing header dependency

2016-04-28 Thread Igor Ryzhov
Include stdint.h for the definition of uint*_t types. Signed-off-by: Igor Ryzhov --- lib/librte_lpm/rte_lpm6.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_lpm/rte_lpm6.h b/lib/librte_lpm/rte_lpm6.h index cedcea8..13d027f 100644 --- a/lib/librte_lpm/rte_lpm6.h +++ b/lib/librt

[dpdk-dev] [PATCH v2 0/3] testpmd: extend commands for better scatter-gather tests

2016-04-28 Thread Maciej Czekaj
On Thu, 28 Apr 2016 08:52:59 + De Lara Guarch, Pablo wrote: > > >> -Original Message- >> From: maciej.czekaj at caviumnetworks.com >> [mailto:maciej.czekaj at caviumnetworks.com] >> Sent: Friday, April 22, 2016 3:51 PM >> To: dev at dpdk.org >> Cc: De Lara Guarch, Pablo; Mcnamara, John;

[dpdk-dev] [PATCH v2 0/3] testpmd: extend commands for better scatter-gather tests

2016-04-28 Thread De Lara Guarch, Pablo
> -Original Message- > From: Maciej Czekaj [mailto:maciej.czekaj at caviumnetworks.com] > Sent: Thursday, April 28, 2016 1:10 PM > To: De Lara Guarch, Pablo; dev at dpdk.org > Cc: Mcnamara, John > Subject: Re: [dpdk-dev] [PATCH v2 0/3] testpmd: extend commands for > better scatter-gather

[dpdk-dev] [PATCH] virtio: avoid avail ring entry index update if equal

2016-04-28 Thread Xie, Huawei
On 4/28/2016 4:14 PM, Thomas Monjalon wrote: > 2016-04-27 23:19, Yuanhan Liu: >> And applied to dpdk-next-virtio, with few tiny changes: >> >> - we normally put suggested/reported-by above the SoB. > Yes we must keep the chronological order in these lines. > Thanks for reminder

[dpdk-dev] [PATCH v2 0/3] testpmd: extend commands for better scatter-gather tests

2016-04-28 Thread Maciej Czekaj
On Thu, 28 Apr 2016 13:13:20 + De Lara Guarch, Pablo wrote: > > >> -Original Message- >> From: Maciej Czekaj [mailto:maciej.czekaj at caviumnetworks.com] >> Sent: Thursday, April 28, 2016 1:10 PM >> To: De Lara Guarch, Pablo; dev at dpdk.org >> Cc: Mcnamara, John >> Subject: Re: [dpdk-d

[dpdk-dev] PKT_RX_VLAN_PKT when VLAN stripping is disabled

2016-04-28 Thread Olivier MATZ
Hi John, (adding some PMD maintainers in the loop) > From: Olivier Matz [mailto:olivier.matz at 6wind.com] >> It seems the meaning of the PKT_RX_VLAN_PKT bit depends on the port >> configuration: >> - if vlan stripping is configured, it means VLAN is present in vlan_tci >>mbuf field >> - if n

[dpdk-dev] [PATCH v2 1/1] cmdline: add any multi string mode to token string

2016-04-28 Thread Olivier MATZ
Hi Keith, On 04/15/2016 04:41 PM, Wiles, Keith wrote: >> While parsing token string there may be several modes: >> - fixed single string >> - multi-choice single string >> - any single string >> >> This patch add one more mode - any multi string. >> >> Signed-off-by: Piotr Azarewicz > > Does this

[dpdk-dev] [RFC PATCH v1 0/3] Remove string operations from xstats

2016-04-28 Thread Tahhan, Maryam
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of David Harton > (dharton) > Sent: Wednesday, April 20, 2016 5:04 PM > To: Horton, Remy ; dev at dpdk.org > Subject: Re: [dpdk-dev] [RFC PATCH v1 0/3] Remove string operations > from xstats > > > -Original Message- > > From: dev [mail

[dpdk-dev] [RFC PATCH v1 0/3] Remove string operations from xstats

2016-04-28 Thread David Harton (dharton)
> -Original Message- > From: Tahhan, Maryam [mailto:maryam.tahhan at intel.com] > Sent: Thursday, April 28, 2016 10:56 AM > To: David Harton (dharton) ; Horton, Remy > ; dev at dpdk.org > Cc: Mcnamara, John ; Van Haaren, Harry > > Subject: RE: [dpdk-dev] [RFC PATCH v1 0/3] Remove string op

[dpdk-dev] [PATCH v2] virtio: fix modify drv_flags for specific device

2016-04-28 Thread Jianfeng Tan
Issue: virtio's drv_flags are decided by devices types (modern vs legacy), and which kernel driver is used, and the negotiated features (especially VIRTIO_NET_STATUS) with backend, which makes it possible to multiple virtio devices have different versions of drv_flags, but this variable is currentl

[dpdk-dev] [PATCH v2 0/2] virtio: fix memory leak of virtqueue memzones

2016-04-28 Thread Jianfeng Tan
Commit 1: Do some cleanup in virtio_dev_queue_setup(); Commit 2: Fix the memory leak bug. Signed-off-by: Jianfeng Tan Jianfeng Tan (2): virtio: cleanup virtio_dev_queue_setup() virtio: fix memory leak of virtqueue memzones drivers/net/virtio/virtio_ethdev.c | 66 +--

[dpdk-dev] [PATCH v2 1/2] virtio: cleanup virtio_dev_queue_setup()

2016-04-28 Thread Jianfeng Tan
Signed-off-by: Jianfeng Tan --- drivers/net/virtio/virtio_ethdev.c | 47 +++--- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 1fe90ae..0553b67 100644 --- a/drivers/net/

[dpdk-dev] [PATCH v2 2/2] virtio: fix memory leak of virtqueue memzones

2016-04-28 Thread Jianfeng Tan
Issue: When virtio was proposed in DPDK, there is no API to free memzones. But this has changed since rte_memzone_free() has been implemented by commit ff909fe21f0a ("mem: introduce memzone freeing"). This patch is to make sure memzones in struct virtqueue, like mz and virtio_net_hdr_mz, are freed

[dpdk-dev] [PATCH v2 0/2] virtio: fix memory leak of virtqueue memzones

2016-04-28 Thread Tan, Jianfeng
Self NACK. Missed to reset vq->started. > -Original Message- > From: Tan, Jianfeng > Sent: Friday, April 29, 2016 3:04 AM > To: dev at dpdk.org > Cc: Xie, Huawei; yuanhan.liu at linux.intel.com; Tan, Jianfeng > Subject: [PATCH v2 0/2] virtio: fix memory leak of virtqueue memzones > > Com

[dpdk-dev] [PATCH v2 0/2] virtio: fix memory leak of virtqueue memzones

2016-04-28 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tan, Jianfeng > Sent: Friday, April 29, 2016 3:05 AM > To: dev at dpdk.org > Cc: Xie, Huawei; yuanhan.liu at linux.intel.com > Subject: Re: [dpdk-dev] [PATCH v2 0/2] virtio: fix memory leak of virtqueue > memzo

[dpdk-dev] [PATCH 3/4] examples: remove useless debug flags

2016-04-28 Thread Yuanhan Liu
On Fri, Apr 22, 2016 at 03:43:59PM +0200, Thomas Monjalon wrote: > The debug logs must be enabled at compile-time and run-time. > There are also some internal flags in some examples to enable the debug > logs of the applications. They are now enabled in debug configs and > can be disabled thanks to

[dpdk-dev] [PATCH v3 2/2] virtio: fix memory leak of virtqueue memzones

2016-04-28 Thread Yuanhan Liu
On Fri, Apr 29, 2016 at 12:48:46AM +, Jianfeng Tan wrote: > @@ -447,6 +453,7 @@ int virtio_dev_queue_setup(struct rte_eth_dev *dev, > > hw->vtpci_ops->setup_queue(hw, vq); > > + vq->started = 1; Judging that this is in the "_queue_setup" stage, and we have another stage called "_