[dpdk-dev] [PATCH] eal: fix rte_intr_dp_is_en() check

2016-07-20 Thread Liang, Cunming
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, July 20, 2016 4:42 PM > To: Liang, Cunming > Cc: Yong Wang ; dev at dpdk.org; > david.marchand at 6wind.com > Subject: Re: [dpdk-dev] [PATCH] eal:

[dpdk-dev] [PATCH] eal: fix rte_intr_dp_is_en() check

2016-07-20 Thread Liang, Cunming
Hi Yong, > -Original Message- > From: Yong Wang [mailto:yongwang at vmware.com] > Sent: Wednesday, July 20, 2016 5:59 AM > To: Thomas Monjalon > Cc: dev at dpdk.org; Liang, Cunming ; > david.marchand at 6wind.com > Subject: Re: [dpdk-dev] [PATCH] eal: fix rte_

[dpdk-dev] [PATCH] eal: fix rte_intr_dp_is_en() check

2016-07-18 Thread Liang, Cunming
Hi Yong, rte_intr_dp_is_en() returns true when rte_intr_efd_enable() (the way to enable data-path interrupt) sets a number of event fds. In this case, "intr_conf.rxq=1" configuration causes "nb_efd=1". The value comes from RTE_MIN($nb_efd, 1) from data-path, but not from link event. Per link

[dpdk-dev] [dpdk-dev, 1/3] rte_interrupts: add rte_eal_intr_exit to shut down IRQ thread

2016-07-11 Thread Liang, Cunming
ler > > >> is not good enough to terminate app. > > > Yes if someone call tell me more about what it is so I can check it. Thanks, Cunming > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Saturday, July 09, 2016 1:36

[dpdk-dev] [RFC] Generic flow director/filtering/classification API

2016-07-11 Thread Liang, Cunming
Hi Adrien, Thanks so much for the explanation. > -Original Message- > From: Adrien Mazarguil [mailto:adrien.mazarguil at 6wind.com] > Sent: Friday, July 08, 2016 9:26 PM > To: Liang, Cunming > Cc: dev at dpdk.org; Thomas Monjalon ; Zhang, > Helin ; Wu, Jingjing ; >

[dpdk-dev] [RFC] Generic flow director/filtering/classification API

2016-07-08 Thread Liang, Cunming
Hi Adrien, On 7/6/2016 2:16 AM, Adrien Mazarguil wrote: > Hi All, > > First, forgive me for this large message, I know our mailboxes already > suffer quite a bit from the amount of traffic on this ML. > > This is not exactly yet another thread about how flow director should be > extended, rather

[dpdk-dev] [PATCH 05/18] mbuf: add function to get packet type from data

2016-07-08 Thread Liang, Cunming
Hi Olivier, > -Original Message- > From: Olivier Matz [mailto:olivier.matz at 6wind.com] > Sent: Thursday, July 07, 2016 11:49 PM > To: Liang, Cunming ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 05/18] mbuf: add function to get packet type > from data > >

[dpdk-dev] [PATCH 09/18] mbuf: support Mpls in software packet type parser

2016-07-07 Thread Liang, Cunming
Hi Olivier, > -Original Message- > From: Olivier MATZ [mailto:olivier.matz at 6wind.com] > Sent: Wednesday, July 06, 2016 4:00 PM > To: Liang, Cunming ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 09/18] mbuf: support Mpls in software packet > type parser > >

[dpdk-dev] [PATCH 05/18] mbuf: add function to get packet type from data

2016-07-07 Thread Liang, Cunming
Hi Olivier, > -Original Message- > From: Olivier MATZ [mailto:olivier.matz at 6wind.com] > Sent: Wednesday, July 06, 2016 3:43 PM > To: Liang, Cunming ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 05/18] mbuf: add function to get packet type > from data > > H

[dpdk-dev] [PATCH 09/18] mbuf: support Mpls in software packet type parser

2016-07-06 Thread Liang, Cunming
Hi Olivier, On 7/5/2016 11:41 PM, Olivier Matz wrote: > Add a new RTE_PTYPE_L2_ETHER_MPLS packet type, and its support in > rte_pktmbuf_get_ptype(). > > Signed-off-by: Didier Pallard > Signed-off-by: Olivier Matz > --- > lib/librte_mbuf/rte_mbuf_ptype.c | 25 + >

[dpdk-dev] [dpdk-dev, 1/3] rte_interrupts: add rte_eal_intr_exit to shut down IRQ thread

2016-03-23 Thread Liang, Cunming
Hi Mattew, Thank you for your time. On 3/22/2016 3:39 PM, Matthew Hall wrote: > On Mon, Mar 21, 2016 at 03:58:44PM +0800, Liang, Cunming wrote: >> the default termination handler > I am not so experienced with this "default termination handler". Can someone > clar

[dpdk-dev] [PATCH] ixgbe: fix vector RX can't always set packet_type properly

2016-03-23 Thread Liang, Cunming
> 2 files changed, 12 insertions(+), 26 deletions(-) > > Acked-by: Liang Cunming

[dpdk-dev] [dpdk-dev, 1/3] rte_interrupts: add rte_eal_intr_exit to shut down IRQ thread

2016-03-21 Thread Liang, Cunming
Hi Matthew, On 3/18/2016 6:55 AM, Matthew Hall wrote: > From Cunming: >> I'm trying to understand the motivation. >> >> I don't think you're going to gracefully exit intr thread but leave all >> other eal threads live. We don't have API to new launch intr thread again. > The doc comment added

