[dpdk-dev] [Dpdk-ovs] problem in binding interfaces of virtio-pci on the VM

2015-02-26 Thread Srinivasreddy R
hi Bruce , Thank you for your response . I am accessing my VM via " vncviewer " . so ssh doesn't come into picture . Is there any way to find the root cause of my problem . does dpdk stores any logs while binding interfaces to igb_uio. i have seen my /var/log/messages . but could not find any clue

[dpdk-dev] [Dpdk-ovs] problem in binding interfaces of virtio-pci on the VM

2015-02-26 Thread Srinivasreddy R
hi Mike, Thanks for our detailed explanation of your example . usually i do similar to u and i am aware of working with dpdk applications . my problem is : 1. i have written a code for host to guest communication .[taken form usvhost which is developed in ovdk vswitch] . 2. i launched VM with two

[dpdk-dev] [PATCH v11 2/2] librte_pmd_null: Support port hotplug function

2015-02-26 Thread Tetsuya Mukawa
2015-02-26 19:57 GMT+09:00 Thomas Monjalon : > 2015-02-26 18:06, Tetsuya Mukawa: >> 2015-02-26 16:03 GMT+09:00 Thomas Monjalon : >> > 2015-02-25 16:49, Stephen Hemminger: >> >> Build fails if HOTPLUG is disabled >> >> Hi Stephen, >> >> I appreciate for you reporting. >> >> > >> > OK thanks for repo

[dpdk-dev] problem in binding interfaces of virtio-pci on the VM

2015-02-26 Thread Srinivasreddy R
hi , I have written sample program for usvhost supported by ovdk. i have initialized VM using the below command . On the VM : I am able to see two interfaces . and working fine with traffic in rawsocket mode . my problem is when i bind the interfaces to pmd driver[ ibg_uio ] my virtual machine i

[dpdk-dev] [PATCH v15] testpmd: Add port hotplug support

2015-02-26 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tetsuya Mukawa > Sent: Wednesday, February 25, 2015 7:32 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v15] testpmd: Add port hotplug support > > The patch introduces following commands. > - port attac

[dpdk-dev] [PATCH v11 2/2] librte_pmd_null: Support port hotplug function

2015-02-26 Thread Tetsuya Mukawa
2015-02-26 16:03 GMT+09:00 Thomas Monjalon : > 2015-02-25 16:49, Stephen Hemminger: >> Build fails if HOTPLUG is disabled Hi Stephen, I appreciate for you reporting. > > OK thanks for reporting. > Actually there is no good reason to disable hotplug on Linux. > Though it means that it's impossibl

[dpdk-dev] [PATCH v3 0/3] Mellanox ConnectX-3 PMD

2015-02-26 Thread Gleb Natapov
On Thu, Feb 26, 2015 at 03:18:34PM +0100, Adrien Mazarguil wrote: > On Thu, Feb 26, 2015 at 03:49:07PM +0200, Gleb Natapov wrote: > > On Thu, Feb 26, 2015 at 02:36:27PM +0100, Thomas Monjalon wrote: > > > 2015-02-26 13:51, Gleb Natapov: > > > > Did git pull today. After enabling mlnx pmd compilatio

[dpdk-dev] [Dpdk-ovs] problem in binding interfaces of virtio-pci on the VM

