[dpdk-dev] [PATCH v3 3/9] app/testpmd: check port is not forwarding in stop_port and close_port

2016-06-12 Thread Bernard Iremonger
Add calls to port_is_forwarding function. Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 7a1e470..f22d1b6 100644 --- a/app/test-pmd

[dpdk-dev] [PATCH v3 7/9] app/testpmd: check for valid socket id when attaching port

2016-06-12 Thread Bernard Iremonger
Fixes: edab33b1c01d ("app/testpmd: support port hotplug") Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index c7ab8a0..991457d 100644 --- a/ap

[dpdk-dev] [PATCH v3 8/9] app/testpmd: check for valid mbuf pool

2016-06-12 Thread Bernard Iremonger
Fixes: b6ea6408fbc7 ("ethdev: store numa_node per device") Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 991457d..1e13c36 100644

[dpdk-dev] [PATCH v3 9/9] app/testpmd: stop forwarding on exit

2016-06-12 Thread Bernard Iremonger
Stop forwarding on exit whether all ports are started or not. Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 4 1 file changed, 4 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd

[dpdk-dev] [PATCH v3 0/4] bonding: locks

2016-06-12 Thread Bernard Iremonger
patches. Changes in v2: Replace patch 1. Add patch 2 and reorder patches. Add spinlock to bonding rx and tx queues. Take all spinlocks in slave add and remove functions. Replace readlocks with spinlocks. Bernard Iremonger (4): bonding: add spinlock to rx and tx queues bonding: grab queue

[dpdk-dev] [PATCH v3 1/4] bonding: add spinlock to rx and tx queues

2016-06-12 Thread Bernard Iremonger
removed the rx and tx queue spinlocks must be held. Fixes: 2efb58cbab6e ("bond: new link bonding library") Signed-off-by: Bernard Iremonger Acked-by: Konstantin Ananyev --- drivers/net/bonding/rte_eth_bond_pmd.c | 4 drivers/net/bonding/rte_eth_bond_private.h | 4 +++- 2 files

[dpdk-dev] [PATCH v3 2/4] bonding: grab queue spinlocks in slave add and remove

2016-06-12 Thread Bernard Iremonger
When adding or removing a slave device from the bonding device the rx and tx queue spinlocks should be held. Signed-off-by: Bernard Iremonger Acked-by: Konstantin Ananyev --- drivers/net/bonding/rte_eth_bond_api.c | 52 -- 1 file changed, 49 insertions(+), 3

[dpdk-dev] [PATCH v3 3/4] bonding: take queue spinlock in rx/tx burst functions

2016-06-12 Thread Bernard Iremonger
Use rte_spinlock_trylock() in the rx/tx burst functions to take the queue spinlock. Signed-off-by: Bernard Iremonger Acked-by: Konstantin Ananyev --- drivers/net/bonding/rte_eth_bond_pmd.c | 116 - 1 file changed, 84 insertions(+), 32 deletions(-) diff --git a

[dpdk-dev] [PATCH v3 4/4] bonding: remove memcpy from burst functions

2016-06-12 Thread Bernard Iremonger
Now that the queue spinlocks have been added to the rx and tx burst functions the memcpy of the slave data is no longer necessary, so it has been removed. Signed-off-by: Bernard Iremonger Acked-by: Konstantin Ananyev --- drivers/net/bonding/rte_eth_bond_pmd.c | 71

[dpdk-dev] [RFC PATCH V2 1/2] drivers/net/virtio: add support for PCI Port Hotplug

2015-05-27 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit_t() function for virtio pmd. Changes in V2: Rebase to use new drivers directory. Reuse memzones. Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtio_ethdev.c | 83

[dpdk-dev] [RFC PATCH V2 2/2] drivers/net/virtio: check vq parameter

2015-05-27 Thread Bernard Iremonger
If vq is NULL, there is a segmentation fault. Signed-off-by: Bernard --- drivers/net/virtio/virtqueue.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/virtio/virtqueue.c b/drivers/net/virtio/virtqueue.c index 8a3005f..7f60e3e 100644 --- a/driver

[dpdk-dev] [RFC PATCH V2] drivers/net/bonding: add support for PCI Port Hotplug

2015-05-28 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the rte_dev_uninit_t() function for the link bonding pmd. Changes in V2: Rebased to use drivers/net/bonding dirctory Free rx and tx queues following comments from Declan Signed-off-by: Bernard Iremonger --- drivers/net/bonding

