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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 +++--
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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 -
-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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
:
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
() 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
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
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
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
_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
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
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
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 ++-
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
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
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
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
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
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
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
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
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
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
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
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.
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
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(
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
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
601 - 700 of 1001 matches
Mail list logo