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

2015-08-04 Thread Cunming Liang
On receive side, the burst size now floor aligns to RTE_IXGBE_DESCS_PER_LOOP power of 2. According to this rule, the burst size less than 4 still won't receive anything. (Before this change, the burst size less than 32 can't receive anything.) _recv_*_pkts_vec returns no more than

[dpdk-dev] [PATCH 2/2] virtio: allow running w/o vlan filtering

2015-08-04 Thread Stephen Hemminger
In Linux and BSD, if driver does not support filtering, the kernel takes care of the situation. A DPDK application will need a device layer; maybe some part of the port/pipeline would be a good place for it. On Tue, Aug 4, 2015 at 6:01 PM, Ouyang, Changchun < changchun.ouyang at intel.com> wrote:

[dpdk-dev] [dpdk_dev][PATCH] array malloced by backtrace_symbols() should be freed by the caller

2015-08-04 Thread chixiaobo
As to linux man page: http://linux.die.net/man/3/backtrace_symbols, The address of the array of string pointers is returned as the function result of backtrace_symbols(). This array is malloced by backtrace_symbols(), and must be freed by the caller. The strings pointed to by the array of

[dpdk-dev] [PATCH 1/1] bonding: fix error handling in rte_eth_bond_create()

2015-08-04 Thread Thomas Monjalon
2015-08-04 16:26, Bernard Iremonger: > if the name parameter to rte_eth_bond_create() was NULL, > there was a segmentation fault. What is the root cause of the crash? I guess it is rte_free(eth_dev->data->mac_addrs) because eth_dev is NULL. [...] > -err: > - rte_free(pci_dev); > -

[dpdk-dev] Vhost-User port not work and always show 'down'

2015-08-04 Thread wenxu
: {} type: dpdkvhostuser I can see the vhost-user-0 port always show down and there are some dropped packets which are sent from br0. Are there some wrong with my POC? BR Xu Wen -- next part -- An embedded and charset-unspecified text was

[dpdk-dev] [PATCH] set eventfd_link_misc.minor=MISC_DYNAMIC_MINOR

2015-08-04 Thread chixiaobo
For miscdevices, the major device_no is same, so the minor device_no should be set to ditinguish different misc devices; if not set the minor, it may fail while insmod due to the default minor value, 0, has been used by other miscdevice. MISC_DYNAMIC_MINOR means to let Linux kernel dynamically

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

2015-08-04 Thread Zoltan Kiss
On 04/08/15 12:47, Cunming Liang wrote: > On receive side, the burst size now floor aligns to RTE_IXGBE_DESCS_PER_LOOP > power of 2. > According to this rule, the burst size less than 4 still won't receive > anything. > (Before this change, the burst size less than 32 can't receive anything.)

[dpdk-dev] [PATCH] pci: fix bsd build with gcc

2015-08-04 Thread Thomas Monjalon
2015-08-04 16:05, Bruce Richardson: > On Tue, Aug 04, 2015 at 04:27:45PM +0200, Thomas Monjalon wrote: > > GCC 4.8 raises this error: > > lib/librte_eal/bsdapp/eal/eal_pci.c:453:15: error: cast discards > > '__attribute__((const))' qualifier from pointer target type > >.pi_data = *(u_int32_t

[dpdk-dev] [PATCH 3/3] vfio: Added hotplug test program

2015-08-04 Thread Harpal Singh
From: Harpal Singh Added a new hotplug test program: it has been added to test hot removal of a vfio device. 1) This test will first deregister all the pci drivers and register its own driver. 2) Then it scan the bus and call probe for all the scanned devices whose vendor

[dpdk-dev] [PATCH 2/3] vfio: Added vfio req interrupt support

2015-08-04 Thread Harpal Singh
From: Harpal Singh This patch will add support for req interrupt which will be used by vfio kernel module to request user space to release allocated resources. It will provide addtional mechanism in user space to get system notification about when to release vfio

[dpdk-dev] [PATCH 1/3] vfio: Added hot removal feature for vfio

2015-08-04 Thread Harpal Singh
From: Harpal Singh This patch will add a new API i.e. pci_vfio_unmap_resource. It will basically cleanup all the vfio resources allocated for a device. cleanup includes :- 1) removing vfio_res from vfio_res_list 2) unmap mapped bars 3) close device fd 4) close group fd 5)