[dpdk-dev] [RFC PATCH V3] drivers/net/ring: changes to support PCI Port Hotplug

2015-05-29 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the rte_dev_uninit_t() function for the ring pmd. Changes in V3: Rebase to use drivers/net/ring directory Handle no parameters case Changes in V2: Fix crash in the rte_pmd_ring_devuninit() function. Signed-off-by: Bernard --- driv

[dpdk-dev] [PATCH v3 0/1] vhost_xen: fix compile error

2015-11-01 Thread Bernard Iremonger
changes in v3: rebase. add error details to patch description changes in v2: update release notes Bernard Iremonger (1): vhost_xen: fix compile error in main.c doc/guides/rel_notes/release_2_2.rst | 3 +++ examples/vhost_xen/main.c| 8 +--- 2 files changed, 8 insertions(+), 3

[dpdk-dev] [PATCH v3 1/1] vhost_xen: fix compile error in main.c

2015-11-01 Thread Bernard Iremonger
ned-off-by: Bernard Iremonger Acked-by: Acked-by: Konstantin Ananyev --- doc/guides/rel_notes/release_2_2.rst | 3 +++ examples/vhost_xen/main.c| 8 +--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_no

[dpdk-dev] [PATCH v8 00/11] remove pci driver from vdevs

2015-11-03 Thread Bernard Iremonger
debug disabled. remove Intel copyright from bnx2x, cxgbe, enic, mlx4, mpipe and null PMD's. Bernard Iremonger (11): librte_ether: add fields from rte_pci_driver to rte_eth_dev_data pdev: copy pci device info to eth_dev data vdev: copy device info to eth_dev data librte_ether: remove branch

[dpdk-dev] [PATCH v8 01/11] librte_ether: add fields from rte_pci_driver to rte_eth_dev_data

2015-11-03 Thread Bernard Iremonger
branches on pci_dev librte_eal: add RTE_KDRV_NONE for vdevs Signed-off-by: Bernard Iremonger --- lib/librte_eal/common/include/rte_pci.h | 3 ++- lib/librte_ether/rte_ethdev.c | 24 lib/librte_ether/rte_ethdev.h | 27 +++ lib

[dpdk-dev] [PATCH v8 04/11] librte_ether: remove branches on pci_dev

2015-11-03 Thread Bernard Iremonger
use dev_type to distinguish between vdev's and pdev's. remove pci_dev branches. update release notes. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- doc/guides/rel_notes/release_2_2.rst | 3 +++ lib/librte_ether/rte_ethdev.c| 40 +++--

[dpdk-dev] [PATCH v8 06/11] ring: remove pci device

2015-11-03 Thread Bernard Iremonger
remove rte_ring_pmd and pci_dev. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/ring/rte_eth_ring.c | 24 1 file changed, 24 deletions(-) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 77ac23a..faa5759

[dpdk-dev] [PATCH v8 07/11] pcap: remove pci device

2015-11-03 Thread Bernard Iremonger
remove rte_pcap_pmd and pci_dev. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/pcap/rte_eth_pcap.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index

[dpdk-dev] [PATCH v8 10/11] mpipe: remove pci device

2015-11-03 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/mpipe/mpipe_tilegx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/mpipe/mpipe_tilegx.c b/drivers/net/mpipe/mpipe_tilegx.c index 4dc32f7..35134ba 100644 --- a/drivers/net/mpipe/mpipe_tilegx.c +++ b

[dpdk-dev] [PATCH v8 02/11] pdev: copy pci device info to eth_dev data

2015-11-03 Thread Bernard Iremonger
use new function rte_eth_copy_pci_info. copy device info for the following pdevs: ixgbe e1000 i40e fm10k bnx2x cxgbe enic mlx4 vmxnet3 virtio mlx5 Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/bnx2x/bnx2x_ethdev.c | 3 +++ drivers/net/cxgbe/cxgbe_ethdev.c

[dpdk-dev] [PATCH v8 05/11] null: remove pci device

2015-11-03 Thread Bernard Iremonger
remove rte_null_pmd and pci_dev. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/null/rte_eth_null.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index

[dpdk-dev] [PATCH v8 03/11] vdev: copy device info to eth_dev data

