Re: [dpdk-dev] [PATCH] maintainers: add Xavier for bonding

2020-06-07 Thread Charles (Chas) Williams
On 5/18/2020 9:00 AM, Ferruh Yigit wrote: On 5/18/2020 12:20 PM, Wei Hu (Xavier) wrote: Adding Xavier as additional maintainer to bonding. Signed-off-by: Wei Hu (Xavier) --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6a14622..46b6535 10

[dpdk-dev] [PATCH v3] mbuf: use refcnt = 0 when debugging

2017-09-07 Thread Charles (Chas) Williams
After commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool") is it much harder to detect a "double free". If the developer makes a copy of an mbuf pointer and frees it twice, this condition is never detected and the mbuf gets returned to the pool twice. Since this requires extra work to trac

[dpdk-dev] [PATCH v2] mbuf: use refcnt = 0 when debugging

2017-08-07 Thread Charles (Chas) Williams
After commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool") is it much harder to detect a "double free". If the developer makes a copy of an mbuf pointer and frees it twice, this condition is never detected and the mbuf gets returned to the pool twice. Since this requires extra work to trac

[dpdk-dev] [PATCH] mbuf: use refcnt = 0 when debugging

2017-08-07 Thread Charles (Chas) Williams
After commit 8f094a9ac5d7 is it much harder to detect a "double free". If the developer makes a copy of an mbuf pointer and frees it twice, this condition is never detected and the mbuf gets returned to the pool twice. Since this requires extra work to track, make this behavior conditional on CONF

Re: [dpdk-dev] [PATCH] net/vmxnet3: restore correct filtering