[dpdk-dev] [PATCH 1/3] rte_interrupts: add rte_eal_intr_exit to shut down IRQ thread

2016-03-09 Thread Liang, Cunming
Hi Mattew, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Matthew Hall > Sent: Sunday, February 14, 2016 5:39 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 1/3] rte_interrupts: add rte_eal_intr_exit to shut > down IRQ thread > > There is no good

[dpdk-dev] [PATCH v2] fm10k: handle err flags in vector RX func

2016-02-18 Thread Liang, Cunming
Hi, > -Original Message- > From: Chen, Jing D > Sent: Saturday, February 06, 2016 2:49 PM > To: Liang, Cunming; He, Shaopeng > Cc: dev at dpdk.org; Chen, Jing D > Subject: [PATCH v2] fm10k: handle err flags in vector RX func > > From: "Chen Jing D(Mark)&

[dpdk-dev] [PATCH v3] PCI: ABI change request for adding new field in rte_pci_id structure

2016-02-18 Thread Liang, Cunming
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ziye Yang > Sent: Wednesday, February 17, 2016 9:55 AM > To: dev at dpdk.org > Cc: Yang, Ziye > Subject: [dpdk-dev] [PATCH v3] PCI: ABI change request for adding new field in > rte_pci_id structure > > From:

[dpdk-dev] [PATCH v2 07/11] ixgbevf: cleanup unnecessary interrupt handler

2015-11-04 Thread Liang, Cunming
Hi David, On 11/3/2015 12:06 AM, David Marchand wrote: > On Fri, Oct 30, 2015 at 6:27 AM, Cunming Liang > wrote: > >> As ixgbe vf doesn't support lsc, the patch removes those unused code. >> In addition, it does some tiny cleanup. >> > Please, can you describe this tiny cleanup ? > Did it

[dpdk-dev] [PATCH v2 05/11] eal/linux: add intr api to report multi-vector capability

2015-11-04 Thread Liang, Cunming
Hi David, On 11/2/2015 11:59 PM, David Marchand wrote: > On Fri, Oct 30, 2015 at 6:27 AM, Cunming Liang > wrote: > >> VFIO allows multiple MSI-X vector, others doesn't, but maybe will allow it >> in the future. >> Device drivers need to be aware of the capability. >> It's better to avoid

[dpdk-dev] [PATCH v2 01/11] eal/linux: vfio map misc intr to vector zero

2015-11-04 Thread Liang, Cunming
Hi David, On 11/2/2015 11:53 PM, David Marchand wrote: > Hello, > > On Fri, Oct 30, 2015 at 6:27 AM, Cunming Liang > wrote: > [snip] > >> diff --git a/lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h >> b/lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h >> index

[dpdk-dev] [PATCH 0/4 v4] i40e: add vector PMD support for FVL

2015-10-30 Thread Liang, Cunming
Hi, > -Original Message- > From: Tao, Zhe > Sent: Friday, October 30, 2015 10:17 PM > To: dev at dpdk.org > Cc: Tao, Zhe; Liang, Cunming > Subject: [dpdk-dev][PATCH 0/4 v4] i40e: add vector PMD support for FVL > > This patch set add the vector PMD support for FV

[dpdk-dev] [PATCH v2 01/11] eal/linux: vfio map misc intr to vector zero

2015-10-30 Thread Liang, Cunming
Hi David, May I ask your help to review the patch related to eal ? Thanks, Steve > -Original Message- > From: Liang, Cunming > Sent: Friday, October 30, 2015 1:28 PM > To: dev at dpdk.org > Cc: Zhang, Helin; He, Shaopeng; Wu, Jingjing; Liang, Cunming > Subject: [PATCH v

[dpdk-dev] [PATCH 3/4 v3] add vector PMD scatter RX for FVL

2015-10-30 Thread Liang, Cunming
Hi, > -Original Message- > From: Tao, Zhe > Sent: Friday, October 30, 2015 9:02 PM > To: dev at dpdk.org > Cc: Tao, Zhe; Liang, Cunming > Subject: [dpdk-dev][PATCH 3/4 v3] add vector PMD scatter RX for FVL > > To support the multiple segments in one packets when

[dpdk-dev] [PATCH 1/4 v3] add vector PMD RX for FVL

2015-10-30 Thread Liang, Cunming
Hi, > -Original Message- > From: Tao, Zhe > Sent: Friday, October 30, 2015 9:02 PM > To: dev at dpdk.org > Cc: Tao, Zhe; Liang, Cunming > Subject: [dpdk-dev][PATCH 1/4 v3] add vector PMD RX for FVL > > The vPMD RX function uses the multi-buffer and SSE instruction

[dpdk-dev] [PATCH 2/4 v3] add vector PMD TX for FVL

2015-10-30 Thread Liang, Cunming
Hi, > -Original Message- > From: Tao, Zhe > Sent: Friday, October 30, 2015 9:02 PM > To: dev at dpdk.org > Cc: Tao, Zhe; Liang, Cunming > Subject: [dpdk-dev][PATCH 2/4 v3] add vector PMD TX for FVL > > The way to increase the performance of the vPMD TX is to use

[dpdk-dev] [PATCH v5 00/14] Vector Rx/Tx PMD implementation for fm10k

2015-10-30 Thread Liang, Cunming
> -Original Message- > From: Chen, Jing D > Sent: Friday, October 30, 2015 4:03 PM > To: dev at dpdk.org > Cc: Liang, Cunming; Tao, Zhe; He, Shaopeng; Ananyev, Konstantin; Richardson, > Bruce; Chen, Jing D > Subject: [PATCH v5 00/14] Vector Rx/Tx PMD implementatio

[dpdk-dev] [PATCH v2] i40e: fix the write back issue in FVL VF

2015-10-30 Thread Liang, Cunming
Hi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jingjing Wu > Sent: Wednesday, October 21, 2015 10:18 AM > To: dev at dpdk.org > Cc: Pei, Yulong > Subject: [dpdk-dev] [PATCH v2] i40e: fix the write back issue in FVL VF > > If DPDK is used on VF while

[dpdk-dev] [PATCH v4 00/16] Vector Rx/Tx PMD implementation for fm10k

2015-10-29 Thread Liang, Cunming
Hi, > -Original Message- > From: Chen, Jing D > Sent: Thursday, October 29, 2015 5:16 PM > To: dev at dpdk.org > Cc: Liang, Cunming; Tao, Zhe; He, Shaopeng; Ananyev, Konstantin; Richardson, > Bruce; Chen, Jing D > Subject: [PATCH v4 00/16] Vector Rx/Tx PMD imp

[dpdk-dev] [PATCH v3 0/8] interrupt mode for e1000

2015-10-29 Thread Liang, Cunming
Hi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yong Liu > Sent: Thursday, October 29, 2015 5:19 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 0/8] interrupt mode for e1000 > > This patch set will enable interrup for physical and emulated