2015-11-03 Thread Bernard Iremonger
initialise dev_flags, driver, kdrv, drv_name and numa_node fields in eth_dev data. for the following vdevs: null ring pcap af_packet xenvirt mpipe bonding Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/af_packet/rte_eth_af_packet.c | 12 drivers/net

[dpdk-dev] [PATCH v8 08/11] af_packet: remove pci device

2015-11-03 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson Acked-by: John W. Linville --- drivers/net/af_packet/rte_eth_af_packet.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index 2f14482

[dpdk-dev] [PATCH v8 09/11] xenvirt: remove pci device

2015-11-03 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/xenvirt/rte_eth_xenvirt.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c index 6f9d96f..264aeda 100644 --- a

[dpdk-dev] [PATCH v8 11/11] bonding: remove pci device

2015-11-03 Thread Bernard Iremonger
remove pci_dev, pci_drv, rte_bond_pmd and pci_id_table. handle numa_node for vdevs handle RTE_ETH_DEV_INTR_LSC for vdevs rename the function valid_bonded_device to check_for_bonded_device remove branches on pci_dev Signed-off-by: Bernard Iremonger Acked-by: Tomasz Kulasek --- drivers/net

[dpdk-dev] [PATCH 1/1] librte_ether: fix coverity errors in rte_eth_copy_pci_info

2015-11-06 Thread Bernard Iremonger
add else branch to if statement. Dereferencing NULL pointer reported by Coverity, CID 119256. Dereferencing NULL pointer reported by Coverity, CID 119257. Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_ethdev.c | 23 --- 1 file changed, 12 insertions(+), 11

[dpdk-dev] [v2 0/1] librte_ether: fix coverity errors

2015-11-06 Thread Bernard Iremonger
Changes in v2: Add return statement to if branch instead of an else branch. Bernard Iremonger (1): librte_ether: fix coverity errors in rte_eth_copy_pci_info lib/librte_ether/rte_ethdev.c | 1 + 1 file changed, 1 insertion(+) -- 1.9.1

[dpdk-dev] [v2 1/1] librte_ether: fix coverity errors in rte_eth_copy_pci_info

2015-11-06 Thread Bernard Iremonger
add return statement to if branch Dereferencing NULL pointer reported by Coverity, CID 119256. Dereferencing NULL pointer reported by Coverity, CID 119257. Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_ether

[dpdk-dev] [PATCH 1/1] app/test: create ring and ethdevs in pmd_ring_autotest

2015-11-23 Thread Bernard Iremonger
. Signed-off-by: Bernard Iremonger --- app/test/test_pmd_ring.c | 360 +- doc/guides/nics/pcap_ring.rst | 28 ++-- 2 files changed, 235 insertions(+), 153 deletions(-) diff --git a/app/test/test_pmd_ring.c b/app/test/test_pmd_ring.c index a555db8

[dpdk-dev] [PATCH v2 0/2] ring pmd autotest

2015-11-24 Thread Bernard Iremonger
Changes in v2: move doc changes to a seperate patch. Bernard Iremonger (2): app/test: create ring and ethdevs in pmd_ring_autotest doc: revise ring-based PMD to match latest ring PMD code app/test/test_pmd_ring.c | 360 +- doc/guides/nics

[dpdk-dev] [PATCH v2 2/2] doc: revise ring-based PMD to match latest ring PMD code

2015-11-24 Thread Bernard Iremonger
revise pcap_ring.rst file to match latest ring PMD code Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- doc/guides/nics/pcap_ring.rst | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/doc/guides/nics/pcap_ring.rst b/doc/guides

[dpdk-dev] [PATCH v2 1/2] app/test: create ring and ethdevs in pmd_ring_autotest

2015-11-24 Thread Bernard Iremonger
Use command line option --vdev=eth_ring0 to create port 0. Create two rings and five ethdevs in test_pmd_ring for ports 1 to 5. Improve test output by adding the port number to printf statements, and adding a printf describing each test. Signed-off-by: Bernard Iremonger Acked-by: Bruce

[dpdk-dev] [PATCH v3 1/2] app/test: fix failures in the ring_pmd_autotest program

2015-11-27 Thread Bernard Iremonger
adding a printf describing each test. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- app/test/test_pmd_ring.c | 360 --- 1 file changed, 219 insertions(+), 141 deletions(-) diff --git a/app/test/test_pmd_ring.c b/app/test

