Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-11 Thread Yuanhan Liu
On Wed, Jan 11, 2017 at 06:32:48PM +0100, Olivier MATZ wrote: > Generally speaking, we have to be careful when introducing new mbuf > flags, since we don't have so much of them (~25 remaining out of 64, > which mean we may run out of them in 3-4 years). > > In this particular case, despite the fla

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-11 Thread Tiwei Bie
On Wed, Jan 11, 2017 at 06:32:48PM +0100, Olivier MATZ wrote: > Hi Tiwei, Hi Thomas, > > On Mon, 09 Jan 2017 12:26:53 +0100, Thomas Monjalon > wrote: > > 2017-01-09 11:57, Tiwei Bie: > > > On Sun, Jan 08, 2017 at 08:39:55PM +0800, Ananyev, Konstantin > > > wrote: > > > > > Well my first reply t

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-11 Thread Olivier MATZ
Hi Tiwei, Hi Thomas, On Mon, 09 Jan 2017 12:26:53 +0100, Thomas Monjalon wrote: > 2017-01-09 11:57, Tiwei Bie: > > On Sun, Jan 08, 2017 at 08:39:55PM +0800, Ananyev, Konstantin > > wrote: > > > > Well my first reply to this thread was asking why isn't the > > > > whole API global from the start

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-09 Thread Tiwei Bie
On Mon, Jan 09, 2017 at 12:26:53PM +0100, Thomas Monjalon wrote: > 2017-01-09 11:57, Tiwei Bie: > > On Sun, Jan 08, 2017 at 08:39:55PM +0800, Ananyev, Konstantin wrote: > > > > Well my first reply to this thread was asking why isn't the whole API > > > > global > > > > from the start then? > > >

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-09 Thread Adrien Mazarguil
Hi Konstantin, On Sun, Jan 08, 2017 at 12:39:55PM +, Ananyev, Konstantin wrote: > > Hi Adrien, > > > > > Hi Konstantin, > > > > On Thu, Jan 05, 2017 at 11:32:38AM +, Ananyev, Konstantin wrote: > > > Hi Adrien, [...] > > > > PMD-specific symbols have nothing to do in the global namespac

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-09 Thread Thomas Monjalon
2017-01-09 11:57, Tiwei Bie: > On Sun, Jan 08, 2017 at 08:39:55PM +0800, Ananyev, Konstantin wrote: > > > Well my first reply to this thread was asking why isn't the whole API > > > global > > > from the start then? > > > > That's good question, and my preference would always be to have the > > A

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-08 Thread Tiwei Bie
On Sun, Jan 08, 2017 at 08:39:55PM +0800, Ananyev, Konstantin wrote: > Hi Adrien, > > > > > Hi Konstantin, > > > > On Thu, Jan 05, 2017 at 11:32:38AM +, Ananyev, Konstantin wrote: > > > Hi Adrien, > > > > > > > > > > > On Thu, Jan 05, 2017 at 07:56:08AM +0800, Tiwei Bie wrote: > > > > > On T

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-08 Thread Ananyev, Konstantin
Hi Adrien, > > Hi Konstantin, > > On Thu, Jan 05, 2017 at 11:32:38AM +, Ananyev, Konstantin wrote: > > Hi Adrien, > > > > > > > > On Thu, Jan 05, 2017 at 07:56:08AM +0800, Tiwei Bie wrote: > > > > On Thu, Jan 05, 2017 at 01:44:18AM +0800, Ananyev, Konstantin wrote: > > > > [...] > > > > > >

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-05 Thread Adrien Mazarguil
Hi Konstantin, On Thu, Jan 05, 2017 at 11:32:38AM +, Ananyev, Konstantin wrote: > Hi Adrien, > > > > > On Thu, Jan 05, 2017 at 07:56:08AM +0800, Tiwei Bie wrote: > > > On Thu, Jan 05, 2017 at 01:44:18AM +0800, Ananyev, Konstantin wrote: > > > [...] > > > > > > > > > > > > I understand that.

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-05 Thread Ananyev, Konstantin
Hi Adrien, > > On Thu, Jan 05, 2017 at 07:56:08AM +0800, Tiwei Bie wrote: > > On Thu, Jan 05, 2017 at 01:44:18AM +0800, Ananyev, Konstantin wrote: > > [...] > > > > > > > > > > I understand that. > > > > > My question was: suppose user would like to create a bonded device > > > > > over 2 NICs.

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-05 Thread Tiwei Bie
On Thu, Jan 05, 2017 at 09:33:22AM +0100, Adrien Mazarguil wrote: > On Thu, Jan 05, 2017 at 07:56:08AM +0800, Tiwei Bie wrote: > > On Thu, Jan 05, 2017 at 01:44:18AM +0800, Ananyev, Konstantin wrote: > > [...] > > > > > > > > > > I understand that. > > > > > My question was: suppose user would like

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-05 Thread Adrien Mazarguil
On Thu, Jan 05, 2017 at 07:56:08AM +0800, Tiwei Bie wrote: > On Thu, Jan 05, 2017 at 01:44:18AM +0800, Ananyev, Konstantin wrote: > [...] > > > > > > > > I understand that. > > > > My question was: suppose user would like to create a bonded device over > > > > 2 NICs. > > > > One of them is ixgbe,

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-04 Thread Tiwei Bie
On Thu, Jan 05, 2017 at 01:44:18AM +0800, Ananyev, Konstantin wrote: [...] > > > > > > I understand that. > > > My question was: suppose user would like to create a bonded device over 2 > > > NICs. > > > One of them is ixgbe, while other would be some other type. > > > In future get_dev_info() for

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-04 Thread Ananyev, Konstantin
> -Original Message- > From: Bie, Tiwei > Sent: Wednesday, January 4, 2017 5:00 PM > To: Ananyev, Konstantin > Cc: dev@dpdk.org; adrien.mazarg...@6wind.com; Lu, Wenzhuo > ; Mcnamara, John ; > olivier.m...@6wind.com; thomas.monja...@6wind.com; Zhang, Helin > ; Dai, Wei ; Wang, > Xiao W

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-04 Thread Tiwei Bie
On Wed, Jan 04, 2017 at 11:14:25PM +0800, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Bie, Tiwei > > Sent: Wednesday, January 4, 2017 2:39 PM > > To: Ananyev, Konstantin > > Cc: dev@dpdk.org; adrien.mazarg...@6wind.com; Lu, Wenzhuo > > ; Mcnamara, John ; > > olivier.

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-04 Thread Ananyev, Konstantin
> -Original Message- > From: Bie, Tiwei > Sent: Wednesday, January 4, 2017 2:39 PM > To: Ananyev, Konstantin > Cc: dev@dpdk.org; adrien.mazarg...@6wind.com; Lu, Wenzhuo > ; Mcnamara, John ; > olivier.m...@6wind.com; thomas.monja...@6wind.com; Zhang, Helin > ; Dai, Wei ; Wang, > Xiao W

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-04 Thread Tiwei Bie
On Wed, Jan 04, 2017 at 10:21:08PM +0800, Ananyev, Konstantin wrote: > Hi Twei, > > > -Original Message- > > From: Bie, Tiwei > > Sent: Wednesday, January 4, 2017 7:22 AM > > To: dev@dpdk.org > > Cc: adrien.mazarg...@6wind.com; Lu, Wenzhuo ; > > Mcnamara, John ; > > olivier.m...@6wind.com

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-04 Thread Ananyev, Konstantin
Hi Twei, > -Original Message- > From: Bie, Tiwei > Sent: Wednesday, January 4, 2017 7:22 AM > To: dev@dpdk.org > Cc: adrien.mazarg...@6wind.com; Lu, Wenzhuo ; Mcnamara, > John ; > olivier.m...@6wind.com; thomas.monja...@6wind.com; Ananyev, Konstantin > ; Zhang, Helin > ; Dai, Wei ; Wang,

[dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-03 Thread Tiwei Bie
Reserve a Tx capability flag and a Rx capability flag, that can be used by PMD to define its own capability flags when implementing the PMD-specific API. Suggested-by: Adrien Mazarguil Signed-off-by: Tiwei Bie Acked-by: Wenzhuo Lu --- lib/librte_ether/rte_ethdev.h | 2 ++ 1 file changed, 2 ins