[dpdk-dev] [PATCH 0/3] vfio hotplug feature

2015-08-04 Thread Harpal Singh
From: Harpal Singh This patch set will provide vfio hotplug removal feature. It include 3 patches:- 1) First patch adds the vfio unmap resource feature, which will release the resources allocated during initialization phase. 2) Second patch adds vfio req interrupt

[dpdk-dev] how to build dpdk in debug mode?

2015-08-04 Thread Qiu, Michael
Please refer dec/build-sdk-quick.txt EXTRA_CFLAGS=-g should work. Thanks, Michael On 2015/8/3 9:29, Thomas Monjalon wrote: > 2015-08-03 16:16, Montorsi, Francesco: >> Hi all, >> I have searched the archives for this, without much success. >> >> Is it possible to build dpdk user-space libraries

[dpdk-dev] [RFC] examples: remove l3fwd-vf example

2015-08-04 Thread Qiu, Michael
Actually, l3fwd works fine with fm10k vf. I don't know what's the exact reason of l3fwd-vf still in DPDK, at least we could make full support for vf in l3fwd instead of another sample with most code are the same compare with l3fwd. Thanks, Michael On 2015/7/22 7:51, Zhang, Helin wrote:

[dpdk-dev] [PATCH] array malloced by backtrace_symbols() should be freed by the caller

2015-08-04 Thread chixiaobo
As to linux man page: http://linux.die.net/man/3/backtrace_symbols, The address of the array of string pointers is returned as the function result of backtrace_symbols(). This array is malloced by backtrace_symbols(), and must be freed by the caller. The strings pointed to by the array of

[dpdk-dev] Changes to 5tuple IPv4 filters in dpdk v2.0

2015-08-04 Thread Kamraan Nasim
Hi DPDK community, I've been using DPDK v1.7 and v1.8 for the past year. On updating to v2.0.0, I see that *rte_5tuple_filter* has been deprecated as well as the associated install/remove call,* rte_eth_dev_add_5tuple_filter()* I now see that rte_eth_ntuple_filter has been added in place. 1)

[dpdk-dev] [PATCH 1/1] bonding: fix error handling in rte_eth_bond_create()

2015-08-04 Thread Bernard Iremonger
if the name parameter to rte_eth_bond_create() was NULL, there was a segmentation fault. Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_api.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git

[dpdk-dev] [PATCH] pci: fix bsd build with gcc

2015-08-04 Thread Bruce Richardson
On Tue, Aug 04, 2015 at 04:27:45PM +0200, Thomas Monjalon wrote: > GCC 4.8 raises this error: > lib/librte_eal/bsdapp/eal/eal_pci.c:453:15: error: cast discards > '__attribute__((const))' qualifier from pointer target type >.pi_data = *(u_int32_t *)buf, >^ > > Note: this

[dpdk-dev] [PATCH] i40e:remove unlikely check in i40e_xmit_pkts for checksum offload

2015-08-04 Thread Jijiang Liu
The i40e_xmit_pkts() is called, which often means HW offload is used here, so we had better remove 'unlikely' check for checksum offload. Signed-off-by: Jijiang Liu --- drivers/net/i40e/i40e_rxtx.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

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

2015-08-04 Thread Cunming Liang
On receive side, the burst size now floor aligns to RTE_IXGBE_DESCS_PER_LOOP power of 2. According to this rule, the burst size less than 4 still won't receive anything. (Before this change, the burst size less than 32 can't receive anything.) _recv_*_pkts_vec returns no more than

[dpdk-dev] Could DPDK ring provide peek interface or any comments for this function?

2015-08-04 Thread Olivier MATZ
Hi, On 08/04/2015 04:20 AM, Yan, Liming (Nokia - CN/Hangzhou) wrote: > Hi, > As we see, DPDK ring has mainly the enqueue/dequeue APIs for SINGLE/MULTI > producer/consumer. I have a requirement in work to take a peek on the top > object in the ring. I don't want to consume it, just check

[dpdk-dev] [PATCH 2/2] virtio: allow running w/o vlan filtering