2015-02-26 Thread Bruce Richardson
On Thu, Feb 26, 2015 at 10:08:59PM +0530, Srinivasreddy R wrote: > hi Mike, > Thanks for our detailed explanation of your example . usually i do similar > to u and i am aware of working with dpdk applications . > my problem is : > 1. i have written a code for host to guest communication .[taken fo

[dpdk-dev] [PATCH] rte_mbuf: scattered pktmbufs freeing optimization

2015-02-26 Thread Stephen Hemminger
On Fri, 27 Feb 2015 01:15:06 +0200 "vadim.suraev at gmail.com" wrote: > +static inline void __attribute__((always_inline)) > +rte_pktmbuf_free_bulk(struct rte_mbuf *head) Quit with the inlining. Inlining all the time isn't faster it just increase the code bloat and causes i-cache misses. > +{ >

[dpdk-dev] [BUG] PMD null driver build fails

2015-02-26 Thread Stephen Hemminger
Null driver fails on Debian Wheezy (with backports) which uses GCC 4.7 == Build lib/librte_pmd_null CC rte_eth_null.o /home/shemminger/src/dpdk/lib/librte_pmd_null/rte_eth_null.c: In function ?eth_stats_get?: /home/shemminger/src/dpdk/lib/librte_pmd_null/rte_eth_null.c:302:28: error: array su

[dpdk-dev] vhost-user deconnection bug

2015-02-26 Thread Benoît Canet
Hi Xie, I connected a QEMU from git master with the vhost-user from git master and noticed the following bug. In the following code: void user_destroy_device(struct vhost_device_ctx ctx)

[dpdk-dev] [PATCH] headers: typeof -> __typeof__ to unbreak C++11 code

2015-02-26 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Thursday, February 26, 2015 11:15 AM > To: dev at dpdk.org; Simon Kagstrom > Subject: Re: [dpdk-dev] [PATCH] headers: typeof -> __typeof__ to unbreak > C++11 code > I'd like to be sure t

[dpdk-dev] [PATCH v3 0/3] support TSO on i40e

2015-02-26 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jijiang Liu > Sent: Thursday, February 26, 2015 3:37 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 0/3] support TSO on i40e > > This patch set enables i40e TSO feature for both non-tunneling packet

[dpdk-dev] [PATCH v3 0/3] Mellanox ConnectX-3 PMD

2015-02-26 Thread Gleb Natapov
On Thu, Feb 26, 2015 at 02:36:27PM +0100, Thomas Monjalon wrote: > 2015-02-26 13:51, Gleb Natapov: > > Did git pull today. After enabling mlnx pmd compilation fails with: > > > > dpdk/lib/librte_pmd_mlx4/mlx4.c: In function ?mlx4_pci_devinit?: > > dpdk/lib/librte_pmd_mlx4/mlx4.c:4636:14: error: to

[dpdk-dev] [PATCH v11 2/2] librte_pmd_null: Support port hotplug function

2015-02-26 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Mcnamara, John > Sent: Thursday, February 26, 2015 12:21 PM > To: Tetsuya Mukawa; Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v11 2/2] librte_pmd_null: Support port > hotplug function >

[dpdk-dev] [PATCH v3 0/3] Mellanox ConnectX-3 PMD

2015-02-26 Thread Adrien Mazarguil
On Thu, Feb 26, 2015 at 03:49:07PM +0200, Gleb Natapov wrote: > On Thu, Feb 26, 2015 at 02:36:27PM +0100, Thomas Monjalon wrote: > > 2015-02-26 13:51, Gleb Natapov: > > > Did git pull today. After enabling mlnx pmd compilation fails with: > > > > > > dpdk/lib/librte_pmd_mlx4/mlx4.c: In function ?m

[dpdk-dev] [Dpdk-ovs] problem in binding interfaces of virtio-pci on the VM

2015-02-26 Thread Polehn, Mike A
In this example, the control network 00:03.0, remains unbound to UIO driver but remains attached to Linux device driver (ssh access with putty) and just the target interfaces are bound. Below, it shows all 3 interfaces bound to the uio driver, which are not usable until a task uses the UIO driv

[dpdk-dev] [PATCH] af_packet: Fix some klocwork errors

2015-02-26 Thread Ouyang Changchun
Fix possible memory leak issue: free kvlist before return; Fix possible resource lost issue: close qssockfd before return; Signed-off-by: Changchun Ouyang --- lib/librte_pmd_af_packet/rte_eth_af_packet.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/librte_p

[dpdk-dev] [PATCH v3 0/3] Mellanox ConnectX-3 PMD

2015-02-26 Thread Thomas Monjalon
2015-02-26 13:51, Gleb Natapov: > Did git pull today. After enabling mlnx pmd compilation fails with: > > dpdk/lib/librte_pmd_mlx4/mlx4.c: In function ?mlx4_pci_devinit?: > dpdk/lib/librte_pmd_mlx4/mlx4.c:4636:14: error: too few arguments to function > ?rte_eth_dev_allocate? > eth_dev = rte_e

[dpdk-dev] [PATCH] kni:optimization of rte_kni_rx_burst