[dpdk-dev] [PATCH v3 04/16] fm10k: add func to re-allocate mbuf for RX ring

2015-10-29 Thread Liang, Cunming
Hi Mark? > -Original Message- > From: Chen, Jing D > Sent: Thursday, October 29, 2015 1:24 PM > To: Liang, Cunming; dev at dpdk.org > Cc: Tao, Zhe; He, Shaopeng; Ananyev, Konstantin; Richardson, Bruce > Subject: RE: [PATCH v3 04/16] fm10k: add func to re-allocate mbuf f

[dpdk-dev] [PATCH v3 08/16] fm10k: add Vector RX scatter function

2015-10-29 Thread Liang, Cunming
Hi Mark, > -Original Message- > From: Chen, Jing D > Sent: Thursday, October 29, 2015 1:28 PM > To: Liang, Cunming; dev at dpdk.org > Cc: Tao, Zhe; He, Shaopeng; Ananyev, Konstantin; Richardson, Bruce > Subject: RE: [PATCH v3 08/16] fm10k: add Vector RX scatter funct

[dpdk-dev] [PATCH v3 04/16] fm10k: add func to re-allocate mbuf for RX ring

2015-10-28 Thread Liang, Cunming
Hi Mark, On 10/27/2015 5:46 PM, Chen Jing D(Mark) wrote: > From: "Chen Jing D(Mark)" > > Add function fm10k_rxq_rearm to re-allocate mbuf for used desc > in RX HW ring. > > Signed-off-by: Chen Jing D(Mark) > --- > drivers/net/fm10k/fm10k.h |9 >

[dpdk-dev] [PATCH v2 08/16] fm10k: add Vector RX scatter function

2015-10-27 Thread Liang, Cunming
Hi, On 10/22/2015 5:44 PM, Chen Jing D(Mark) wrote: > From: "Chen Jing D(Mark)" > > Add func fm10k_recv_scattered_pkts_vec to receive chained packets > with SSE instructions. > > Signed-off-by: Chen Jing D(Mark) > --- > drivers/net/fm10k/fm10k.h |2 + >

[dpdk-dev] [PATCH v2 06/16] fm10k: add Vector RX function

2015-10-27 Thread Liang, Cunming
Hi, On 10/22/2015 5:44 PM, Chen Jing D(Mark) wrote: > From: "Chen Jing D(Mark)" > > Add func fm10k_recv_raw_pkts_vec to parse raw packets, in which > includes possible chained packets. > Add func fm10k_recv_pkts_vec to receive single mbuf packet. > > Signed-off-by: Chen Jing D(Mark) > --- >

[dpdk-dev] [PATCH v1 3/7] e1000: add ethdev rxq enable and disable function

2015-10-26 Thread Liang, Cunming
On 9/25/2015 4:28 PM, Yong Liu wrote: > From: Marvin Liu > > Implement rxq interrupt related functions in eth_dev_ops structure. > > Signed-off-by: Marvin Liu > > diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c > index e86c039..2b67b62 100644 > ---

[dpdk-dev] [PATCH v1 1/7] e1000: add rx interrupt support

2015-10-26 Thread Liang, Cunming
Hi Yong, On 9/25/2015 4:28 PM, Yong Liu wrote: > From: Marvin Liu > > Enable rx interrupt support on e1000 PF non-IOV mode. As I know, e1000 hasn't IOV mode. It's not necessary to mention PF non-IOV mode or not. In addition, it's necessary to mention the patch series is to support uio/vfio or

[dpdk-dev] [PATCH] eal/linux: fix rte_epoll_wait

2015-08-21 Thread Liang, Cunming
Hi, > -Original Message- > From: Robert Sanford [mailto:rsanford2 at gmail.com] > Sent: Tuesday, August 18, 2015 11:54 PM > To: Liang, Cunming; dev at dpdk.org > Subject: [PATCH] eal/linux: fix rte_epoll_wait > > Function rte_epoll_wait should return when underlying

[dpdk-dev] [PATCH v3] ixgbe: remove vector pmd burst size restriction