[dpdk-dev] [PATCH v3 0/2] ring pmd autotest

2015-11-27 Thread Bernard Iremonger
Fix failures in the ring_pmd_autotest program. Correct errors in the ring PMD documentation. Changes in v3: rebase to latest code. revicse commit messages. Changes in v2: move doc changes to a seperate patch. Bernard Iremonger (2): app/test: fix failures in the ring_pmd_autotest program doc

[dpdk-dev] [PATCH v3 2/2] doc: correct Rings-based PMD section in the NIC Drivers guides

2015-11-27 Thread Bernard Iremonger
which the pcap_ring.rst file was based was not correct. Fixes: correct the sample code in the pcap_ring.rst file. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- doc/guides/nics/pcap_ring.rst | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff

[dpdk-dev] [PATCH v4 1/2] app/test: fix failures in the ring_pmd_autotest program

2015-11-28 Thread Bernard Iremonger
tests") Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- app/test/test_pmd_ring.c | 360 --- 1 file changed, 219 insertions(+), 141 deletions(-) diff --git a/app/test/test_pmd_ring.c b/app/test/test_pmd_ring.c index a555db8..5568

[dpdk-dev] [PATCH v4 0/2] ring pmd autotest

2015-11-28 Thread Bernard Iremonger
seperate patch. Bernard Iremonger (2): app/test: fix failures in the ring_pmd_autotest program doc: correct Rings-based PMD section in the NIC Drivers guides app/test/test_pmd_ring.c | 360 +- doc/guides/nics/pcap_ring.rst | 28 ++-- 2 files changed

[dpdk-dev] [PATCH v4 2/2] doc: correct Rings-based PMD section in the NIC Drivers guides

2015-11-28 Thread Bernard Iremonger
which the pcap_ring.rst file was based was not correct. Fixes: fc1f2750a3ec("doc: programmers guide") Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- doc/guides/nics/pcap_ring.rst | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff -

[dpdk-dev] [PATCH 0/1] vmxnet3 hotplug support

2015-10-01 Thread Bernard Iremonger
-function-rte_eth_copy_dev_info.patch 0020-vmxnet3-copy-pci-device-info-to-eth_dev-data.patch Bernard Iremonger (1): vmxnet3: add PCI Port Hotplug support drivers/net/vmxnet3/vmxnet3_ethdev.c | 33 + 1 file changed, 29 insertions(+), 4 deletions(-) -- 1.9.1

[dpdk-dev] [PATCH 1/1] vmxnet3: add PCI Port Hotplug support

2015-10-01 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 33 + 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index 2beee3e..5cd708e 100644 --- a

[dpdk-dev] [PATCH 1/2] xenvirt: add support for PCI Port Hotplug

2015-10-02 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/xenvirt/rte_eth_xenvirt.c | 63 +++ drivers/net/xenvirt/rte_xen_lib.c | 26 --- drivers/net/xenvirt/rte_xen_lib.h | 5 ++- 3 files changed, 83 insertions(+), 11 deletions(-) diff --git a

[dpdk-dev] [PATCH 2/2] xenvirt: free queues in dev_close

2015-10-02 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/xenvirt/rte_eth_xenvirt.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c index 8923826..1bf35b7 100644 --- a/drivers/net

[dpdk-dev] [PATCH] vhost_xen: fix compile error in main.c

2015-10-02 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- examples/vhost_xen/main.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/vhost_xen/main.c b/examples/vhost_xen/main.c index 5d20700..d124be1 100644 --- a/examples/vhost_xen/main.c +++ b/examples/vhost_xen/main.c @@ -1,7

[dpdk-dev] [PATCH 0/2] xenvirt hotplug support

2015-10-02 Thread Bernard Iremonger
-function-rte_eth_copy_dev_info.patch 0009-xenvirt-copy-pci-device-info-to-eth_dev-data.patch Bernard Iremonger (2): xenvirt: add support for PCI Port Hotplug xenvirt: free queues in dev_close drivers/net/xenvirt/rte_eth_xenvirt.c | 87 +++ drivers/net/xenvirt

[dpdk-dev] [PATCH v3 0/2] librte_ether release memory