2015-02-26 Thread Marc Sune
On 26/02/15 08:00, Hemant at freescale.com wrote: > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jay Rolette >> Sent: 25/Feb/2015 7:00 PM >> To: Marc Sune >> Cc: DPDK >> Subject: Re: [dpdk-dev] [PATCH] kni:optimization of rte_kni_rx_burst >> >> On Wed, F

[dpdk-dev] [PATCH v3 0/3] Mellanox ConnectX-3 PMD

2015-02-26 Thread Gleb Natapov
Did git pull today. After enabling mlnx pmd compilation fails with: dpdk/lib/librte_pmd_mlx4/mlx4.c: In function ?mlx4_pci_devinit?: dpdk/lib/librte_pmd_mlx4/mlx4.c:4636:14: error: too few arguments to function ?rte_eth_dev_allocate? eth_dev = rte_eth_dev_allocate(name); On Wed, Feb 25, 201

[dpdk-dev] [PATCH v6 0/6] enicpmd: Cisco Systems Inc. VIC Ethernet PMD

2015-02-26 Thread Wiles, Keith
On 2/26/15, 5:49 AM, "Thomas Monjalon" wrote: >Hi Sujith, > >Do you have news about doc for enic? > >In case you didn't find the doc for pktgen-dpdk, it's available here: > http://pktgen.readthedocs.org Hi Sujith, If you can not find the answer your questions in the doc please me an email

[dpdk-dev] [PATCH] tools/dpdk_nic_bind: Fix can't bind virtio-pci issue

2015-02-26 Thread Ouyang Changchun
In virtio test, on guest 1. Bind virtio port to igb_uio driver; 2. Remove igb_uio module; 3. Bind virtio port to virtio-pci driver, it fails and reports: "Error - no supported modules are loaded" The tool should check the to-be-bound driver flag, if it is dpdk driver(igb_uio, vfio etc), and th

[dpdk-dev] [PATCH v6 0/6] enicpmd: Cisco Systems Inc. VIC Ethernet PMD

2015-02-26 Thread Thomas Monjalon
Hi Sujith, Do you have news about doc for enic? In case you didn't find the doc for pktgen-dpdk, it's available here: http://pktgen.readthedocs.org 2015-01-21 05:03, Sujith Sankar: > Hi David, > > Apologies for the delay. I was not able to find quality time to finish it > as a few othe

[dpdk-dev] [PATCH 1/7] vmxnet3: enable VLAN filtering

2015-02-26 Thread Thomas Monjalon
2015-02-25 18:31, Stephen Hemminger: > Support the VLAN filter functionality of the VMXNET3 interface. > > Signed-off-by: Stephen Hemminger > --- > v2 -- incorporate comments from Yong Wang You forgot v2 in the title. Please prefer a cover letter threading when sending a series of patches; it's

[dpdk-dev] [PATCH] headers: typeof -> __typeof__ to unbreak C++11 code

2015-02-26 Thread Simon Kågström
On 2015-02-26 12:14, Thomas Monjalon wrote: > 2015-02-25 14:28, Simon Kagstrom: >> When compiling C++11-code or above (--std=c++11), the build fails with >> lots of >> >> rte_eth_ctrl.h:517:3: note: in expansion of macro RTE_ALIGN >> (RTE_ALIGN(RTE_ETH_FLOW_MAX, UINT32_BIT)/UINT32_BIT) >>

[dpdk-dev] [PATCH v11 2/2] librte_pmd_null: Support port hotplug function

2015-02-26 Thread Mcnamara, John
Hi, The HEAD doesn't compile with gcc 4.7.2: $ git clone http://dpdk.org/git/dpdk $ cd dpdk $ make T=x86_64-native-linuxapp-gcc -j install ... == Build lib/librte_pipeline SYMLINK-FILE include/rte_pipeline.h CC rte_pipeline.o /tmp/dpdk/lib/librte_pmd_null/rte

[dpdk-dev] [PATCH] headers: typeof -> __typeof__ to unbreak C++11 code

2015-02-26 Thread Thomas Monjalon
Hi Simon, 2015-02-25 14:28, Simon Kagstrom: > When compiling C++11-code or above (--std=c++11), the build fails with > lots of > > rte_eth_ctrl.h:517:3: note: in expansion of macro RTE_ALIGN > (RTE_ALIGN(RTE_ETH_FLOW_MAX, UINT32_BIT)/UINT32_BIT) > ^ > > When reading the GCC info pages,