2015-08-05 Thread Liang, Cunming
Hi Zoltan, > -Original Message- > From: Zoltan Kiss [mailto:zoltan.kiss at linaro.org] > Sent: Wednesday, August 05, 2015 12:26 AM > To: Liang, Cunming; dev at dpdk.org > Cc: Ananyev, Konstantin > Subject: Re: [PATCH v3] ixgbe: remove vector pmd burst size restriction &

[dpdk-dev] [PATCH v2] ixgbe: remove vector pmd burst size restriction

2015-08-04 Thread Liang, Cunming
Hi Zoltan, > > } else if (adapter->rx_vec_allowed) { > > PMD_INIT_LOG(DEBUG, "Vector rx enabled, please make sure RX " > > - "burst size no less than 32."); > > + "burst size no less than " > > +

[dpdk-dev] [PATCH v1] ixgbe: remove vector pmd burst size restriction

2015-08-03 Thread Liang, Cunming
Hi, [...] > > Another thing, that I just thought about: > > Right now we invoke ixgbe_rxq_rearm() only at the start of > > _recv_raw_pkts_vec(). > > Before it was ok, as _recv_raw_pkts_vec() would never try to read more then > 32 > > RXDs. > > But what would happen if nb_pkts > rxq->nb_desc and

[dpdk-dev] [PATCH] eal/linux: fix negative value for undetermined numa_node

2015-08-03 Thread Liang, Cunming
Hi, On 8/1/2015 11:56 AM, Matthew Hall wrote: > I asked about this many months ago and was informed that "-1" is a "standard > error value" that I should expect from these APIs when NUMA is not present. > Now we're saying I have to change my code again to handle a zero value? > > Also not sure

[dpdk-dev] [PATCH v1] ixgbe: remove vector pmd burst size restriction

2015-08-03 Thread Liang, Cunming
Hi, [...] > > > uint16_t > > > ixgbe_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts, > > > uint16_t nb_pkts) > > > { > > > struct ixgbe_rx_queue *rxq = rx_queue; > > > - uint8_t split_flags[RTE_IXGBE_VPMD_RX_BURST] = {0}; > > > + uint8_t

[dpdk-dev] [PATCH v1] ixgbe: remove vector pmd burst size restriction

2015-08-03 Thread Liang, Cunming
Hi, [...] > > diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c > > index 3f808b3..dbdb761 100644 > > --- a/drivers/net/ixgbe/ixgbe_rxtx.c > > +++ b/drivers/net/ixgbe/ixgbe_rxtx.c > > @@ -4008,7 +4008,8 @@ ixgbe_set_rx_function(struct rte_eth_dev *dev) > > */ > >

[dpdk-dev] [PATCH] doc: announce ABI change for rte_eth_fdir_filter

2015-07-30 Thread Liang, Cunming
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jingjing Wu > Sent: Monday, July 20, 2015 3:04 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] doc: announce ABI change for rte_eth_fdir_filter > > To fix the FVL's flow director issue for SCTP flow,

[dpdk-dev] [PATCH v2] lpm: fix extended flag check when adding a "depth small" entry

2015-07-30 Thread Liang, Cunming
> -Original Message- > From: Tao, Zhe > Sent: Thursday, July 30, 2015 11:19 AM > To: dev at dpdk.org > Cc: Tao, Zhe; Liang, Cunming; Richardson, Bruce > Subject: [dpdk-dev][PATCH v2] lpm: fix extended flag check when adding a > "depth small" entry > &

[dpdk-dev] [PATCH] lpm: fix extended flag check when adding a "depth small" entry

2015-07-29 Thread Liang, Cunming
On 7/28/2015 5:14 PM, Zhe Tao wrote: > When adding a "depth small" entry, if its extended flag is not set > and its depth is smaller than the one in the tbl24, nothing should > be done otherwise will operate on the wrong memory area. > > Signed-off-by: Zhe Tao > --- > lib/librte_lpm/rte_lpm.c

[dpdk-dev] ixgbe vPMD RX functions and buffer number minimum requirement

2015-07-28 Thread Liang, Cunming
Hi, On 7/28/2015 8:10 AM, Ananyev, Konstantin wrote: > Hi Zoltan, > >> -Original Message- >> From: Zoltan Kiss [mailto:zoltan.kiss at linaro.org] >> Sent: Monday, July 27, 2015 12:38 PM >> To: Ananyev, Konstantin; Richardson, Bruce; dev at dpdk.org >> Subject: Re: [dpdk-dev] ixgbe vPMD RX

[dpdk-dev] [PATCH v15 00/13] Interrupt mode PMD

2015-07-23 Thread Liang, Cunming
and version map fixing. It missed the rc1 in the last minutes, I'm now asking for the exception to make it go into v2.1 rc2 if nobody will reject it. Again, thanks for all the comments by Stephen, David, Neil and Thomas. Thanks, Steve > -Original Message- > From: Liang, Cunming

[dpdk-dev] [PATCH v14 10/13] ethdev: add rx intr enable, disable and ctl functions