2015-07-13 Thread Bernard Iremonger
Changes in V3: Release queue array memory in rte_eth_dev_close() function Changes in V2: do not free mac_addrs and hash_mac_addrs in rte_eth_dev_uninit() function. Bernard Iremonger (2): librte_ether: release memory in uninit function. librte_ether: release queue array memory in close

[dpdk-dev] [PATCH v3 1/2] librte_ether: release memory in uninit function.

2015-07-13 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_ethdev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index b79e5f79..270697e 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether

[dpdk-dev] [PATCH v3 2/2] librte_ether: release queue array memory in close function

2015-07-13 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_ethdev.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 270697e..04b6212 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c

[dpdk-dev] [PATCH 2/5] virtio: check vq parameter in virtqueue_detatch_unused() function

2015-07-14 Thread Bernard Iremonger
If vq is NULL, there is a segmentation fault. Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtqueue.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/virtio/virtqueue.c b/drivers/net/virtio/virtqueue.c index 8a3005f..7f60e3e 100644

[dpdk-dev] [PATCH 4/5] virtio: free queue memory in virtio_dev_close()

2015-07-14 Thread Bernard Iremonger
Add function virtio_free_queues() and call from virtio_dev_close() Use virtio_dev_rx_queue_release() and virtio_dev_tx_queue_release() Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtio_ethdev.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net

[dpdk-dev] [PATCH v5 0/4] virtio PCI Port Hotplug

2015-07-14 Thread Bernard Iremonger
testing on VM. Changes in V3: Rebase to latest code. Free queue memory in uninit() function. Changes in V2: Rebase to use new drivers directory. Reuse memzones. Bernard Iremonger (4): virtio: add support for PCI Port Hotplug virtio: check vq parameter in virtqueue_detatch_unused() function

[dpdk-dev] [PATCH 3/5] virtio: add proper queue release

2015-07-14 Thread Bernard Iremonger
Add functions virtio_dev_queue_release(), virtio_dev_rx_queue_release() and virtio_dev_tx_queue_release(). Signed-off-by: Stephen Hemminger Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtio_ethdev.c | 31 +-- drivers/net/virtio/virtio_ethdev.h | 8

[dpdk-dev] [PATCH 1/5] virtio: add support for PCI Port Hotplug

2015-07-14 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit_t() function for virtio pmd. Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtio_ethdev.c | 72 ++ 1 file changed, 65 insertions(+), 7 deletions(-) diff --git a

[dpdk-dev] [PATCH v5 5/5] test-pmd: remove call to rte_eth_promiscuous_disable() from detach_port()

2015-07-14 Thread Bernard Iremonger
At this point the stop() and close() functions have already been called. The rte_eth_promiscuous_disable() function does not return on the VM. Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/test-pmd

[dpdk-dev] [PATCH v6 1/6] virtio: add support for PCI Port Hotplug

2015-07-15 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit_t() function for virtio pmd. Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtio_ethdev.c | 72 ++ 1 file changed, 65 insertions(+), 7 deletions(-) diff --git a

[dpdk-dev] [PATCH v6 2/6] virtio: check vq parameter in virtqueue_detatch_unused() function

2015-07-15 Thread Bernard Iremonger
If vq is NULL, there is a segmentation fault. Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtqueue.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/net/virtio/virtqueue.c b/drivers/net/virtio/virtqueue.c index 8a3005f..7f60e3e 100644

[dpdk-dev] [PATCH v6 4/6] virtio: free queue memory in virtio_dev_close()

2015-07-15 Thread Bernard Iremonger
Add function virtio_free_queues() and call from virtio_dev_close() Use virtio_dev_rx_queue_release() and virtio_dev_tx_queue_release() Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtio_ethdev.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/net

[dpdk-dev] [PATCH v6 3/6] virtio: add proper queue release

2015-07-15 Thread Bernard Iremonger
Add functions virtio_dev_queue_release(), virtio_dev_rx_queue_release() and virtio_dev_tx_queue_release(). Signed-off-by: Stephen Hemminger Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtio_ethdev.c | 32 ++-- drivers/net/virtio/virtio_ethdev.h | 8

[dpdk-dev] [PATCH v6 5/6] virtio: use queue_release in dev_uninit

2015-07-15 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/virtio/virtio_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index b992898..9ca9bb2 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b

[dpdk-dev] [PATCH v6 0/6] virtio PCI Port Hotplug