[dpdk-dev] [PATCH v11 2/2] librte_pmd_null: Support port hotplug function

2015-02-26 Thread Thomas Monjalon
2015-02-26 18:06, Tetsuya Mukawa: > 2015-02-26 16:03 GMT+09:00 Thomas Monjalon : > > 2015-02-25 16:49, Stephen Hemminger: > >> Build fails if HOTPLUG is disabled > > Hi Stephen, > > I appreciate for you reporting. > > > > > OK thanks for reporting. > > Actually there is no good reason to disable

[dpdk-dev] [PATCH v3 3/3] i40e:advertise TSO capability

2015-02-26 Thread Jijiang Liu
Advertise the DEV_TX_OFFLOAD_TCP_TSO flag in the PMD features. It means that the i40e PMD supports the offload of TSO. Signed-off-by: Jijiang Liu Signed-off-by: Miroslaw Walukiewicz --- lib/librte_pmd_i40e/i40e_ethdev.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git

[dpdk-dev] [PATCH v3 2/3] i40e:enable TSO support

2015-02-26 Thread Jijiang Liu
This patch enables i40e TSO feature for both non-tunneling packet and tunneling packet Signed-off-by: Jijiang Liu Signed-off-by: Miroslaw Walukiewicz Signed-off-by: Grzegorz Galkowski --- lib/librte_pmd_i40e/i40e_rxtx.c | 60 +++--- lib/librte_pmd_i40e/i40e_

[dpdk-dev] [PATCH v3 1/3] i40e:move Tx offloads parameters of i40e to separate structure

2015-02-26 Thread Jijiang Liu
The structure size is u64 so it could be used with single cpu operation. Signed-off-by: Jijiang Liu Signed-off-by: Miroslaw Walukiewicz Signed-off-by: Grzegorz Galkowski --- lib/librte_pmd_i40e/i40e_rxtx.c | 39 +-- lib/librte_pmd_i40e/i40e_rxtx.h | 11

[dpdk-dev] [PATCH v3 0/3] support TSO on i40e

2015-02-26 Thread Jijiang Liu
This patch set enables i40e TSO feature for both non-tunneling packet and tunneling packet. Change logs: v2 change: rework based on Olivier's patch set [PATCH v2 00/20] enhance Tx checksum offload API http://dpdk.org/ml/archives/dev/2015-February/012375.html v3 change:

[dpdk-dev] [PATCH 35/36] ixgbe base codes: Update readme

2015-02-26 Thread Ouyang Changchun
Update the share code version into cid-10g-shared-code.2015.02.03. Signed-off-by: Changchun Ouyang --- lib/librte_pmd_ixgbe/ixgbe/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe/README b/lib/librte_pmd_ixgbe/ixgbe/README index e0e5f0d..ba124

[dpdk-dev] [PATCH] af_packet: Fix some klocwork errors

2015-02-26 Thread Pawel Wodkowski
On 2015-02-26 07:42, Ouyang Changchun wrote: > Fix possible memory leak issue: free kvlist before return; > Fix possible resource lost issue: close qssockfd before return; > > Signed-off-by: Changchun Ouyang > --- > lib/librte_pmd_af_packet/rte_eth_af_packet.c | 11 +-- > 1 file changed

[dpdk-dev] [PATCH 3/5] xen: add phys-addr command line argument

2015-02-26 Thread Stephen Hemminger
On Thu, 26 Feb 2015 07:55:13 + "Liu, Jijiang" wrote: > If the application is built with DOM0 support , the application will run in > non Dom0 environment when using the new argument, correct? Yes. Our startup script has if [ -d /proc/xen ] ; then log_progress_msg "xen_uio"

[dpdk-dev] [PATCH v11 2/2] librte_pmd_null: Support port hotplug function

2015-02-26 Thread Thomas Monjalon
2015-02-25 16:49, Stephen Hemminger: > Build fails if HOTPLUG is disabled OK thanks for reporting. Actually there is no good reason to disable hotplug on Linux. Though it means that it's impossible to build on FreeBSD. Tetsuya, the right fix is to remove this option. You should manage to graceful