2015-07-20 Thread Liang, Cunming
On 7/18/2015 5:40 AM, Stephen Hemminger wrote: >> +/** >>* Turn on the LED on the Ethernet device. >>* This function turns on the LED on the Ethernet device. >>* >> diff --git a/lib/librte_ether/rte_ether_version.map >> b/lib/librte_ether/rte_ether_version.map >> index

[dpdk-dev] [PATCH v14 06/13] eal/linux: standalone intr event fd create support

2015-07-20 Thread Liang, Cunming
On 7/20/2015 7:39 AM, Thomas Monjalon wrote: > 2015-07-20 01:35, Thomas Monjalon: >> 2015-07-17 14:16, Cunming Liang: >>> +#ifdef RTE_NEXT_ABI >>> +extern int >>> +rte_intr_efd_enable(struct rte_intr_handle *intr_handle, uint32_t nb_efd); >>> +#else >>> +static inline int >>>

[dpdk-dev] [PATCH v14 01/13] eal/linux: add interrupt vectors support in intr_handle

2015-07-20 Thread Liang, Cunming
On 7/20/2015 7:31 AM, Thomas Monjalon wrote: > 2015-07-17 14:16, Cunming Liang: >> +#ifdef RTE_NEXT_ABI >> +/** >> + * RTE_NEXT_ABI will be removed from v2.2. >> + * It's only used to avoid ABI(unannounced) broken in v2.1. >> + * Make sure being aware of the impact before turning

[dpdk-dev] [PATCH v13 00/14] Interrupt mode PMD

2015-07-17 Thread Liang, Cunming
> -Original Message- > From: David Marchand [mailto:david.marchand at 6wind.com] > Sent: Thursday, July 09, 2015 9:59 PM > To: Liang, Cunming > Cc: dev at dpdk.org; Stephen Hemminger; Thomas Monjalon; Zhou, Danny; Wang, > Liang-min; Richardson, Bruce; Liu, Yong; Nei

[dpdk-dev] [PATCH v13 13/14] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch

2015-07-17 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, July 14, 2015 1:13 AM > To: Liang, Cunming > Cc: dev at dpdk.org; shemming at brocade.com; david.marchand at 6wind.com; > Zhou, Danny; Wang, Liang-min; Richardson

[dpdk-dev] [PATCH v13 08/14] eal/bsd: dummy for new intr definition

2015-07-17 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, July 14, 2015 1:06 AM > To: Liang, Cunming > Cc: dev at dpdk.org; shemming at brocade.com; david.marchand at 6wind.com; > Zhou, Danny; Wang, Liang-min; Richardson

[dpdk-dev] [PATCH v13 06/14] eal/linux: standalone intr event fd create support

2015-07-17 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, July 14, 2015 1:02 AM > To: Liang, Cunming > Cc: dev at dpdk.org; shemming at brocade.com; david.marchand at 6wind.com; > Zhou, Danny; Wang, Liang-min; Richardson

[dpdk-dev] [PATCH v13 02/14] eal/linux: add rte_epoll_wait/ctl support

2015-07-17 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, July 14, 2015 12:56 AM > To: Liang, Cunming > Cc: dev at dpdk.org; shemming at brocade.com; david.marchand at 6wind.com; > Zhou, Danny; Wang, Liang-min; Richardson

[dpdk-dev] [PATCH v13 01/14] eal/linux: add interrupt vectors support in intr_handle

2015-07-17 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, July 14, 2015 12:41 AM > To: Liang, Cunming > Cc: dev at dpdk.org; shemming at brocade.com; david.marchand at 6wind.com; > Zhou, Danny; Wang, Liang-min; Richardson

[dpdk-dev] [PATCH v1] app/test: fix pmd_perf issue in no NUMA case

2015-06-23 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, June 23, 2015 5:02 AM > To: Liang, Cunming > Cc: dev at dpdk.org; Jayakumar, Muthurajan > Subject: Re: [dpdk-dev] [PATCH v1] app/test: fix pmd_perf issue in no NUMA >

[dpdk-dev] l2fwd consumes 100% cpu

2015-06-08 Thread Liang, Cunming
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Victor Detoni > Sent: Monday, June 08, 2015 9:06 AM > To: dev at dpdk.org > Subject: [dpdk-dev] l2fwd consumes 100% cpu > > hello, > > I'm looking for some documentation about this issue, but I could found

[dpdk-dev] [PATCH v10 03/13] eal/linux: add API to set rx interrupt event monitor

2015-06-03 Thread Liang, Cunming
On 6/3/2015 12:24 AM, Stephen Hemminger wrote: > On Tue, 2 Jun 2015 14:53:16 +0800 > Cunming Liang wrote: > >> +if (!rc) >> +RTE_LOG(DEBUG, EAL, "eventfd %d associated with vec %d" >> +" is added on epfd %d\n", rev->fd, vec, epfd); >

[dpdk-dev] [PATCH v10 06/13] eal/linux: standalone intr event fd create support

2015-06-03 Thread Liang, Cunming
On 6/3/2015 12:27 AM, Stephen Hemminger wrote: > Minor spelling and stuff. I am a terrible speller... > >> The patch exposes intr event fd create and release for PMD. >> The device driver can assign the number of event associated with interrupt >> vector. >> It also provides misc funtions to

[dpdk-dev] [PATCH v10 02/13] eal/linux: add rte_epoll_wait/ctl support

2015-06-03 Thread Liang, Cunming
On 6/3/2015 12:21 AM, Stephen Hemminger wrote: > On Tue, 2 Jun 2015 14:53:15 +0800 > Cunming Liang wrote: > >> The patch adds 'rte_epoll_wait' and 'rte_epoll_ctl' for async event wakeup. >> It defines 'struct rte_epoll_event' as the event param. >> The 'op' uses the same enum as epoll_wait/ctl

[dpdk-dev] [PATCH v9 12/12] abi: fix v2.1 abi broken issue

2015-06-01 Thread Liang, Cunming
Hi Stephen, On 5/29/2015 11:27 PM, Stephen Hemminger wrote: > On Fri, 29 May 2015 16:45:25 +0800 > Cunming Liang wrote: > >> +#ifdef RTE_EAL_RX_INTR >> +extern int >> rte_eth_dev_rx_intr_ctl(uint8_t port_id, int epfd, int op, void *data); >> +#else >> +static inline int >>

[dpdk-dev] [PATCH v8 01/11] eal/linux: add interrupt vectors support in intr_handle

2015-05-29 Thread Liang, Cunming
Hi Neil, On 5/22/2015 1:58 AM, Neil Horman wrote: > On Thu, May 21, 2015 at 10:43:00AM -0700, Stephen Hemminger wrote: >> On Thu, 21 May 2015 06:32:02 -0400 >> Neil Horman wrote: >> >>> On Thu, May 21, 2015 at 04:55:53PM +0800, Cunming Liang wrote: The patch adds interrupt vectors support

[dpdk-dev] [PATCH v8 05/11] eal/linux: add interrupt vectors handling on VFIO

2015-05-27 Thread Liang, Cunming
On 5/23/2015 4:21 AM, Stephen Hemminger wrote: > On Thu, 21 May 2015 16:55:57 +0800 > Cunming Liang wrote: > >> This patch does below: >> - Create VFIO eventfds for each interrupt vector (move to next) >> - Assign per interrupt vector's eventfd to VFIO by ioctl >> >> Signed-off-by: Danny

[dpdk-dev] [PATCH 5/5] uio: integrate MSI-X support

2015-05-25 Thread Liang, Cunming
On 5/19/2015 1:40 AM, Stephen Hemminger wrote: > +/* enable MSI-X interrupts */ > +static int > +uio_msix_enable(struct rte_intr_handle *intr_handle) > +{ > + int i, max_intr; > + > + if (!intr_handle->max_intr || > + intr_handle->max_intr > RTE_MAX_RXTX_INTR_VEC_ID) > +

[dpdk-dev] [PATCH 4/5] uio: new driver with MSI-X support

2015-05-25 Thread Liang, Cunming
On 5/19/2015 1:40 AM, Stephen Hemminger wrote: > + > +/* set the mapping between vector # and existing eventfd. */ > +static int set_irq_eventfd(struct uio_msi_pci_dev *udev, u32 vec, int fd) > +{ > + struct uio_msi_irq_ctx *ctx; > + struct eventfd_ctx *trigger; > + int irq, err; > +

[dpdk-dev] [PATCH v8 08/11] ethdev: add rx intr enable, disable and ctl functions

2015-05-22 Thread Liang, Cunming
On 5/22/2015 2:20 AM, Stephen Hemminger wrote: > On Thu, 21 May 2015 16:56:00 +0800 > Cunming Liang wrote: > >> +int >> +rte_eth_dev_rx_intr_ctl_q(uint8_t port_id, uint16_t queue_id, >> + int epfd, int op, void *data) >> +{ >> +uint32_t vec; >> +struct rte_eth_dev

[dpdk-dev] [PATCH v8 02/11] eal/linux: add rte_epoll_wait/ctl support

2015-05-22 Thread Liang, Cunming
On 5/22/2015 2:17 AM, Stephen Hemminger wrote: > On Thu, 21 May 2015 16:55:54 +0800 > Cunming Liang wrote: > >> +static int >> +eal_epoll_process_event(struct epoll_event *evs, int n, >> +struct rte_epoll_event *events) >> +{ >> +int i; >> +int count = 0; >> +

[dpdk-dev] [PATCH v7 08/10] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-12 Thread Liang, Cunming
On 5/11/2015 11:00 PM, Stephen Hemminger wrote: > On Mon, 11 May 2015 13:31:04 +0800 > "Liang, Cunming" wrote: > >>> Since MSI-X vectors are limited on many hardware platforms, this whole API >>> should be changed so that max_intr is based on

[dpdk-dev] [PATCH v7 08/10] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-11 Thread Liang, Cunming
On 5/6/2015 2:36 AM, Stephen Hemminger wrote: > On Tue, 5 May 2015 13:39:44 +0800 > Cunming Liang wrote: > >> >> +/* set max interrupt vfio request */ >> +if (pci_dev->intr_handle.vec_en) { >> +pci_dev->intr_handle.max_intr = hw->mac.max_rx_queues + >> +

[dpdk-dev] [PATCH v6 7/8] igb: enable rx queue interrupts for PF

2015-05-11 Thread Liang, Cunming
On 3/21/2015 4:51 AM, Stephen Hemminger wrote: > On Fri, 27 Feb 2015 12:56:15 +0800 > Cunming Liang wrote: > >> >> /* >> + * It clears the interrupt causes and enables the interrupt. >> + * It will be called once only during nic initialized. >> + * >> + * @param dev >> + * Pointer to

[dpdk-dev] [PATCH v7 09/10] igb: enable rx queue interrupts for PF

2015-05-11 Thread Liang, Cunming
On 5/6/2015 7:16 AM, Stephen Hemminger wrote: > On Tue, 5 May 2015 13:39:45 +0800 > Cunming Liang wrote: > >> The patch does below for igb PF: >> - Setup NIC to generate MSI-X interrupts >> - Set the IVAR register to map interrupt causes to vectors >> - Implement interrupt enable/disable

[dpdk-dev] [PATCH v7 02/10] eal/linux: add rte_epoll_wait/ctl support

2015-05-11 Thread Liang, Cunming
On 5/8/2015 10:57 AM, Stephen Hemminger wrote: > On Tue, 5 May 2015 13:39:38 +0800 > Cunming Liang wrote: > >> +else if (rc < 0) { >> +/* epoll_wait fail */ >> +RTE_LOG(ERR, EAL, "epoll_wait returns with fail %s\n", >> +strerror(errno)); > In

[dpdk-dev] [PATCH v7 06/10] eal/linux: add interrupt vectors handling on VFIO

2015-05-07 Thread Liang, Cunming
On 5/6/2015 2:38 AM, Stephen Hemminger wrote: > On Tue, 5 May 2015 13:39:42 +0800 > Cunming Liang wrote: > >> diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c >> b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c >> index aea1fb1..387f54c 100644 >> ---

[dpdk-dev] [PATCH v7 03/10] eal/linux: add API to set rx interrupt event monitor

2015-05-07 Thread Liang, Cunming
On 5/6/2015 2:34 AM, Stephen Hemminger wrote: > On Tue, 5 May 2015 13:39:39 +0800 > Cunming Liang wrote: > >> static void >> +eal_intr_proc_rxtx_intr(int fd, struct rte_intr_handle *intr_handle) >> +{ > Should be const intr_handle is not modified [LCM] accept.

[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-06 Thread Liang, Cunming
Hi, On 3/2/2015 5:03 PM, zhihong.wang at intel.com wrote: > Fixed strict-aliasing rules breaking errors for some GCC version. > > Signed-off-by: Zhihong Wang > --- > .../common/include/arch/x86/rte_memcpy.h | 44 > -- > 1 file changed, 24 insertions(+), 20

[dpdk-dev] [PATCH v2] ixgbe: Fix vf tx issue

2015-03-06 Thread Liang, Cunming
Hi, On 3/2/2015 8:25 PM, Ouyang Changchun wrote: > X550 should use the correct macro to set the VFTDT and VFRDT register address. > This patch fixes the VF TX issue for Sageville. > > Signed-off-by: Changchun Ouyang > --- > > Change in v2 >-- Fix one more mac type: ixgbe_mac_X550EM_x_vf. > >

[dpdk-dev] [PATCH v6 0/8] Interrupt mode PMD

2015-03-04 Thread Liang, Cunming
Hi Stephen, On 3/4/2015 8:52 AM, Stephen Hemminger wrote: > On Fri, 27 Feb 2015 11:38:25 +0100 > David Marchand wrote: > >> Ok, so after looking at this patchset, I would say this is the right >> direction, but still this is too limited. >> The ethdev part and the vfio eventfds part look

[dpdk-dev] ixgbe vector mode not working.

2015-02-28 Thread Liang, Cunming
hecking fail, then tend to use scalar pmd. Thanks for the report, I'll send fix patch soon. -Cunming > -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Thursday, February 26, 2015 9:07 AM > To: Liang, Cunming > Cc: Nemeth, Balaz

[dpdk-dev] [PATCH v3] eal: Clean up export of per_lcore__socket_id

2015-02-28 Thread Liang, Cunming
Hi, > -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Friday, February 27, 2015 8:33 PM > To: dev at dpdk.org > Cc: thomas.monjalon at 6wind.com; Liang, Cunming; Neil Horman > Subject: [PATCH v3] eal: Clean up export of per_lcore__soc

[dpdk-dev] [PATCH v6 4/8] eal/linux: add per rx queue interrupt handling based on VFIO

2015-02-28 Thread Liang, Cunming
Thanks Thomas. It's my fault that directly reply David's mail, haven't notice his mail isn't in a plain text mode. > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, February 27, 2015 10:13 PM > To: Liang, Cunming > Cc: Davi

[dpdk-dev] [PATCH v6 3/8] eal/bsd: dummy for new intr definition

2015-02-28 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, February 27, 2015 10:22 PM > To: Liang, Cunming > Cc: David Marchand; dev at dpdk.org; Stephen Hemminger > Subject: Re: [PATCH v6 3/8] eal/bsd: dummy for new intr definiti

[dpdk-dev] [PATCH v6 2/8] eal/linux: add rx queue interrupt FDs to intr handle struct

2015-02-28 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, February 27, 2015 10:52 PM > To: Liang, Cunming > Cc: David Marchand; dev at dpdk.org; Stephen Hemminger; Zhou, Danny > Subject: Re: [PATCH v6 2/8] eal/linux: add rx q

[dpdk-dev] [PATCH v6 2/8] eal/linux: add rx queue interrupt FDs to intr handle struct

2015-02-27 Thread Liang, Cunming
From: David Marchand [mailto:david.march...@6wind.com] Sent: Friday, February 27, 2015 6:33 PM To: Liang, Cunming Cc: dev at dpdk.org; Stephen Hemminger; Thomas Monjalon; Zhou, Danny Subject: Re: [PATCH v6 2/8] eal/linux: add rx queue interrupt FDs to intr handle struct Hello, On Fri, Feb 27

[dpdk-dev] [PATCH v6 3/8] eal/bsd: dummy for new intr definition

2015-02-27 Thread Liang, Cunming
From: David Marchand [mailto:david.march...@6wind.com] Sent: Friday, February 27, 2015 6:00 PM To: Liang, Cunming Cc: dev at dpdk.org; Stephen Hemminger; Thomas Monjalon Subject: Re: [PATCH v6 3/8] eal/bsd: dummy for new intr definition Hello, On Fri, Feb 27, 2015 at 5:56 AM, Cunming Liang

[dpdk-dev] [PATCH] virtio: Fix compilation issue on freebsd

2015-02-27 Thread Liang, Cunming
Hi, > -Original Message- > From: Ouyang, Changchun > Sent: Friday, February 27, 2015 10:30 AM > To: dev at dpdk.org > Cc: Liang, Cunming; Cao, Waterman; Ouyang, Changchun > Subject: [PATCH] virtio: Fix compilation issue on freebsd > > This patch fixes the comp

[dpdk-dev] [PATCH v2] eal: Clean up export of per_lcore__socket_id

2015-02-27 Thread Liang, Cunming
Hi, > -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Thursday, February 26, 2015 8:48 PM > To: dev at dpdk.org > Cc: thomas.monjalon at 6wind.com; Liang, Cunming; Neil Horman > Subject: [PATCH v2] eal: Clean up export of per_lcore__soc

[dpdk-dev] [PATCH] eal: Clean up export of per_lcore__socket_id

2015-02-25 Thread Liang, Cunming
> Sent: Wednesday, February 25, 2015 10:34 PM > To: dev at dpdk.org > Cc: thomas.monjalon at 6wind.com; Liang, Cunming; Neil Horman > Subject: [PATCH] eal: Clean up export of per_lcore__socket_id > > Theres no need to export this variable. Its set and queried from an API call > th

[dpdk-dev] [PATCH v1] afpacket: fix critical issue reported by klocwork

2015-02-25 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, February 25, 2015 4:46 PM > To: Liang, Cunming > Cc: John W. Linville; dev at dpdk.org; John Linville > Subject: Re: [dpdk-dev] [PATCH v1] afpacket: fix criti

[dpdk-dev] ixgbe vector mode not working.

2015-02-25 Thread Liang, Cunming
Hi Stephen, Thanks for the info, with rxd=4000, I can reproduce it. On that time, it runs out of mbuf. I'll follow up this issue. > -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Wednesday, February 25, 2015 3:37 PM > To: Liang,

[dpdk-dev] ixgbe vector mode not working.

2015-02-25 Thread Liang, Cunming
ing > -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Wednesday, February 25, 2015 8:16 AM > To: Nemeth, Balazs; Richardson, Bruce; Liang, Cunming; Neil Horman > Cc: dev at dpdk.org > Subject: ixgbe vector mode not working. > >

[dpdk-dev] Missing symbol error

2015-02-25 Thread Liang, Cunming
Hi, You're right, it's missing in the version map. Will send path to fix it. Thanks. > -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Wednesday, February 25, 2015 10:49 AM > To: dev at dpdk.org > Cc: Liang, Cunming > Subject: Missing sy

[dpdk-dev] [PATCH v1] doc: prog guide update for eal multi-pthread

2015-02-25 Thread Liang, Cunming
I'm afraid not yet, so appreciate for any revision suggestion. > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, February 25, 2015 3:11 AM > To: Liang, Cunming > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v

[dpdk-dev] [PATCH v8 00/19] support multi-pthread per core

2015-02-25 Thread Liang, Cunming
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, February 25, 2015 2:53 AM > To: Liang, Cunming > Cc: Ananyev, Konstantin; dev at dpdk.org; olivier.matz at 6wind.com; > nhorman at tuxdriver.com > Subject: Re: [PA

[dpdk-dev] [PATCH v1] afpacket: fix critical issue reported by klocwork

2015-02-25 Thread Liang, Cunming
> -Original Message- > From: John W. Linville [mailto:linville at tuxdriver.com] > Sent: Saturday, February 21, 2015 2:39 AM > To: Thomas Monjalon > Cc: Liang, Cunming; dev at dpdk.org; John Linville > Subject: Re: [dpdk-dev] [PATCH v1] afpacket: fix critical issue repo

[dpdk-dev] [PATCH v3 0/5] Interrupt mode PMD

2015-02-18 Thread Liang, Cunming
Hi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zhou Danny > Sent: Tuesday, February 17, 2015 9:47 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 0/5] Interrupt mode PMD > > v3 changes > - Add return value for interrupt enable/disable

[dpdk-dev] [PATCH v3 00/16] unified packet type

2015-02-17 Thread Liang, Cunming
> -Original Message- > From: Zhang, Helin > Sent: Tuesday, February 17, 2015 2:59 PM > To: dev at dpdk.org > Cc: Cao, Waterman; Liang, Cunming; Liu, Jijiang; Ananyev, Konstantin; > Richardson, > Bruce; Zhang, Helin > Subject: [PATCH v3 00/16] unified packet ty

[dpdk-dev] [PATCH v7 04/19] eal: fix wrong strnlen() return value in 32bit icc

2015-02-17 Thread Liang, Cunming
> -Original Message- > From: Olivier MATZ [mailto:olivier.matz at 6wind.com] > Sent: Monday, February 16, 2015 10:52 PM > To: Liang, Cunming; dev at dpdk.org > Cc: Ananyev, Konstantin; nhorman at tuxdriver.com > Subject: Re: [PATCH v7 04/19] eal: fix wrong strnlen() ret

[dpdk-dev] [PATCH v6 12/19] malloc: fix the issue of SOCKET_ID_ANY

2015-02-16 Thread Liang, Cunming
Hi, > -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Sunday, February 15, 2015 10:09 PM > To: Liang, Cunming > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v6 12/19] malloc: fix the issue of > SOCKET_ID_ANY > > On Sun,

[dpdk-dev] [PATCH v1] test: add ut for eal flags --lcores

2015-02-15 Thread Liang, Cunming
Hi, > -Original Message- > From: Qiu, Michael > Sent: Sunday, February 15, 2015 2:59 PM > To: Liang, Cunming; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v1] test: add ut for eal flags --lcores > > Hi, Steve > > Why not post this patch within your ena

  1   2   >