2015-07-15 Thread Bernard Iremonger
directory. Bernard Iremonger (6): virtio: add support for PCI Port Hotplug virtio: check vq parameter in virtqueue_detatch_unused() function virtio: add proper queue release virtio: free queue memory in virtio_dev_close() virtio: use queue_release in dev_uninit test-pmd: remove call to

[dpdk-dev] [PATCH v6 6/6] test-pmd: remove call to rte_eth_promiscuous_disable() from detach_port()

2015-07-15 Thread Bernard Iremonger
At this point the stop() and close() functions have already been called. The rte_eth_promiscuous_disable() function does not return on the VM. Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/test-pmd

[dpdk-dev] [PATCH v5 0/3] bonding PCI Port Hotplug

2015-07-15 Thread Bernard Iremonger
: Rebased to use drivers/net/bonding dirctory Free rx and tx queues in uninit() function. Bernard Iremonger (3): bonding: add support for PCI Port Hotplug test-pmd: modified testpmd for link_bonding bonding: free queue memory in stop function app/test-pmd/cmdline.c | 4 +- app

[dpdk-dev] [PATCH v5 1/3] bonding: add support for PCI Port Hotplug

2015-07-15 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the rte_dev_uninit_t() function for the link bonding pmd. Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond.h | 13 - drivers/net/bonding/rte_eth_bond_api.c | 78

[dpdk-dev] [PATCH v5 2/3] test-pmd: modified testpmd for link_bonding

2015-07-15 Thread Bernard Iremonger
When the bonded port is started it also starts the slave port, but the slave port status is not set. A slave_flag has been added to struct rte_port to resolve this issue. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 4 +++- app/test-pmd/testpmd.c | 24

[dpdk-dev] [PATCH v5 3/3] bonding: free queue memory in stop function

2015-07-15 Thread Bernard Iremonger
add function bond_ethdev_free_queues() and call from the bond_ethdev_stop() function. Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_pmd.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net

[dpdk-dev] [PATCH v6 2/3] test-pmd: modified testpmd for link_bonding

2015-07-21 Thread Bernard Iremonger
When the bonded port is started it also starts the slave port, but the slave port status is not set. A slave_flag has been added to struct rte_port to resolve this issue. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 4 +++- app/test-pmd/testpmd.c | 22

[dpdk-dev] [PATCH v6 3/3] bonding: free queue memory in stop function

2015-07-21 Thread Bernard Iremonger
add function bond_ethdev_free_queues() and call from the bond_ethdev_stop() function. Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_pmd.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net

[dpdk-dev] [PATCH v6 0/3] bonding PCI Port Hotplug

2015-07-21 Thread Bernard Iremonger
. Modified testpmd to handle attach/detach of bonding pmd. Changes in V2: Rebased to use drivers/net/bonding dirctory Free rx and tx queues in uninit() function. Bernard Iremonger (3): bonding: add support for PCI Port Hotplug test-pmd: modified testpmd for link_bonding bonding: free queue

[dpdk-dev] [PATCH v6 1/3] bonding: add support for PCI Port Hotplug

2015-07-21 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the rte_dev_uninit_t() function for the link bonding pmd. Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond.h | 13 - drivers/net/bonding/rte_eth_bond_api.c | 78

[dpdk-dev] [PATCH v7 1/4] bonding: add support for PCI Port Hotplug

2015-07-27 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the rte_dev_uninit_t() function for the link bonding pmd. Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond.h | 13 - drivers/net/bonding/rte_eth_bond_api.c | 80

[dpdk-dev] [PATCH v7 0/4] bonding PCI Port Hotplug

2015-07-27 Thread Bernard Iremonger
and tx queues in uninit() function. Bernard Iremonger (4): bonding: add support for PCI Port Hotplug test-pmd: modified testpmd for link_bonding bonding: free queue memory in close function testpmd_app_ug: add example of re-attaching bonded port app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v7 2/4] test-pmd: modified testpmd for link_bonding

2015-07-27 Thread Bernard Iremonger
When the bonded port is started it also starts the slave port, but the slave port status is not set. A slave_flag has been added to struct rte_port to resolve this issue. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 4 +++- app/test-pmd/testpmd.c | 22

[dpdk-dev] [PATCH v7 3/4] bonding: free queue memory in close function