[dpdk-dev] [PATCH] Missing use of macro rte_eth_dev_is_valid_port()

2015-02-26 Thread Keith Wiles
Signed-off-by: Keith Wiles --- lib/librte_ether/rte_ethdev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index bb94ccb..6fd89d7 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethde

[dpdk-dev] [PATCH 3/5] xen: add phys-addr command line argument

2015-02-26 Thread Liu, Jijiang
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen Hemminger > Sent: Sunday, February 15, 2015 11:25 PM > To: dev at dpdk.org > Cc: Stephen Hemminger > Subject: [dpdk-dev] [PATCH 3/5] xen: add phys-addr command line argument > > Allow overriding defaul

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

2015-02-26 Thread Neil Horman
Theres no need to export this variable. Its set and queried from an API call that doesn't exist in the hot path. Instead just export the rte_socket_id symbol and make the variable private to protect it from type changes. We should do this with the other exported variables too, but I think its to

[dpdk-dev] [PATCH] kni:optimization of rte_kni_rx_burst

2015-02-26 Thread hem...@freescale.com
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jay Rolette > Sent: 25/Feb/2015 7:00 PM > To: Marc Sune > Cc: DPDK > Subject: Re: [dpdk-dev] [PATCH] kni:optimization of rte_kni_rx_burst > > On Wed, Feb 25, 2015 at 6:38 AM, Marc Sune wrote: > > > > > On 25

[dpdk-dev] [PATCH 1/4] xen: allow choosing dom0 support at runtime

2015-02-26 Thread Liu, Jijiang
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Sunday, February 15, 2015 10:28 PM > To: Liu, Jijiang > Cc: Stephen Hemminger; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/4] xen: allow choosing dom0 support at > runtime > > On Sun, 15

[dpdk-dev] [PATCH] pci: save list of detached devices, and re-probe during driver unload

2015-02-26 Thread Raz Amir
Added code that saves the pointers to the detached devices, during driver loading, and during driver unloading, go over the list, and re-attach them by calling device_probe_and_attach on each device. Signed-off-by: Raz Amir --- lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 26 +++

[dpdk-dev] [PATCH] tools/dpdk_nic_bind: Fix can't bind virtio-pci issue

2015-02-26 Thread Xu, Qian Q
Tested-by: Qian Xu - Tested Commit: b67578ccdf45df9fd0f0204578b71acd854ca834 - OS: Fedora20 3.11 - GCC: gcc version 4.8.3 20140624 - CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz - NIC: Intel 82599 Ethernet 10G SFI/SFP+ Network Connection - Default x86_64-native-linuxapp-gcc configuration - Tota

[dpdk-dev] [PATCH v15] testpmd: Add port hotplug support

2015-02-26 Thread Tetsuya Mukawa
The patch introduces following commands. - port attach [ident] - port detach [port_id] - attach: attaching a port - detach: detaching a port - ident: pci address of physical device. Or device name and parameters of virtual device. (ex. :02:00.0, eth_pcap0,iface=eth0) - po

[dpdk-dev] [PATCH v15] librte_pmd_pcap: Add port hotplug support

2015-02-26 Thread Tetsuya Mukawa
This patch adds finalization code to free resources allocated by the PMD. v6: - Fix a paramter of rte_eth_dev_free(). v4: - Change function name. Signed-off-by: Tetsuya Mukawa --- lib/librte_pmd_pcap/rte_eth_pcap.c | 40 ++ 1 file changed, 40 insertions(+)

[dpdk-dev] [PATCH v15 13/13] doc: Add port hotplug framework section to programmers guide

2015-02-26 Thread Tetsuya Mukawa
This patch adds a new section for describing port hotplug framework. v15: - Fix function names like below. - rte_eal_dev_attach() to rte_eth_dev_attach(). - rte_eal_dev_detach() to rte_eth_dev_detach(). Signed-off-by: Tetsuya Mukawa --- doc/guides/prog_guide/index.rst | 1 +

[dpdk-dev] [PATCH v15 12/13] ethdev: Add rte_eth_dev_attach/detach() functions

2015-02-26 Thread Tetsuya Mukawa
These functions are used for attaching or detaching a port. When rte_eth_dev_attach() is called, the function tries to realize the device name as pci address. If this is done successfully, rte_eth_dev_attach() will attach physical device port. If not, attaches virtual devive port. When rte_eth_dev_