2015-08-04 Thread Vincent JARDIN
Thomas, Changchun, On 29/07/2015 14:56, Thomas Monjalon wrote: > Back on this old patch, it seems justified but nobody agreed. > > --- a/lib/librte_pmd_virtio/virtio_ethdev.c > +++ b/lib/librte_pmd_virtio/virtio_ethdev.c > @@ -1288,7 +1288,6 @@ virtio_dev_configure(struct rte_eth_dev *dev) >

[dpdk-dev] [PATCH 1/3] vfio: Added hot removal feature for vfio

2015-08-04 Thread Burakov, Anatoly
Hi Harpal, > This patch will add a new API i.e. pci_vfio_unmap_resource. > It will basically cleanup all the vfio resources allocated for a device. > cleanup includes :- > 1) removing vfio_res from vfio_res_list > 2) unmap mapped bars > 3) close device fd > 4) close group fd > 5) free vfio_res

[dpdk-dev] "ifconfig" commands/status using the dpdk:igb_uio driver

2015-08-04 Thread Navneet Rao
Hello Experts: How can I configure my NIC setting(s) when loaded with the dpdk:igb_uio driver? E.g I need to keep the MAC address and the IP address of the NIC the "same as before" after switching to a dpdk:igb_uio driver for the NIC. Is there a equiv of "ifconfig" utility in dpdk? How do I

[dpdk-dev] [PATCH] [new]ixgbe:set txep.mbuf to NULL when calling ixgbe_tx_free_bufs

2015-08-04 Thread Bruce Richardson
On Sat, Aug 01, 2015 at 09:26:34AM +0800, hepeng wrote: > In *ixgbe_tx_free_bufs*, after recycling some tx entries, one should set > their mbuf pointers to NULL. > > The first path is not correct, the txep->mbuf should be set to NULL no matter > if it is recycled into mempool > Signed-off-by:

[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 v2] ixgbe: remove vector pmd burst size restriction

2015-08-04 Thread Zoltan Kiss
On 04/08/15 08:32, Cunming Liang wrote: > On receive side, the burst size now floor aligns to RTE_IXGBE_DESCS_PER_LOOP > power of 2. > According to this rule, the burst size less than 4 still won't receive > anything. > (Before this change, the burst size less than 32 can't receive anything.)

[dpdk-dev] Vhost-User port not work and always show 'down'

2015-08-04 Thread Zhou, Danny
Suggest you post this question to Openvswitch.org. > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of wenxu > Sent: Tuesday, August 04, 2015 5:52 PM > To: dev at dpdk.org > Subject: [dpdk-dev] Vhost-User port not work and always show 'down' > > Hi all, > >

[dpdk-dev] Could DPDK ring provide peek interface or any comments for this function?

2015-08-04 Thread Stephen Hemminger
On Tue, 04 Aug 2015 14:57:16 +0200 Olivier MATZ wrote: > Hi, > > > On 08/04/2015 04:20 AM, Yan, Liming (Nokia - CN/Hangzhou) wrote: > > Hi, > > As we see, DPDK ring has mainly the enqueue/dequeue APIs for > > SINGLE/MULTI producer/consumer. I have a requirement in work to take a > >

[dpdk-dev] [PATCH] array malloced by backtrace_symbols() should be freed by the caller

2015-08-04 Thread Stephen Hemminger
On Tue, 4 Aug 2015 17:04:18 +0800 chixiaobo wrote: > diff --git a/lib/librte_eal/linuxapp/eal/eal_debug.c > b/lib/librte_eal/linuxapp/eal/eal_debug.c > index 44fc4f3..ceca2e8 100644 > --- a/lib/librte_eal/linuxapp/eal/eal_debug.c > +++ b/lib/librte_eal/linuxapp/eal/eal_debug.c > @@ -58,6 +58,9

[dpdk-dev] [PATCH] i40e:remove unlikely check in i40e_xmit_pkts for checksum offload

2015-08-04 Thread Liu, Yong
Acked-by: Marvin Liu > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jijiang Liu > Sent: Tuesday, August 04, 2015 3:57 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] i40e:remove unlikely check in i40e_xmit_pkts > for checksum offload > > The

[dpdk-dev] [PATCH v2] doc: announce ABI change of rte_eth_fdir_filter, rte_eth_fdir_masks