2015-07-27 Thread Bernard Iremonger
add function bond_ethdev_free_queues() and call from the bond_ethdev_close() function. Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_pmd.c | 21 - drivers/net/bonding/rte_eth_bond_private.h | 2 +- 2 files changed, 21 insertions(+), 2 deletions

[dpdk-dev] [PATCH v7 4/4] testpmd_app_ug: add example of re-attaching bonded port

2015-07-27 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 13 + 1 file changed, 13 insertions(+) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index 4652962..5272bf4 100644 --- a/doc/guides

[dpdk-dev] [RFC PATCH V3] ixgbe: changes to support PCI Port Hotplug

2015-06-02 Thread Bernard Iremonger
dev_uninit() functions. Signed-off-by: Bernard Iremonger --- drivers/net/ixgbe/ixgbe_ethdev.c | 79 +- drivers/net/ixgbe/ixgbe_ethdev.h |2 + drivers/net/ixgbe/ixgbe_pf.c | 22 ++ 3 files changed, 101 insertions(+), 2 deletions(-) diff --git

[dpdk-dev] [RFC PATCH V3] e1000: igb and em1000 PCI Port Hotplug changes

2015-06-03 Thread Bernard Iremonger
() functions. Remove input parameter checking from dev_uninit() functions. Signed-off-by: Bernard Iremonger --- drivers/net/e1000/e1000_ethdev.h |4 +- drivers/net/e1000/em_ethdev.c| 50 ++- drivers/net/e1000/igb_ethdev.c | 85 +- drivers

[dpdk-dev] [RFC PATCH V2 3/4] i40e: increase ASQ_DELAY_MS to 100 in i40evf_wait_cmd_done()

2015-06-04 Thread Bernard Iremonger
Increase delay to avoid i40evf_read_pfmsg() failures. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev_vf.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 843ab9b..c1add33

[dpdk-dev] [RFC PATCH V2 1/4] i40e: changes to support PCI Port Hotplug

2015-06-04 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit functions for rte_i40e_pmd and rte_i40evf_pmd. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 79 - drivers/net/i40e/i40e_ethdev_vf.c | 45

[dpdk-dev] [RFC PATCH V2 2/4] i40e: release vmdq vsi's in dev_close

2015-06-04 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 7bf9532..55fee6b 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers

[dpdk-dev] [RFC PATCH V2 4/4] i40e: call _clear_cmd() when error occurs

2015-06-04 Thread Bernard Iremonger
_clear_cmd() was not being called in failure situations, resulting in the next command also failing. Fix several typos. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev_vf.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e

[dpdk-dev] [PATCH] bonding: fix initialisation of current_primary_port

2016-03-23 Thread Bernard Iremonger
ned-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/bonding/rte_eth_bond_api.c b/drivers/net/bonding/rte_eth_bond_api.c index 3fca764..d473ac2 100644 --- a/drivers/net/bonding/rte_eth_bond_api.c +++ b/drivers/n

[dpdk-dev] [PATCH 2/5] bonding: add read/write lock to rx/tx burst functions

2016-05-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_pmd.c | 112 + 1 file changed, 85 insertions(+), 27 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index ed6245b..c3e772c 100644

[dpdk-dev] [PATCH 1/5] bonding: replace spinlock with read/write lock

2016-05-05 Thread Bernard Iremonger
Fixes: a45b288ef21a ("bond: support link status polling") Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_api.c | 10 +++--- drivers/net/bonding/rte_eth_bond_pmd.c | 57 +++--- drivers/net/bonding/rte_eth_bond_private.h | 6 ++-

[dpdk-dev] [PATCH 3/5] bonding: remove memcopy of slaves from rx/tx burst function

2016-05-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_pmd.c | 41 +- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index c3e772c..c33a860 100644 --- a

[dpdk-dev] [PATCH 0/5] bonding: locks

2016-05-05 Thread Bernard Iremonger
Replace spinlock with read/write lock. Add read/write locks where needed to protect active_slave_count and active_slaves[]. With read/write locks in place remove memcpy of slaves. Bernard Iremonger (5): bonding: replace spinlock with read/write lock bonding: add read/write lock to rx/tx burst

[dpdk-dev] [PATCH 5/5] bonding: add read/write lock to the link_update function

2016-05-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_pmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 6e1cc10..fff6654 100644 --- a/drivers/net/bonding

[dpdk-dev] [PATCH 4/5] bonding: add read/write lock to stop function