[dpdk-dev] [PATCH v15 11/13] eal/pci: Add vdev driver initialization and uninitialization functions

2015-02-26 Thread Tetsuya Mukawa
The patch adds following functions. - rte_eal_vdev_init(); - rte_eal_vdev_uninit(); - rte_eal_parse_devargs_str(). These functions are used for driver initialization and finalization. v15: - Add this patch to hotplug series. Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/common/eal_common_dev

[dpdk-dev] [PATCH v15 10/13] ethdev: Add one dev_type parameter to rte_eth_dev_allocate

2015-02-26 Thread Tetsuya Mukawa
This new parameter is needed to keep device type like PCI or virtual. Port detaching processes are different between PCI device and virtual device. RTE_ETH_DEV_PCI indicates device type is PCI. RTE_ETH_DEV_VIRTUAL indicates device is virtual. v15: - Remove needless symbols in version.map - Move rt

[dpdk-dev] [PATCH v15 09/13] eal/pci: Add probe and close functions of pci driver

2015-02-26 Thread Tetsuya Mukawa
- Add pci_close_all_drivers() The function tries to find a driver for the specified device, and then close the driver. - Add rte_eal_pci_probe_one() and rte_eal_pci_close_one() The functions are used for probe and close a device. First the function tries to find a device that has the specif

[dpdk-dev] [PATCH v15 08/13] eal/linux/pci: Add functions for unmapping igb_uio resources

2015-02-26 Thread Tetsuya Mukawa
The patch adds functions for unmapping igb_uio resources. The patch is only for Linux and igb_uio environment. VFIO and BSD are not supported. v9: - Remove "rte_dev_hotplug.h". - Remove needless "#ifdef". (Thanks to Thomas Monjalon and Neil Horman) - Remove pci_unmap_device(). It will be impleme

[dpdk-dev] [PATCH v15 07/13] eal, ethdev: Add a function and function pointers to close ether device

2015-02-26 Thread Tetsuya Mukawa
The patch adds function pointer to rte_pci_driver and eth_driver structure. These function pointers are used when ports are detached. Also, the patch adds rte_eth_dev_uninit(). So far, it's not called by anywhere, but it will be called when port hotplug function is implemented. v10: - Add size par

[dpdk-dev] [PATCH v15 06/13] ethdev: Add rte_eth_dev_release_port to release specified port

2015-02-26 Thread Tetsuya Mukawa
This patch adds rte_eth_dev_release_port(). The function is used for changing an attached status of the device that has specified name. v9: - rte_eth_dev_free() is replaced by rte_eth_dev_release_port(). (Thanks to Thomas Monjalon) v6: - Use rte_eth_dev structure as the paramter of rte_eth_dev_f

[dpdk-dev] [PATCH v15 05/13] eal/pci: Consolidate pci address comparison APIs

2015-02-26 Thread Tetsuya Mukawa
This patch replaces pci_addr_comparison() and memcmp() of pci addresses by rte_eal_compare_pci_addr(). To compare PCI addresses, rte_eal_compare_pci_addr() doesn't use memcmp(). This is because sizeof(struct rte_pci_addr) returns 6, but actually this structure is like below. struct rte_pci_addr {

[dpdk-dev] [PATCH v15 04/13] eal/pci, ethdev: Remove assumption that port will not be detached

2015-02-26 Thread Tetsuya Mukawa
To remove assumption, do like followings. This patch adds "RTE_PCI_DRV_DETACHABLE" to drv_flags of rte_pci_driver structure. The flags indicate the driver can detach devices at runtime. Also, remove assumption that port will not be detached. To remove the assumption. - Add 'attached' member to rt

[dpdk-dev] [PATCH v15 03/13] eal_pci: pci memory map work with driver type

2015-02-26 Thread Tetsuya Mukawa
From: Michael Qiu With the driver type flag in struct rte_pci_dev, we do not need to always map uio devices with vfio related function when vfio enabled. Signed-off-by: Michael Qiu Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/linuxapp/eal/eal_pci.c | 30 +- 1

[dpdk-dev] [PATCH v15 02/13] eal_pci: Add flag to hold kernel driver type