2017-08-01 Thread Charles (Chas) Williams
On 08/01/2017 07:41 PM, Shrikrishna Khare wrote: On Mon, 24 Jul 2017, Charles (Chas) Williams wrote: We should only restore shadow_vfta when hw_vlan_filter is active. Otherwise, we should restore the previous filtering behavior. Fixes: f003fc383487("vmxnet3: enable vlan filtering

[dpdk-dev] [PATCH] net/vmxnet3: restore correct filtering

2017-07-24 Thread Charles (Chas) Williams
We should only restore shadow_vfta when hw_vlan_filter is active. Otherwise, we should restore the previous filtering behavior. Fixes: f003fc383487("vmxnet3: enable vlan filtering") Cc: sta...@dpdk.org Signed-off-by: Chas Williams --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 5 - 1 file chang

[dpdk-dev] [PATCH] eal: implement rte_log_get_level

2017-07-22 Thread Charles (Chas) Williams
This function wasn't provided in the original commit. Fixes: 4f0981e6ec6c ("eal: deprecate log functions") Cc: sta...@dpdk.org Signed-off-by: Chas Williams --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + lib/librte_eal/common/eal_common_log.c | 9 + lib/librte_eal/

Re: [dpdk-dev] [PATCH 0/2] Some small changes to net/virtio

2017-07-18 Thread Charles (Chas) Williams
On 07/18/2017 07:50 AM, Ferruh Yigit wrote: On 7/18/2017 12:05 AM, Charles (Chas) Williams wrote: Just a couple small changes to net/virtio that make it a little more well behaved. Same question here, is this patchset targets the 17.08-rc2? Can this be postponed? Yes, these can all be

[dpdk-dev] [PATCH 2/2] net/virtio: register/unregister intr handler on start/stop

2017-07-17 Thread Charles (Chas) Williams
From: Brian Russell Register and unregister the virtio interrupt handler when the device is started and stopped. Signed-off-by: Brian Russell --- drivers/net/virtio/virtio_ethdev.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/net/virt

[dpdk-dev] [PATCH 1/2] net/virtio: do not re-enter clean up routines

2017-07-17 Thread Charles (Chas) Williams
.dev_uninit calls .dev_stop and .dev_close. The work that is done in those routines doesn't need repeated. Use started and opened to track the adapter's status. Signed-off-by: Chas Williams --- drivers/net/virtio/virtio_ethdev.c | 15 --- drivers/net/virtio/virtio_pci.h| 4 +++

[dpdk-dev] [PATCH 0/2] Some small changes to net/virtio

2017-07-17 Thread Charles (Chas) Williams
Just a couple small changes to net/virtio that make it a little more well behaved. Brian Russell (1): net/virtio: register/unregister intr handler on start/stop Charles (Chas) Williams (1): net/virtio: do not re-enter clean up routines drivers/net/virtio/virtio_ethdev.c | 41

[dpdk-dev] [PATCH] net/e1000: always enable receive and transmit

2017-07-17 Thread Charles (Chas) Williams
The transmit and receive controller state machines are only enabled after receiving an interrupt and the link status is now valid. If an adapter is being used in conjuction with NC-SI, network controller sideband interface, the adapter may never get a link state change interrupt since the adapter'

[dpdk-dev] [PATCH] net/vmxnet3: avoid code duplication

2017-06-29 Thread Charles (Chas) Williams
Refactor vmxnet3_post_rx_bufs() to call vmxnet3_renew_desc() to update the newly allocated mbufs. While here, relocate the relevant comments to vmxnet3_renew_desc(). Signed-off-by: Chas Williams --- drivers/net/vmxnet3/vmxnet3_rxtx.c | 61 +- 1 file changed,

Re: [dpdk-dev] [PATCH V2 0/6] some local vmxnet3 patches

2017-06-28 Thread Charles (Chas) Williams
On 06/28/2017 08:52 AM, Ferruh Yigit wrote: On 6/28/2017 12:30 PM, Ferruh Yigit wrote: On 6/15/2017 1:16 PM, Charles (Chas) Williams wrote: This series addresses some local issues with the vmxnet3 driver that others might find of interest. Changes in v2: - net/vmxnet3: Implement retrieval

[dpdk-dev] [PATCH] doc: add extended stats to features file

2017-06-28 Thread Charles (Chas) Williams
Update vmxnet3.ini to indicate extended stats support Signed-off-by: Chas Williams --- doc/guides/nics/features/vmxnet3.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/vmxnet3.ini b/doc/guides/nics/features/vmxnet3.ini index 8f7f8e0..4e60183 100644 --- a/doc/gui

Re: [dpdk-dev] [PATCH V2 0/6] some local vmxnet3 patches

2017-06-28 Thread Charles (Chas) Williams
On 06/28/2017 08:52 AM, Ferruh Yigit wrote: On 6/28/2017 12:30 PM, Ferruh Yigit wrote: On 6/15/2017 1:16 PM, Charles (Chas) Williams wrote: This series addresses some local issues with the vmxnet3 driver that others might find of interest. Changes in v2: - net/vmxnet3: Implement retrieval

[dpdk-dev] [PATCH v2 6/6] net/vmxnet3: preserve configured MAC address

2017-06-15 Thread Charles (Chas) Williams
From: George Wilkie When starting a vmxnet3 device, it is always writing the permanent MAC address, even if a different MAC address was configured. Write from the device data instead which holds the current one. Signed-off-by: George Wilkie Acked-by: Shrikrishna Khare --- drivers/net/vmxnet3

[dpdk-dev] [PATCH v2 5/6] net/vmxnet3: receive queue memory leak

2017-06-15 Thread Charles (Chas) Williams
From: Mandeep Rohilla This addresses an mbuf leak in an error condition during packet receive. Fixes: dfaff37fc46d ("vmxnet3: import new vmxnet3 poll mode driver implementation") Signed-off-by: Mandeep Rohilla --- drivers/net/vmxnet3/vmxnet3_rxtx.c | 6 ++ 1 file changed, 6 insertions(+)

[dpdk-dev] [PATCH v2 3/6] net/vmxnet3: Generate link-state change notifications

2017-06-15 Thread Charles (Chas) Williams
From: Robert Shearman Generate link-state change notifications by listening to interrupts generated by the device. Make use of the existing vmxnet3_process_events function that was compiled out, but change it to call vmxnet3_dev_link_update on a VMXNET3_ECR_LINK event and to not be so noisy in it

[dpdk-dev] [PATCH v2 2/6] net/vmxnet3: Implement retrieval of extended stats

2017-06-15 Thread Charles (Chas) Williams
From: Robert Shearman Implement xstats_get() to allow a number of driver-specific tx and rx stats to be retrieved. Signed-off-by: Robert Shearman --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 113 +++ 1 file changed, 113 insertions(+) diff --git a/drivers/net/vmxn

[dpdk-dev] [PATCH v2 4/6] net/vmxnet3: Make vmxnet3_process_events less noisy

2017-06-15 Thread Charles (Chas) Williams
From: Robert Shearman Make vmxnet3_process_events less noisy by removing logging when there are no events to process and by making link, device-change and debug events DEBUG level rather than ERR. Change these to use PMD_DRV_LOG instead of PMD_INIT_LOG since they don't happen at device init. Si

[dpdk-dev] [PATCH v2 1/6] net/vmxnet3: retain counters on restart

2017-06-15 Thread Charles (Chas) Williams
From: Nachiketa Prachanda Most nics like virtio, igb/ixgbe etc. don't reset counters on dev_start and arguably this helps in monitoring the counters across a longer time span with multiple device start/stops. vmxnet3 behavior is opposite to that and counters are reset by the host side implementat

[dpdk-dev] [PATCH V2 0/6] some local vmxnet3 patches

2017-06-15 Thread Charles (Chas) Williams
This series addresses some local issues with the vmxnet3 driver that others might find of interest. Changes in v2: - net/vmxnet3: Implement retrieval of extended stats .id field wasn't being filled in xstats. - net/vmxnet3: receive queue memory leak The leak and buffer reallcation were

Re: [dpdk-dev] [PATCH 5/6] net/vmxnet3: receive queue lockup and memleak

2017-06-01 Thread Charles (Chas) Williams
s. That can be refactored into a new commit. On 05/19/2017 01:55 PM, Charles (Chas) Williams wrote: From: Mandeep Rohilla The receive queue can lockup if all the rx descriptors have lost their mbufs and temporarily there are no mbufs available. This can happen if there is an mbuf leak or if the applicat

[dpdk-dev] [PATCH] net/ring: fix adding MAC addresses

2017-05-26 Thread Charles (Chas) Williams
When .mac_addr_add() was changed to allow a return code, ring was changed to return -ENOTSUP. This changes the behavior of the rte_ring driver in a way that does not maintain backward compatibility. Additionally, if the intent is to return -ENOTSUP, you could simply not define the stubs. Fixes:

Re: [dpdk-dev] [PATCH 2/3] net/af_packet: add accessor for iface

2017-05-22 Thread Charles (Chas) Williams
On 05/22/2017 05:39 AM, Ferruh Yigit wrote: Hi Chas, On 5/17/2017 7:03 PM, Charles (Chas) Williams wrote: Provide an accessor for the name of the underlying linux interface used by the AF_PACKET-based interface. This patch provides a PMD specific API to get PMD internal data (internals

[dpdk-dev] [PATCH 6/6] net/vmxnet3: preserve configured MAC address

2017-05-19 Thread Charles (Chas) Williams
From: George Wilkie When starting a vmxnet3 device, it is always writing the permanent MAC address, even if a different MAC address was configured. Write from the device data instead which holds the current one. Signed-off-by: George Wilkie --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 +- 1 f

[dpdk-dev] [PATCH 4/6] net/vmxnet3: Make vmxnet3_process_events less noisy

2017-05-19 Thread Charles (Chas) Williams
From: Robert Shearman Make vmxnet3_process_events less noisy by removing logging when there are no events to process and by making link, device-change and debug events DEBUG level rather than ERR. Change these to use PMD_DRV_LOG instead of PMD_INIT_LOG since they don't happen at device init. Si

[dpdk-dev] [PATCH 3/6] net/vmxnet3: Generate link-state change notifications

2017-05-19 Thread Charles (Chas) Williams
From: Robert Shearman Generate link-state change notifications by listening to interrupts generated by the device. Make use of the existing vmxnet3_process_events function that was compiled out, but change it to call vmxnet3_dev_link_update on a VMXNET3_ECR_LINK event and to not be so noisy in it

[dpdk-dev] [PATCH 5/6] net/vmxnet3: receive queue lockup and memleak

2017-05-19 Thread Charles (Chas) Williams
From: Mandeep Rohilla The receive queue can lockup if all the rx descriptors have lost their mbufs and temporarily there are no mbufs available. This can happen if there is an mbuf leak or if the application holds on to the mbuf for a while. This also addresses an mbuf leak in an error condition

[dpdk-dev] [PATCH 2/6] net/vmxnet3: Implement retrieval of extended stats

2017-05-19 Thread Charles (Chas) Williams
From: Robert Shearman Implement xstats_get() to allow a number of driver-specific tx and rx stats to be retrieved. Signed-off-by: Robert Shearman --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 111 +++ 1 file changed, 111 insertions(+) diff --git a/drivers/net/vmxn

[dpdk-dev] [PATCH 1/6] net/vmxnet3: retain counters on restart

2017-05-19 Thread Charles (Chas) Williams
From: Nachiketa Prachanda Most nics like virtio, igb/ixgbe etc. don't reset counters on dev_start and arguably this helps in monitoring the counters across a longer time span with multiple device start/stops. vmxnet3 behavior is opposite to that and counters are reset by the host side implementat

[dpdk-dev] [PATCH 3/3] net/af_packet: fix packet bytes counting

2017-05-17 Thread Charles (Chas) Williams
On error, we also need to zero the bytes transmitted. Signed-off-by: Charles (Chas) Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet

[dpdk-dev] [PATCH 1/3] net/af_packet: handle strdup() failures

2017-05-17 Thread Charles (Chas) Williams
Fixes: 1b93c2aa81b4 ("net/af_packet: add interface name to internals") Signed-off-by: Chas Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index a03

[dpdk-dev] [PATCH 2/3] net/af_packet: add accessor for iface

2017-05-17 Thread Charles (Chas) Williams
Provide an accessor for the name of the underlying linux interface used by the AF_PACKET-based interface. Signed-off-by: Charles (Chas) Williams --- drivers/net/af_packet/Makefile | 2 + drivers/net/af_packet/rte_eth_af_packet.c | 17 +++ drivers/net/af_packet

[dpdk-dev] [PATCH] net/vmxnet3: fix queue size changes

2017-03-15 Thread Charles (Chas) Williams
If the user reconfigures the queue size, then the previously allocated memzone may potentially be too small. Release the memzone when a queue is released and allocate a new one each time a queue is setup. While here convert to rte_eth_dma_zone_reserve() which does basically the same things as the

Re: [dpdk-dev] [PATCH] net/vmxnet3: fix queue size changes

2017-03-15 Thread Charles (Chas) Williams
On 03/15/2017 06:05 AM, Jan Blunck wrote: On Wed, Mar 15, 2017 at 10:45 AM, Charles (Chas) Williams wrote: On 03/15/2017 04:18 AM, Jan Blunck wrote: On Tue, Mar 14, 2017 at 5:38 PM, Charles (Chas) Williams wrote: On 03/14/2017 12:11 PM, Jan Blunck wrote: On Mon, Mar 13, 2017 at

Re: [dpdk-dev] [PATCH] net/vmxnet3: fix queue size changes

2017-03-15 Thread Charles (Chas) Williams
On 03/15/2017 06:05 AM, Jan Blunck wrote: On Wed, Mar 15, 2017 at 10:45 AM, Charles (Chas) Williams wrote: On 03/15/2017 04:18 AM, Jan Blunck wrote: On Tue, Mar 14, 2017 at 5:38 PM, Charles (Chas) Williams wrote: On 03/14/2017 12:11 PM, Jan Blunck wrote: On Mon, Mar 13, 2017 at

Re: [dpdk-dev] [PATCH] net/vmxnet3: fix queue size changes

2017-03-15 Thread Charles (Chas) Williams
On 03/15/2017 04:18 AM, Jan Blunck wrote: On Tue, Mar 14, 2017 at 5:38 PM, Charles (Chas) Williams wrote: On 03/14/2017 12:11 PM, Jan Blunck wrote: On Mon, Mar 13, 2017 at 11:41 PM, Charles (Chas) Williams wrote: If the user reconfigures the queues size, then the previosly allocated

Re: [dpdk-dev] [PATCH] net/vmxnet3: fix queue size changes

2017-03-14 Thread Charles (Chas) Williams
On 03/14/2017 12:11 PM, Jan Blunck wrote: On Mon, Mar 13, 2017 at 11:41 PM, Charles (Chas) Williams wrote: If the user reconfigures the queues size, then the previosly allocated memzone may potentially be too small. Instead, always free the old memzone and allocate a new one. Fixes

[dpdk-dev] [PATCH] net/vmxnet3: fix queue size changes

2017-03-13 Thread Charles (Chas) Williams
If the user reconfigures the queues size, then the previosly allocated memzone may potentially be too small. Instead, always free the old memzone and allocate a new one. Fixes: dfaff37fc46d ("vmxnet3: import new vmxnet3 poll mode driver implementation") Signed-off-by: Chas Williams --- driver

[dpdk-dev] [PATCH] net/bnx2x: Fix transmit queue free threshold

2017-02-10 Thread Charles (Chas) Williams
The default tx_free_thresh is potentially larger than the allocated queue which will result in TX queue cleanup never happening. To fix this, lower the default free threshold and ensure that the free threshold is never greater than the maximum outstanding transmit buffers. Fixes: 827ed2a118cc ("n

[dpdk-dev] [PATCH v2 4/4] net/af_packet: add 802.1Q (VLAN) support

2017-01-05 Thread Charles (Chas) Williams
AF_PACKET has some flags to check on the receive side for 802.1Q information. If present, we copy into the mbuf. For transmit, we insert any 802.1Q information into the packet before copying to the ring. Signed-off-by: Charles (Chas) Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 14

[dpdk-dev] [PATCH v2 3/4] net/af_packet: promisicuous support

2017-01-05 Thread Charles (Chas) Williams
Add promiscuous support to the AF_PACKET PMD. The underlying linux device's IF_PROMISC flag is toggled to enable or disable. Signed-off-by: Charles (Chas) Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 39 +++ 1 file changed, 39 insertions(+) diff --

[dpdk-dev] [PATCH v2 2/4] net/af_packet: add support to change mtu

2017-01-05 Thread Charles (Chas) Williams
The underlying linux device's MTU is changed subject to the frame size limitations during device creation. Signed-off-by: Charles (Chas) Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 29 + 1 file changed, 29 insertions(+) diff --git a/driver

[dpdk-dev] [PATCH v2 1/4] net/af_packet: add iface name to internals

2017-01-05 Thread Charles (Chas) Williams
This will be used by later changes to determine the underlying linux interface. Signed-off-by: Charles (Chas) Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet

[dpdk-dev] [PATCH 2/4] net/af_packet: add support to change mtu

2017-01-03 Thread Charles (Chas) Williams
The underlying linux device's MTU is changed subject to the frame size limitations during device creation. Signed-off-by: Charles (Chas) Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 29 + 1 file changed, 29 insertions(+) diff --git a/driver

[dpdk-dev] [PATCH 3/4] net/af_packet: promisicuous support

2017-01-03 Thread Charles (Chas) Williams
Add promiscuous support to the AF_PACKET PMD. The underlying linux device's IF_PROMISC flag is toggled to enable or disable. Signed-off-by: Charles (Chas) Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 40 +++ 1 file changed, 40 insertions(+) diff --

[dpdk-dev] [PATCH 4/4] net/af_packet: add 802.1Q (VLAN) support

2017-01-03 Thread Charles (Chas) Williams
AF_PACKET has some flags to check on the receive side for 802.1Q information. If present, we copy into the mbuf. For transmit, we insert any 802.1Q information into the packet before copying to the ring. Signed-off-by: Charles (Chas) Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 14

[dpdk-dev] [PATCH 1/4] net/af_packet: add iface name to internals

2017-01-03 Thread Charles (Chas) Williams
This will be used by later changes to determine the underlying linux interface. Signed-off-by: Chas Williams --- drivers/net/af_packet/rte_eth_af_packet.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.

[dpdk-dev] [PATCH v4 2/2] net/vhost: emulate device start/stop behavior

2017-01-03 Thread Charles (Chas) Williams
.dev_start()/.dev_stop() roughly corresponds to the local device's port being ready. This is different from the remote client being connected which is roughly link up or down. Emulate the device start/stop behavior by separately tracking the start/stop state to determine if we should allow packet

[dpdk-dev] [PATCH v4 1/2] net/vhost: create datagram sockets immediately

2017-01-03 Thread Charles (Chas) Williams
If you create a vhost server device, it doesn't create the actual datagram socket until you call .dev_start(). If you call .dev_stop() is also deletes those sockets. For QEMU clients, this is a problem since QEMU doesn't know how to re-attach to datagram sockets that have gone away. To fix this,

Re: [dpdk-dev] [PATCH v3 1/2] net/vhost: create datagram sockets immediately

2017-01-03 Thread Charles (Chas) Williams
On 01/03/2017 03:22 AM, Yuanhan Liu wrote: On Sun, Jan 01, 2017 at 02:01:56PM -0500, Charles (Chas) Williams wrote: If you create a vhost server device, it doesn't create the actual datagram socket until you call .dev_start(). If you call .dev_stop() is also deletes those sockets. For

[dpdk-dev] [PATCH v3 2/2] net/vhost: emulate device start/stop behavior

2017-01-01 Thread Charles (Chas) Williams
.dev_start()/.dev_stop() roughly corresponds to the local device's port being up or down. This is different from the remote client being connected which is roughtly link up or down. Emulate the behavior by separately tracking the local start/stop state to determine if we should allow packets to b

[dpdk-dev] [PATCH v3 1/2] net/vhost: create datagram sockets immediately

2017-01-01 Thread Charles (Chas) Williams
If you create a vhost server device, it doesn't create the actual datagram socket until you call .dev_start(). If you call .dev_stop() is also deletes those sockets. For QEMU clients, this is a problem since QEMU doesn't know how to re-attach to datagram sockets that have gone away. To work arou

[dpdk-dev] [PATCH v2 2/2] net/vhost: emulate device start/stop behavior

2017-01-01 Thread Charles (Chas) Williams
.dev_start()/.dev_stop() roughly corresponds to the local device's port being up or down. This is different from the remote client being connected which is roughtly link up or down. Emulate the behavior by separately tracking the local start/stop state to determine if we should allow packets to b

[dpdk-dev] [PATCH v2 1/2] net/vhost: create datagram sockets immediately

2017-01-01 Thread Charles (Chas) Williams
If you create a vhost server device, it doesn't create the actual datagram socket until you call .dev_start(). If you call .dev_stop() is also deletes those sockets. For QEMU clients, this is a problem since QEMU doesn't know how to re-attach to datagram sockets that have gone away. To work arou

Re: [dpdk-dev] [PATCH 2/2] vhost: start vhost servers once

2016-12-30 Thread Charles (Chas) Williams
On 12/29/2016 10:15 PM, Yuanhan Liu wrote: On Thu, Dec 29, 2016 at 10:58:11AM -0500, Charles (Chas) Williams wrote: On 12/29/2016 03:52 AM, Yuanhan Liu wrote: On Wed, Dec 28, 2016 at 04:10:52PM -0500, Charles (Chas) Williams wrote: Start a vhost server once during devinit instead of during

Re: [dpdk-dev] [PATCH 2/2] vhost: start vhost servers once

2016-12-29 Thread Charles (Chas) Williams
On 12/29/2016 03:52 AM, Yuanhan Liu wrote: On Wed, Dec 28, 2016 at 04:10:52PM -0500, Charles (Chas) Williams wrote: Start a vhost server once during devinit instead of during device start and stop. Some vhost clients, QEMU, don't re-attaching to sockets when the vhost server is stoppe

Re: [dpdk-dev] [PATCH 1/2] vhost: reference count fix for nb_started_ports

2016-12-29 Thread Charles (Chas) Williams
On 12/29/2016 03:51 AM, Yuanhan Liu wrote: On Wed, Dec 28, 2016 at 04:10:51PM -0500, Charles (Chas) Williams wrote: From: Wen Chiu Only increment and decrement nb_started_ports on the first and last device start and stop. Otherwise, nb_started_ports can become negative if a device is

[dpdk-dev] [PATCH 2/2] vhost: start vhost servers once

2016-12-28 Thread Charles (Chas) Williams
Start a vhost server once during devinit instead of during device start and stop. Some vhost clients, QEMU, don't re-attaching to sockets when the vhost server is stopped and later started. Preserve existing behavior for vhost clients. Fixes: ee584e9710b9 ("vhost: add driver on top of the librar

[dpdk-dev] [PATCH 1/2] vhost: reference count fix for nb_started_ports

2016-12-28 Thread Charles (Chas) Williams
From: Wen Chiu Only increment and decrement nb_started_ports on the first and last device start and stop. Otherwise, nb_started_ports can become negative if a device is stopped multiple times. Fixes: ee584e9710b9 ("vhost: add driver on top of the library") Signed-off-by: Wen Chiu Reviewed-by:

[dpdk-dev] [PATCH 1/2] bnx2x: fix error handling in bnx2x_loop_obtain_resources()

2016-02-08 Thread Charles (Chas) Williams
I am afraid I don't understand what you are asking. This was broken in the commit that added bnx2x, 540a211084a7695a1c7bc43068934c140d6989be On 02/08/2016 05:51 AM, Bruce Richardson wrote: > On Wed, Dec 30, 2015 at 07:37:50PM -0500, Chas Williams wrote: >> From: "Char

[dpdk-dev] [PATCH] bnx2x: set Ethernet address type during transmit for VF's

2015-12-08 Thread Charles (Chas) Williams
On Mon, 2015-12-07 at 17:29 +, Harish Patil wrote: > > > >On Sun, 2015-12-06 at 23:34 +, Harish Patil wrote: > >> > > >> >The original was always setting unicast. While here, clean up some > >> >other references that also point into the Ethernet header. > >> > > >> >Signed-off-by: Chas Wil

[dpdk-dev] [PATCH] bnx2x: set Ethernet address type during transmit for VF's

2015-12-07 Thread Charles (Chas) Williams
On Sun, 2015-12-06 at 23:34 +, Harish Patil wrote: > > > >The original was always setting unicast. While here, clean up some > >other references that also point into the Ethernet header. > > > >Signed-off-by: Chas Williams <3chas3 at gmail.com> > >--- > > drivers/net/bnx2x/bnx2x.c | 23 +++

[dpdk-dev] [PATCH] bnx2x: tx_start_bd->vlan_or_ethertype is le16

2015-12-02 Thread Charles (Chas) Williams
On Wed, 2015-12-02 at 02:04 +0100, Thomas Monjalon wrote: > 2015-12-01 18:58, Charles Williams: > > On Wed, 2015-12-02 at 00:34 +0100, Thomas Monjalon wrote: > > > 2015-12-01 14:37, Stephen Hemminger: > > > > Harish Patil wrote: > > > > > >2015-11-03 12:26, Chas Williams: > > > > > >> --- a/dri

[dpdk-dev] [PATCH] bnx2x: tx_start_bd->vlan_or_ethertype is le16

2015-12-01 Thread Charles (Chas) Williams
On Wed, 2015-12-02 at 00:34 +0100, Thomas Monjalon wrote: > 2015-12-01 14:37, Stephen Hemminger: > > Harish Patil wrote: > > > >2015-11-03 12:26, Chas Williams: > > > >> --- a/drivers/net/bnx2x/bnx2x.c > > > >> +++ b/drivers/net/bnx2x/bnx2x.c > > > >> -tx_start_bd->vl

[dpdk-dev] [PATCH v2] devargs: add blacklisting by linux interface name

2015-11-10 Thread Charles (Chas) Williams
On Thu, 2015-11-05 at 11:23 -0800, Stephen Hemminger wrote: > On Thu, 05 Nov 2015 11:39:04 -0500 > "Charles (Chas) Williams" <3chas3 at gmail.com> wrote: > > > On Wed, 2015-11-04 at 23:40 +0100, Thomas Monjalon wrote: > > > 2015-10-14 09:41, Charles Will

[dpdk-dev] [PATCH v2] devargs: add blacklisting by linux interface name

2015-11-05 Thread Charles (Chas) Williams
On Wed, 2015-11-04 at 23:40 +0100, Thomas Monjalon wrote: > 2015-10-14 09:41, Charles Williams: > > On Tue, 2015-10-13 at 14:49 +0200, Olivier MATZ wrote: > > > For PCI devices that have several interfaces (I think it's the case for > > > some Mellanox boards), maybe we should not store the interf

[dpdk-dev] Status of bnx2x pmd?

2015-11-04 Thread Charles (Chas) Williams
On Fri, 2015-10-30 at 18:10 -0400, Mussar, Gary wrote: > I have been attempting to build testpmd with the bnx2x pmd enabled to try and > talk through a bcm57810 10G NIC card. I have tried using SR-IOV VFs and I > have tried using the PFs. Neither seem to be able to be properly initialized > in t

[dpdk-dev] [PATCH v2] devargs: add blacklisting by linux interface name

2015-10-14 Thread Charles (Chas) Williams
On Tue, 2015-10-13 at 14:49 +0200, Olivier MATZ wrote: > Hi Chas, > > > @@ -352,6 +354,19 @@ pci_scan_one(const char *dirname, uint16_t domain, > > uint8_t bus, > > return -1; > > } > > > > + /* get network interface name */ > > + snprintf(filename, sizeof(filename), "%s/net

[dpdk-dev] [PATCH v2] devargs: add blacklisting by linux interface name

2015-10-06 Thread Charles (Chas) Williams
On Tue, 2015-10-06 at 08:35 +0100, Stephen Hemminger wrote: > On Mon, 5 Oct 2015 11:26:08 -0400 > Chas Williams <3chas3 at gmail.com> wrote: > > > diff --git a/lib/librte_eal/common/include/rte_pci.h > > b/lib/librte_eal/common/include/rte_pci.h > > index 83e3c28..852c149 100644 > > --- a/lib/li

[dpdk-dev] [PATCH] devargs: add blacklisting by linux interface name

2015-10-05 Thread Charles (Chas) Williams
On Fri, 2015-10-02 at 16:44 +, Richardson, Bruce wrote: > I'm not sure about that, to be honest. However, I'd rather not have > too many cmd line options to be maintained in the code. > > Does you proposed blacklisting patch work with non-pci devices as well > as with PCI ones as now? I refa

[dpdk-dev] [PATCH] devargs: add blacklisting by linux interface name

2015-10-02 Thread Charles (Chas) Williams
On Fri, 2015-10-02 at 16:44 +, Richardson, Bruce wrote: > > -Original Message- > > From: Charles (Chas) Williams [mailto:3chas3 at gmail.com] > > > > On Fri, 2015-10-02 at 16:18 +0100, Bruce Richardson wrote: > > > On Fri, Oct 02, 2015 at 11:0

[dpdk-dev] [PATCH] devargs: add blacklisting by linux interface name

2015-10-02 Thread Charles (Chas) Williams
On Fri, 2015-10-02 at 16:18 +0100, Bruce Richardson wrote: > On Fri, Oct 02, 2015 at 11:00:07AM -0400, Chas Williams wrote: > > If a system is using deterministic interface names, it may be easier in > > some cases to use the interface name to blacklist an interface. > > > > Is it possible to do t