2016-05-05 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_pmd.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index c33a860..6e1cc10 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b

[dpdk-dev] [PATCH v2 0/8] app/testpmd: forwarding

2016-05-05 Thread Bernard Iremonger
call to init_fwd_streams app/testpmd: check for valid socket id when attaching port app/testpmd: check for valid mbuf pool Bernard Iremonger (8): app/testpmd: add function port_is_forwarding app/testpmd: don't update fwding config when attaching/detaching a port app/testpmd: check

[dpdk-dev] [PATCH v2 1/8] app/testpmd: add function port_is_forwarding

2016-05-05 Thread Bernard Iremonger
Add function port_is_forwarding to check whether a port is forwarding or not. Signed-off-by: Bernard Iremonger --- app/test-pmd/config.c | 18 +- app/test-pmd/testpmd.h | 3 ++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/config.c b/app/test

[dpdk-dev] [PATCH v2 3/8] app/testpmd: check port is not forwarding in stop_port and close_port

2016-05-05 Thread Bernard Iremonger
Add calls to port_is_forwarding function. Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 5dc7bba..11b4cf7 100644 --- a/app/test-pmd

[dpdk-dev] [PATCH v2 5/8] app/testpmd: add function port_is_bonding_slave

2016-05-05 Thread Bernard Iremonger
Use this function in stop_port and close_port functions. Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 18 ++ app/test-pmd/testpmd.h | 2 ++ 2 files changed, 20 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 2c58075..e5e50ca

[dpdk-dev] [PATCH v2 6/8] app/testpmd: move call to init_fwd_streams

2016-05-05 Thread Bernard Iremonger
Move call to init_fwd_streams from start_port function to start_packet_forwarding function. Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index e5e50ca

[dpdk-dev] [PATCH v2 7/8] app/testpmd: check for valid socket id when attaching port

2016-05-05 Thread Bernard Iremonger
Fixes: edab33b1c01d ("app/testpmd: support port hotplug") Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index e632a5b..f044a91 100644 --- a/ap

[dpdk-dev] [PATCH v2 2/8] app/testpmd: don't update fwding config when attaching/detaching a port

2016-05-05 Thread Bernard Iremonger
Remove checks on test_done variable. Remove code to update forwarding configuration. Fixes: edab33b1c01d ("app/testpmd: support port hotplug") Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 28 +--- 1 file changed, 1 insertion(+), 27 deletion

[dpdk-dev] [PATCH v2 4/8] app/testpmd: reconfigure forwarding after changing portlist

2016-05-05 Thread Bernard Iremonger
Set nb_fwd_ports to zero on quit. Check portlist has been set before displaying forwarding configuration. Fixes: d3a274ce9dee ("app/testpmd: handle SIGINT and SIGTERM") Fixes: af75078fece3 ("first public release") Signed-off-by: Bernard Iremonger --- app/test-pmd/config.

[dpdk-dev] [PATCH v2 8/8] app/testpmd: check for valid mbuf pool

2016-05-05 Thread Bernard Iremonger
Fixes: b6ea6408fbc7 ("ethdev: store numa_node per device") Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index f044a91..dad616d 100644

[dpdk-dev] [PATCH 00/20] remove pci driver from vdevs

2015-09-28 Thread Bernard Iremonger
pcap af_packet xenvirt mpipe All the pdev PMD's have been modified to copy the pci device info into ethdev data. Bernard Iremonger (17): librte_eal: add RTE_KDRV_NONE for vdevs librte_ether: add fields from rte_pci_driver to rte_eth_dev_data librte_ether: add function rte_eth_copy_dev_info(

[dpdk-dev] [PATCH 01/20] librte_eal: add RTE_KDRV_NONE for vdevs

2015-09-28 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- lib/librte_eal/common/include/rte_pci.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 83e3c28..334c12e 100644 --- a/lib/librte_eal/common/include

[dpdk-dev] [PATCH 07/20] pcap: remove pci device driver

2015-09-28 Thread Bernard Iremonger
remove rte_pcap_pmd and pci_dev. initialise dev_flags, driver, drv_name, kdrv and numa_node fields in eth_dev data Signed-off-by: Bernard Iremonger --- drivers/net/pcap/rte_eth_pcap.c | 31 +-- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/drivers

<    2   3   4   5   6   7   8   9   10   11   >