2015-02-26 Thread Tetsuya Mukawa
From: Michael Qiu Currently, dpdk has no ability to know which type of driver( vfio-pci/igb_uio/uio_pci_generic) the device used. It only can check whether vfio is enabled or not staticly. It really useful to have the flag, becasue different type need to handle differently in runtime. For exampl

[dpdk-dev] [PATCH v15 01/13] eal: Enable port Hotplug framework in Linux

2015-02-26 Thread Tetsuya Mukawa
The patch adds CONFIG_RTE_LIBRTE_EAL_HOTPLUG in Linux and BSD configuration. So far, Hotplug functions only support linux. v9: - Move this patch at the top of this patch series. (Thanks to Thomas Monjalon) Signed-off-by: Tetsuya Mukawa --- config/common_bsdapp | 6 ++ config/common_linu

[dpdk-dev] [PATCH v15 00/13] Port Hotplug Framework

2015-02-26 Thread Tetsuya Mukawa
This patch series adds a dynamic port hotplug framework to DPDK. With the patches, DPDK apps can attach or detach ports at runtime. The basic concept of the port hotplug is like followings. - DPDK apps must have responsibility to manage ports. DPDK apps only know which ports are attached or deta

[dpdk-dev] [PATCH] testpmd: HW vlan command

2015-02-26 Thread Xu, Qian Q
Tested-by: Qian Xu - Tested Commit: b67578ccdf45df9fd0f0204578b71acd854ca834 - OS: Fedora20 3.11 - GCC: gcc version 4.8.3 20140624 - CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz - NIC: Intel 82599 Ethernet 10G SFI/SFP+ Network Connection - Default x86_64-native-linuxapp-gcc configuration - Tota

[dpdk-dev] [PATCH 35/36] ixgbe base codes: Update readme

2015-02-26 Thread Ouyang, Changchun
Resend this single patch only as it seems be blocked and not present in the mailing list. Thanks Changchun > -Original Message- > From: Ouyang, Changchun > Sent: Thursday, February 26, 2015 10:09 AM > To: dev at dpdk.org > Cc: Richardson, Bruce; Cao, Waterman; Ouyang, Changchun > Subject

[dpdk-dev] [dpdk-announce] release candidate 2.0.0-rc1

2015-02-26 Thread Thomas Monjalon
A new DPDK release candidate is ready for testing: http://dpdk.org/browse/dpdk/tag/?id=v2.0.0-rc1 This is the first release candidate for DPDK 2.0. It means we are entering in the RC testing phase. Only fixes and cleanups will be accepted. Changelog (main changes since 1.8.0) - en

[dpdk-dev] [PATCH v11 2/2] librte_pmd_null: Support port hotplug function

2015-02-26 Thread Thomas Monjalon
> This patch adds port hotplug support to Null PMD. > > v9: > - Use rte_eth_dev_release_port() instead of rte_eth_dev_free(). > v7: > - Add parameter checkings. >(Thanks to Iremonger, Bernard) > v6: > - Fix a parameter of rte_eth_dev_free(). > v4: > - Fix commit title. > > Signed-off-by:

[dpdk-dev] [PATCH v15] testpmd: Add port hotplug support

2015-02-26 Thread Thomas Monjalon
> The patch introduces following commands. > - port attach [ident] > - port detach [port_id] > - attach: attaching a port > - detach: detaching a port > - ident: pci address of physical device. > Or device name and parameters of virtual device. > (ex. :02:00.0, eth_pcap0,i

[dpdk-dev] [PATCH v15] librte_pmd_pcap: Add port hotplug support

2015-02-26 Thread Thomas Monjalon
> This patch adds finalization code to free resources allocated by the > PMD. > > v6: > - Fix a paramter of rte_eth_dev_free(). > v4: > - Change function name. > > Signed-off-by: Tetsuya Mukawa Applied, thanks

[dpdk-dev] [PATCH v15 00/13] Port Hotplug Framework

2015-02-26 Thread Thomas Monjalon
2015-02-26 04:32, Tetsuya Mukawa: > This patch series adds a dynamic port hotplug framework to DPDK. > With the patches, DPDK apps can attach or detach ports at runtime. > > The basic concept of the port hotplug is like followings. > - DPDK apps must have responsibility to manage ports. > DPDK a