2015-08-04 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Friday, July 10, 2015 3:24 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] doc: announce ABI change of > rte_eth_fdir_filter, rte_eth_fdir_masks > > For x550 supports 2 new flow

[dpdk-dev] [PATCH v2] doc: announce ABI change of rte_eth_fdir_filter, rte_eth_fdir_masks

2015-08-04 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Friday, July 10, 2015 3:24 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] doc: announce ABI change of > rte_eth_fdir_filter, rte_eth_fdir_masks > > For x550 supports 2 new flow

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

2015-08-04 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jingjing Wu > Sent: Monday, July 20, 2015 8:04 AM > 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] doc: announce ABI change for rte_eth_fdir_filter

2015-08-04 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jingjing Wu > Sent: Monday, July 20, 2015 8:04 AM > 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] fm10k: fix the compilation on big endian platforms

2015-08-04 Thread Tony Lu
>-Original Message- >From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] >Sent: Monday, August 03, 2015 7:39 PM >To: Chao Zhu >Cc: dev at dpdk.org; Zhigang Lu >Subject: Re: [dpdk-dev] [PATCH] fm10k: fix the compilation on big endian >platforms > >2015-08-03 19:32, Chao Zhu: >> On

[dpdk-dev] I want to post my patch about examples/kni

2015-08-04 Thread EaseTheWorld Mr.
but I don't have smtp server... Can anybody help with this? diff --git a/examples/kni/main.c b/examples/kni/main.c index 6f74d8e..6d434ad 100644 --- a/examples/kni/main.c +++ b/examples/kni/main.c @@ -830,9 +830,9 @@ kni_free_kni(uint8_t port_id) if (port_id >= RTE_MAX_ETHPORTS ||

[dpdk-dev] Could DPDK ring provide peek interface or any comments for this function?

2015-08-04 Thread Yan, Liming (Nokia - CN/Hangzhou)
Hi, As we see, DPDK ring has mainly the enqueue/dequeue APIs for SINGLE/MULTI producer/consumer. I have a requirement in work to take a peek on the top object in the ring. I don't want to consume it, just check the reference of the object. How could this be supported? Or any alternative

[dpdk-dev] Could DPDK ring provide peek interface or any comments for this function?

2015-08-04 Thread Yan, Liming (Nokia - CN/Hangzhou)
Hi, As we see, DPDK ring has mainly the enqueue/dequeue APIs for SINGLE/MULTI producer/consumer. I have a requirement in work to take a peek on the top object in the ring. I don't want to consume it, just check the reference of the object. How could this be supported? Or any alternative

[dpdk-dev] [dpdk-announce] release candidate 2.1.0-rc3

2015-08-04 Thread Thomas Monjalon
A new DPDK release candidate is ready for testing: http://dpdk.org/browse/dpdk/tag/?id=v2.1.0-rc3 We are very close to the major release 2.1. The next release candidate should include mostly some doc updates, and especially patches for the release notes. Changelog (main changes since

[dpdk-dev] I want to post my patch about examples/kni

2015-08-04 Thread Thomas Monjalon
2015-08-04 06:39, EaseTheWorld Mr.: > but I don't have smtp server... Can anybody help with this? Dear Mr EaseTheWorld, It's a pleasure to ease your first contribution :) You have to set your SMTP parameters in ~/.gitconfig. Example for your gmail address: [sendemail] suppressfrom =

[dpdk-dev] [PATCH] app test: fix eal --no-huge option should work with -m option

2015-08-04 Thread Thomas Monjalon
2015-07-29 11:54, Yong Liu: > From: Marvin Liu > > '--no-huge' option now can workable with -m option. > Unit test for eal flag should change pass criterion. > > Signed-off-by: Marvin Liu Fixes: a7de7e6beb69 ("eal: allow combining -m and --no-huge") Applied, thanks

[dpdk-dev] [PATCH] app test: fix mempool cache_size not match limited cache_size

2015-08-04 Thread Thomas Monjalon
> > From: Marvin Liu > > > > In previous setting, mempool size and cache_size are both 32. > > This is not satisfied with cache_size checking rule by now. > > Cache size should less than CONFIG_RTE_MEMPOOL_CACHE_MAX_SIZE and > > mempool size / 1.5. > > > > Signed-off-by: Marvin Liu > > >