Re: [PATCH] net/bonding: make bonded device configure method re-entrant

2022-10-18 Thread Chas Williams
On 10/17/22 10:10, Andrew Rybchenko wrote: On 10/17/22 15:32, Chas Williams wrote: This appears to be correct. A minor comment inline. On 10/17/22 04:42, Andrew Rybchenko wrote: Chas, Cornor, could you review the patch, please. Thanks, Andrew. On 9/11/22 15:24, Ivan Malov wrote

Re: [PATCH] net/bonding: fix descriptor limit reporting

2022-10-17 Thread Chas Williams
Acked-by: Chas Williams <3ch...@gmail.com> On 10/17/22 04:40, Andrew Rybchenko wrote: Chas, Cornor, could you review the patch, please. Thanks, Andrew. On 9/11/22 15:19, Ivan Malov wrote: Commit 5be3b40fea60 ("net/bonding: fix values of descriptor limits") breaks reporting

Re: [PATCH] net/bonding: fix flow flush order on bonded device close

2022-10-17 Thread Chas Williams
This appears to be correct, but it needs to be coordinated with the proposed changes in net/bonding: make bonded device configure method re-entrant On 10/17/22 04:41, Andrew Rybchenko wrote: Chas, Cornor, could you review the patch, please. Thanks, Andrew. On 9/11/22 15:22, Ivan Malov wrote:

Re: [PATCH] net/bonding: make bonded device configure method re-entrant

2022-10-17 Thread Chas Williams
This appears to be correct. A minor comment inline. On 10/17/22 04:42, Andrew Rybchenko wrote: Chas, Cornor, could you review the patch, please. Thanks, Andrew. On 9/11/22 15:24, Ivan Malov wrote: According to the documentation, rte_eth_dev_configure() can be invoked repeatedly while in stopp

Re: [PATCH v2] net/bonding: fix error in bonding mode 4 with dedicated queues enabled

2022-10-15 Thread Chas Williams
Thanks for making the change, IMHO this is much clearer. Signed-off-by: Chas Williams <3ch...@gmail.com> On 9/29/22 00:05, Usman Tanveer wrote: when dedicated queues are enable with bonding mode 4 (mlx5), the application sets the flow, which cannot be set if the device is not started

Re: [PATCH v5] net/bonding: call Tx prepare before Tx burst

2022-10-15 Thread Chas Williams
This looks fine. Thanks for making the changes! Signed-off-by: Chas Williams <3ch...@gmail.com> On 10/11/22 09:20, Chengwen Feng wrote: Normally, to use the HW offloads capability (e.g. checksum and TSO) in the Tx direction, the application needs to call rte_eth_tx_prepare() to d

Re: [PATCH v4] net/bonding: call Tx prepare before Tx burst

2022-10-10 Thread Chas Williams
On 10/8/22 23:36, Chengwen Feng wrote: uint16_t slaves[RTE_MAX_ETHPORTS]; uint8_t tx_failed_flag = 0; uint16_t num_of_slaves; + uint16_t num_tx_prep; uint16_t max_nb_of_tx_pkts = 0; @@ -1320,12 +1339,18 @@ bond_ethdev_tx_burst_broadcast(void *queue, struc

Re: [PATCH v2 1/3] net/bonding: support Tx prepare

2022-09-26 Thread Chas Williams
On 9/26/22 06:18, Konstantin Ananyev wrote: Hi everyone, Sorry for late reply. The main problem is hard to design a tx_prepare for bonding device: 1. as Chas Williams said, there maybe twice hash calc to get target slave     devices. 2. also more important, if the slave devices have

Re: [PATCH] net/bonding: fix error in bonding mode 4 with dedicated queues enabled

2022-09-25 Thread Chas Williams
It's probably cleaner to just move the bond_ethdev_8023ad_flow_set until after the device start. For the reader, they don't need to understand why you might not have started the device earlier. On 9/24/22 10:19, Usman Tanveer wrote: when dedicated queues are enable with bonding mode 4 (mlx5), th

Re: [PATCH V3] net/bonding: add link speeds configuration

2022-09-25 Thread Chas Williams
Thanks for making the changes! Signed-off-by: 3ch...@gmail.com On 9/21/22 21:33, Huisong Li wrote: This patch adds link speeds configuration. --- -v3: add an intersection of the supported speeds to check 'link_speeds'. -v2: resend due to CI compiling failure. Signed-off-by: Huisong Li --

Re: [PATCH v2 1/3] net/bonding: support Tx prepare

2022-09-25 Thread Chas Williams
On 9/21/22 22:12, fengchengwen wrote: On 2022/9/20 7:02, Chas Williams wrote: On 9/19/22 10:07, Konstantin Ananyev wrote: On 9/16/22 22:35, fengchengwen wrote: Hi Chas, On 2022/9/15 0:59, Chas Williams wrote: On 9/13/22 20:46, fengchengwen wrote: The main problem is hard to

Re: [PATCH v2 1/3] net/bonding: support Tx prepare

2022-09-19 Thread Chas Williams
On 9/19/22 10:07, Konstantin Ananyev wrote: On 9/16/22 22:35, fengchengwen wrote: Hi Chas, On 2022/9/15 0:59, Chas Williams wrote: On 9/13/22 20:46, fengchengwen wrote: The main problem is hard to design a tx_prepare for bonding device: 1. as Chas Williams said, there maybe twice hash

Re: [PATCH v2 1/3] net/bonding: support Tx prepare

2022-09-17 Thread Chas Williams
On 9/16/22 22:35, fengchengwen wrote: Hi Chas, On 2022/9/15 0:59, Chas Williams wrote: On 9/13/22 20:46, fengchengwen wrote: The main problem is hard to design a tx_prepare for bonding device: 1. as Chas Williams said, there maybe twice hash calc to get target slave     devices. 2. also

Re: [PATCH V2] net/bonding: add link speeds configuration

2022-09-16 Thread Chas Williams
On 9/15/22 22:09, lihuisong (C) wrote: 在 2022/9/15 21:43, Chas Williams 写道: On 9/15/22 09:14, Huisong Li wrote: This patch adds link speeds configuration. ---   -v2: resend due to CI compiling failure. Signed-off-by: Huisong Li ---   drivers/net/bonding/rte_eth_bond_pmd.c | 2 ++   1

Re: [PATCH V2] net/bonding: add link speeds configuration

2022-09-15 Thread Chas Williams
On 9/15/22 09:14, Huisong Li wrote: This patch adds link speeds configuration. --- -v2: resend due to CI compiling failure. Signed-off-by: Huisong Li --- drivers/net/bonding/rte_eth_bond_pmd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/

Re: [PATCH v2 1/3] net/bonding: support Tx prepare

2022-09-14 Thread Chas Williams
On 9/13/22 20:46, fengchengwen wrote: The main problem is hard to design a tx_prepare for bonding device: 1. as Chas Williams said, there maybe twice hash calc to get target slave devices. 2. also more important, if the slave devices have changes(e.g. slave device link down or remove

Re: [PATCH v2 1/3] net/bonding: support Tx prepare

2022-09-13 Thread Chas Williams
On 9/13/22 06:22, Ferruh Yigit wrote: > On 7/25/2022 5:08 AM, Chengwen Feng wrote: > > > I assume intention is to make this as transparent as possible to the > user, that is why you are using a wrapper that combines > `rte_eth_tx_prepare()` & `rte_eth_tx_burst()` APIs. But for other PMDs > `rte_eth

[dpdk-dev] [PATCH v2 2/2] net/virtio: check return from rte_raw_cksum_mbuf

2020-10-01 Thread Chas Williams
rte_raw_cksum_mbuf can fail, so we should check to see if it has. If so, return with an error. Fixes: 96cb6711939e ("net/virtio: support Rx checksum offload") Signed-off-by: Chas Williams <3ch...@gmail.com> --- drivers/net/virtio/virtio_rxtx.c| 5 +++-- dr

[dpdk-dev] [PATCH v2 1/2] net: check that seg is valid before dereference

2020-10-01 Thread Chas Williams
If the overall pkt_len and segment lengths are out of agreement, it is possible for the seg to be NULL after the loop. Add assert to check this condition in debug builds. Otherwise, return failure. Fixes: c442fed81bb9 ("net: add function to calculate checksum in mbuf") Signed-of

Re: [dpdk-dev] [PATCH] net: check that seg is valid before dereference

2020-09-29 Thread Chas Williams
On 9/28/20 11:01 PM, wangyunjian wrote: >> -Original Message- >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Chas Williams >> Sent: Monday, September 28, 2020 11:32 PM >> To: dev@dpdk.org >> Cc: olivier.m...@6wind.com; Chas Williams <3ch...@gmail.c

[dpdk-dev] [PATCH] net: check that seg is valid before dereference

2020-09-28 Thread Chas Williams
If the overall pkt_len and segment lengths are out of agreement, it is possible for the seg to be NULL after the loop. Add assert to check this condition in debug builds. Fixes: c442fed81bb9 ("net: add function to calculate checksum in mbuf") Signed-off-by: Chas Williams <3ch

[dpdk-dev] [PATCH] net/netvsc: fix seg fault during transmit

2020-07-29 Thread Chas Williams
ol. Fixes: cc0251813277 ("net/netvsc: split send buffers from Tx descriptors") Cc: sta...@dpdk.org Signed-off-by: Chas Williams <3ch...@gmail.com> --- drivers/net/netvsc/hn_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/netvsc/hn_r

Re: [dpdk-dev] [PATCH] pmd_bond: fix mac address update for ACTIVE_BACKUP, TLB and ALB modes

2020-06-18 Thread Chas Williams
Yes, this does look like a typo on someone's part. Please change use net/bonding: instead of pmd_bond: Please add a Fixes: line Please add a Cc: sta...@dpdk.org On 6/17/20 3:02 PM, Sergey Lvov wrote: > It seems to be a typo > > Signed-off-by: Sergey Lvov > --- > drivers/net/bonding/rte_eth_bo

Re: [dpdk-dev] Aligning DPDK Link bonding with current standards terminology

2020-06-16 Thread Chas Williams
On 6/16/20 11:45 AM, Stephen Hemminger wrote: > On Tue, 16 Jun 2020 09:52:01 -0400 > Chas Williams <3ch...@gmail.com> wrote: > >> On 6/16/20 7:48 AM, Jay Rolette wrote: >> > On Mon, Jun 15, 2020 at 5:52 PM Stephen Hemminger < >> > step...@netw

Re: [dpdk-dev] Aligning DPDK Link bonding with current standards terminology

2020-06-16 Thread Chas Williams
On 6/16/20 7:48 AM, Jay Rolette wrote: > On Mon, Jun 15, 2020 at 5:52 PM Stephen Hemminger < > step...@networkplumber.org> wrote: > >> I am disturbed by the wide spread use of master/slave in Ethernet bonding. >> Asked the current IEEE chairs and it looks like it is already fixed >> "upstream

Re: [dpdk-dev] [PATCH] net/bonding: fix socket id check

2020-06-16 Thread Chas Williams
Acked-by: Chas Williams On 6/16/20 5:46 AM, David Marchand wrote: Caught by code review, rte_eth_dev_socket_id() returns -1 on error. The code should behave the same, but still, do not use LCORE_ID_ANY for something that is not a lcore id. Fixes: c15c5897340d ("net/bonding: avoid alloc

Re: [dpdk-dev] Aligning DPDK Link bonding with current standards terminology

2020-06-16 Thread Chas Williams
On 6/15/20 6:52 PM, Stephen Hemminger wrote: > I am disturbed by the wide spread use of master/slave in Ethernet bonding. > Asked the current IEEE chairs and it looks like it is already fixed "upstream". > > The proper terminology is for Ethernet link aggregation in the > the current standard

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

2020-06-07 Thread Charles (Chas) Williams
100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -529,6 +529,7 @@ F: doc/guides/nics/features/default.ini Link bonding M: Chas Williams +M: Wei Hu (Xavier) F: drivers/net/bonding/ F: doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst F: app/test/test_link_bonding* Acked-by

Re: [dpdk-dev] [PATCH 2/2] net/bonding: fix MAC address when one port resets

2020-04-04 Thread Chas Williams
The behavior is probably going to be inconsistent. Only one of the calls to mac_address_slaves_update() is checked for failure. The two calls are in bond_ethdev_lsc_event_callback() if (internals->active_slave_count < 1) { mac_address_slaves_update(bonded_e

[dpdk-dev] net/cxgbe: DEV_TX_OFFLOAD_MULTI_SEGS support?

2020-01-13 Thread Chas Williams
It looks like the cxgbe driver doesn't set the DEV_TX_OFFLOAD_MULTI_SEGS offload capability. However, it looks like sge.c does have support for sending mbuf chains, e.g. write_sgl(). Is this just an oversight or is there something fundamentally broken here?

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/bonding: do not inherit slave device configuration

2019-12-09 Thread Chas Williams
On 12/9/19 9:31 AM, Andrew Rybchenko wrote: > On 12/9/19 4:36 PM, Chas Williams wrote: >> >> >> On 12/9/19 2:16 AM, Andrew Rybchenko wrote: >>> On 12/8/19 6:44 PM, Chas Williams wrote: >>>> On 2019-11-19 07:40, Andrew Rybchenko wrote: >>>>&

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/bonding: do not inherit slave device configuration

2019-12-09 Thread Chas Williams
On 12/9/19 2:16 AM, Andrew Rybchenko wrote: > On 12/8/19 6:44 PM, Chas Williams wrote: >> On 2019-11-19 07:40, Andrew Rybchenko wrote: >>> On 11/19/19 3:18 PM, Ferruh Yigit wrote: >>>> On 11/19/2019 9:03 AM, Andrew Rybchenko wrote: >>>>>

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/bonding: do not inherit slave device configuration

2019-12-08 Thread Chas Williams
On 2019-11-19 07:40, Andrew Rybchenko wrote: > On 11/19/19 3:18 PM, Ferruh Yigit wrote: >> On 11/19/2019 9:03 AM, Andrew Rybchenko wrote: >>> Bonding device should control bonded devices configuration. >>> >>> Also avoid usage of slave's data->dev_conf. >>> >>> Fixes: 2efb58cbab6e ("bond: new l

Re: [dpdk-dev] [PATCH v4] net/bonding: fix invalid port using

2019-10-29 Thread Chas Williams
et/bonding: add dedicated HW queues for LACP control") Cc: sta...@dpdk.org Signed-off-by: Jiang JunyuX Acked-by: Chas Williams Patchwork says that there is a build error but it doesn't seem to be related to this change. --- drivers/net/bonding/rte_eth_bond_8023ad.c | 32 +++

Re: [dpdk-dev] [PATCH v3] net/bonding: fix selection logic

2019-10-11 Thread Chas Williams
This looks better. While reviewing this I noticed that a few lines: case AGG_STABLE: if (default_slave == slaves_count) new_agg_id = slave_id; < else new_agg_id = slaves[default_slave];

Re: [dpdk-dev] [PATCH v2] net/bonding: fix selection logic

2019-10-10 Thread Chas Williams
On 10/10/19 4:27 AM, kka...@marvell.com wrote: From: Krzysztof Kanas Arrays agg_count and agg_bandwidth should be indexed by slave_id not by aggregator port_id. Fixes: 6d72657ce379 ("net/bonding: add other aggregator modes") Cc: danielx.t.mrzyg...@intel.com Signed-off-by: Krzysztof Kanas

Re: [dpdk-dev] [PATCH 01/18] net/bonding: fix link speed update in broadcast mode

2019-09-10 Thread Chas Williams
Acked-by: Chas Williams On 9/10/19 4:25 AM, Andrew Rybchenko wrote: From: Igor Romanov Fix the issue that the link speed of the bond device was set to the link speed of the first active slave in broadcast mode. Set the link speed of the bond device to the minimum value across all of the

Re: [dpdk-dev] [PATCH 05/10] app/test: fix maybe-uninitialized warnings for LTO build

2019-09-05 Thread Chas Williams
On 9/5/19 5:32 AM, Andrzej Ostruszka wrote: During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Signed-off-by: Andrzej Ostruszka --- app/test/test_hash_readwrite.c | 2 +- app/test/tes

Re: [dpdk-dev] [PATCH 2/4] net/bonding: fix LACP fast queue Rx handler

2019-08-13 Thread Chas Williams
On 7/2/19 11:01 AM, Ferruh Yigit wrote: On 5/16/2019 10:12 AM, David Marchand wrote: Hello Chas, On Fri, Apr 19, 2019 at 12:50 AM Chas Williams <3ch...@gmail.com> wrote: On 4/18/19 3:11 AM, David Marchand wrote: Hello Chas, On Fri, Apr 12, 2019 at 4:02 PM Chas William

Re: [dpdk-dev] [PATCH 0/4] lacp rx/tx handlers fixes for bonding pmd

2019-06-27 Thread Chas Williams
On 6/27/19 4:08 AM, Ferruh Yigit wrote: On 4/10/2019 1:53 PM, David Marchand wrote: Another series with focus on the fast/normal rx/tx handlers for 802.3ad. The first two patches make sure that the rx (resp. tx) fast and normal handlers are equivalent. The third one will most likely have an

Re: [dpdk-dev] Does DPDK support DEFAULTED state in Receive machine in 802.3ad bond implementation?

2019-06-19 Thread Chas Williams
On 6/19/19 7:29 AM, lidejun wrote: Why doesn’t DPDK support `DEFAULTED` state in Receive machine in 802.3ad bond implementation? Can you be a bit more specific about your question? This is some support for a DEFAULTED state.

Re: [dpdk-dev] [PATCH] net/bonding: fix test bonding MAC assignment

2019-04-29 Thread Chas Williams
Seems fine. Acked-by: Chas Williams On 4/29/19 10:56 AM, Ferruh Yigit wrote: On 4/26/2019 11:30 PM, kka...@marvell.com wrote: From: Krzysztof Kanas Fix test_set_bonded_port_initialization_mac_assignment so that it works after 're run' test_link_bonding. Fixes: f2ef6f21ee2e (&quo

Re: [dpdk-dev] [PATCH v3] net/bonding: fix potential out of bounds read

2019-04-18 Thread Chas Williams
a huge concern. Acked-by: Chas Williams --- v2: add fixes lines v3: fix buffer end calculation drivers/net/bonding/rte_eth_bond_pmd.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.

Re: [dpdk-dev] [PATCH 2/4] net/bonding: fix LACP fast queue Rx handler

2019-04-18 Thread Chas Williams
On 4/18/19 3:11 AM, David Marchand wrote: Hello Chas, On Fri, Apr 12, 2019 at 4:02 PM Chas Williams <3ch...@gmail.com <mailto:3ch...@gmail.com>> wrote: I should have some time this weekend to run these patches through our regression system. Did you manage to run

Re: [dpdk-dev] [PATCH] net: do not insert VLAN tag to shared mbufs

2019-04-16 Thread Chas Williams
erruh Yigit --- Cc: Stephen Hemminger Cc: Chas Williams This is another approach to RFC to fix the vlan_insert: https://patches.dpdk.org/patch/51870/ vlan_insert() mostly used by drivers to insert VLAN tag into packet data in Tx path, drivers creating new copies of mbufs in Tx path may r

Re: [dpdk-dev] [PATCH] net: do not insert VLAN tag to shared mbufs

2019-04-16 Thread Chas Williams
On 4/16/19 11:51 AM, Ferruh Yigit wrote: The vlan_insert() is buggy when it tires to handle the shared mbufs, s/tries/tries/ instead don't support inserting VLAN tag into shared mbufs and return an error for that case. Signed-off-by: Ferruh Yigit --- Cc: Stephen Hemminger Cc:

Re: [dpdk-dev] [PATCH 2/4] net/bonding: fix LACP fast queue Rx handler

2019-04-12 Thread Chas Williams
I should have some time this weekend to run these patches through our regression system. On 4/10/19 8:53 AM, David Marchand wrote: fast queue Rx burst function is missing checks on promisc and the slave collecting state. Define an inline wrapper to have a common base. Fixes: 112891cd27e5 ("net/

Re: [dpdk-dev] [RFC v2] net: fix rte_vlan_insert with shared mbuf

2019-04-06 Thread Chas Williams
On 4/4/19 7:54 PM, Stephen Hemminger wrote: On Sat, 30 Mar 2019 08:41:33 -0400 Chas Williams <3ch...@gmail.com> wrote: Unfortunately, I think the complete fix is more complicated than this. Drivers that use rte_vlan_insert don't anticipate that the mbuf might change and tha

Re: [dpdk-dev] [RFC v2] net: fix rte_vlan_insert with shared mbuf

2019-03-30 Thread Chas Williams
Unfortunately, I think the complete fix is more complicated than this. Drivers that use rte_vlan_insert don't anticipate that the mbuf might change and that (hardware) transmit can fail. They make a copy of the mbuf pointer from the incoming transmit list and don't update the original if rte_vlan

Re: [dpdk-dev] [PATCH] net: fix rte_vlan_insert with shared mbuf

2019-03-27 Thread Chas Williams
On 3/27/19 11:18 AM, Stephen Hemminger wrote: On Tue, 26 Mar 2019 18:38:57 -0400 Chas Williams <3ch...@gmail.com> wrote: On 3/26/19 3:15 PM, Stephen Hemminger wrote: If mbuf refcnt was > 1 then rte_vlan_insert() would incorrectly modify the original copy. Original code was expect

Re: [dpdk-dev] [PATCH] net: fix rte_vlan_insert with shared mbuf

2019-03-26 Thread Chas Williams
On 3/26/19 3:15 PM, Stephen Hemminger wrote: If mbuf refcnt was > 1 then rte_vlan_insert() would incorrectly modify the original copy. Original code was expecting clone to make a copy (it doesn't). Better to let the caller deal with making a copy or setting up mbuf chain to allow for header to be

Re: [dpdk-dev] [PATCH] net: fix Tx VLAN flag for offload emulation

2019-03-26 Thread Chas Williams
On 3/26/19 12:50 PM, Ferruh Yigit wrote: On 3/25/2019 3:05 PM, Chas Williams wrote: From: Bill Hong A PMD might use rte_vlan_insert to implement Tx VLAN offload. Typically the PMD will insert the VLAN header in the transmit path and then attempt to send the packets. If this fails, the

[dpdk-dev] [PATCH] net: fix Tx VLAN flag for offload emulation

2019-03-25 Thread Chas Williams
PKT_TX_VLAN flag is not cleared, the transmit path may attempt to insert the VLAN header again. Fixes: 47aa48b969f8 ("net: fix stripped VLAN flag for offload emulation"); Cc: sta...@dpdk.org Signed-off-by: Bill Hong Signed-off-by: Chas Williams --- lib/librte_net/rte_ether.h | 2

Re: [dpdk-dev] [PATCH 2/2] net/bonding: fix oob access in "other" aggregator modes

2019-03-24 Thread Chas Williams
On 3/24/19 1:11 PM, David Marchand wrote: On Sun, Mar 24, 2019 at 2:35 PM Chas Williams <3ch...@gmail.com <mailto:3ch...@gmail.com>> wrote: Have you ever experienced this problem in practice? I ask because I am considering some fixes that would limit the number of slav

Re: [dpdk-dev] [PATCH 2/2] net/bonding: fix oob access in "other" aggregator modes

2019-03-24 Thread Chas Williams
avid Marchand Acked-by: Chas Williams --- drivers/net/bonding/rte_eth_bond_8023ad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c index 3943ec1..5004898 100644 --- a/driver

Re: [dpdk-dev] [PATCH 1/2] net/bonding: fix more incorrect slave id types

2019-03-24 Thread Chas Williams
See inline. On 3/21/19 4:28 PM, David Marchand wrote: From: Zhaohui mode_bond_id and mode_band_id are slave ids, stored on 16bits. Please change mode_bond_id to mode_count_id in this commit message. Otherwise, this looks fine. Fixes: f8244c6399d9 ("ethdev: increase port id range") Cc: sta.

Re: [dpdk-dev] [PATCH] net/bonding: fix Segfault when eal thread executing nic‘s lsc event for mode 4

2019-03-19 Thread Chas Williams
On 3/19/19 1:37 PM, Ferruh Yigit wrote: On 3/6/2019 3:42 AM, Zhaohui (zhaohui, Polestar) wrote: When the number of slave slave devices exceeds 8, it will cause the array subscript to cross the boundary. --- drivers/net/bonding/rte_eth_bond_8023ad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 de

Re: [dpdk-dev] 8023ad bond tx crashed if one port has 2 more tx queues

2019-03-19 Thread Chas Williams
On 3/19/19 5:41 AM, h...@netitest.com wrote: Hi Guys, I found a bug in dpdk bond code, while one port has 2 more tx queues, 8023ad bond port will be crashed in tx burst. Just analyzed the code below, if 2 more CPU cores send packets on a port by different tx queue, the arrays like slave_po

Re: [dpdk-dev] [PATCH] bonding: fix lacp negotiation failed

2019-03-18 Thread Chas Williams
On 3/15/19 5:06 AM, Liang Zhang wrote: When monitor(port-mirroring) traffic from other lacp port-channel, rx_machine_update may recieving other lacp negotiation packets. Thus bond mode 4 will negotiation failed. Signed-off-by: Liang Zhang Acked-by: Chas Williams --- drivers/net/bonding

Re: [dpdk-dev] [PATCH] bonding: fix lacp negotiation failed

2019-03-13 Thread Chas Williams
At a minimum you need to address the long lines in your patch. See http://mails.dpdk.org/archives/test-report/2019-March/076663.html otherwise this looks fine to me. On 3/13/19 9:23 AM, Liang Zhang wrote: When monitor(port-mirroring) traffic from other lacp port-channel, rx_machine_update may

Re: [dpdk-dev] 答复: Segfault when eal thread executing mlx5 nic‘s lsc event

2019-03-06 Thread Chas Williams
On 3/6/19 4:42 AM, Zhaohui (zhaohui, Polestar) wrote: Hi Williams: We have some questions that need your help. About “Segfault when eal thread executing mlx5 nic‘s lsc event”. In order to solve this problem(core dump), What should we do?( Looking forward to your reply) The link sta

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/bonding: fix reset active slave

2019-02-21 Thread Chas Williams
du Nicolau Acked-by: Chas Williams <mailto:radu.nico...@intel.com>> Hi Radu, Hari, There is another bonding patch, can you please check how related are they and if are these fixing same root cause: net/bonding: avoid the next active slave going out of bound https://patches.dpdk.org/pat

[dpdk-dev] [PATCH] net/bonding: fix invalid link status

2019-02-14 Thread Chas Williams
From: Chas Williams Copying the link properties of the first slave added may copy an invalid link status. The speed and duplex of the slave may not be known at this time. Delay setting the properties until the first slave reports as link up. Note that we are still ignoring an error from

[dpdk-dev] [PATCH v2] net/bonding: fix slave tx burst for mode 4

2019-02-14 Thread Chas Williams
From: Chas Williams The tx burst routine always needs to check for pending LACPDUs and send them if available. Do this first to prioritize the control traffic. We can still early exit, before calculating the distribution slaves, if there isn't any data packets. Fixes: 09150784a776

[dpdk-dev] [PATCH] net/bonding: fix transmit in 802.3ad mode

2019-02-11 Thread Chas Williams
We can transmit if there is at least one distributing slave. Fixes: 09150784a776 ("net/bonding: burst mode hash calculation") Cc: sta...@dpdk.org Signed-off-by: Chas Williams --- drivers/net/bonding/rte_eth_bond_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [dpdk-dev] [PATCH] net/bonding: fix slave tx burst for mode 4

2019-02-11 Thread Chas Williams
How strange. I was just looking at this issue this weekend. I think we can just move the control packet handling before the data packet handling. That avoids the goto and is a little more sensible -- we should try to prioritize control traffic (even if we can't guarantee there will be space it's b

Re: [dpdk-dev] [PATCH 1/2] net/bonding: do not set promisc on non-existent primary port

2019-02-09 Thread Chas Williams
g Signed-off-by: Hyong Youb Kim Acked-by: Chas Williams --- drivers/net/bonding/rte_eth_bond_pmd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 44deaf119..daf2440cd 100644 --- a/dri

Re: [dpdk-dev] [PATCH 2/2] net/bonding: avoid the next active slave going out of bound

2019-02-09 Thread Chas Williams
d-off-by: Hyong Youb Kim Acked-by: Chas Williams --- drivers/net/bonding/rte_eth_bond_pmd.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index daf2440cd..bc2405e54 100644 --- a/driv

[dpdk-dev] [v3,PATCH 2/2] build: fix option ordering

2019-02-07 Thread Chas Williams
Sort the options alphabetically and make a note of the preferred order at the top of the file. Signed-off-by: Chas Williams <3ch...@gmail.com> --- meson_options.txt | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/meson_options.txt b/meson_options.txt

[dpdk-dev] [v3, PATCH 1/2] build: add option to override max ethports

2019-02-07 Thread Chas Williams
Allow users and packagers to override the default RTE_MAX_ETHPORTS. This adds a new meson option, max_ethports which defaults to the current value. Signed-off-by: Chas Williams <3ch...@gmail.com> Acked-by: Bruce Richardson --- config/meson.build | 1 + config/rte_config

Re: [dpdk-dev] [PATCH 1/2 v2] build: add option to override max ethports

2019-02-05 Thread Chas Williams
On 2/4/19 4:49 AM, Bruce Richardson wrote: On Thu, Jan 31, 2019 at 06:53:25PM -0500, Chas Williams wrote: Allow users and packagers to override the default RTE_MAX_ETHPORTS. This adds a new meson option, max_ethports which defaults to the current value. Actually in this v2, you have

[dpdk-dev] [PATCH 2/2,v2] build: fix option ordering

2019-01-31 Thread Chas Williams
Sort the options alphabetically and make a note of the preferred order at the top of the file. Signed-off-by: Chas Williams <3ch...@gmail.com> --- meson_options.txt | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/meson_options.txt b/meson_options.txt

[dpdk-dev] [PATCH 1/2 v2] build: add option to override max ethports

2019-01-31 Thread Chas Williams
Allow users and packagers to override the default RTE_MAX_ETHPORTS. This adds a new meson option, max_ethports which defaults to the current value. Signed-off-by: Chas Williams <3ch...@gmail.com> Acked-by: Bruce Richardson --- config/meson.build | 1 + config/rte_config

Re: [dpdk-dev] [PATCH v2] net/bonding: fix create bonded device test failure

2019-01-31 Thread Chas Williams
library") Cc: sta...@dpdk.org Signed-off-by: Hari Kumar Vemula Acked-by: Chas Williams --- v2: bonded device desc_lim values are received from slave configuration --- drivers/net/bonding/rte_eth_bond_pmd.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --gi

Re: [dpdk-dev] [PATCH] build: add option to override max ethports

2019-01-31 Thread Chas Williams
On 1/31/19 4:32 AM, Bruce Richardson wrote: On Wed, Jan 30, 2019 at 09:18:58PM -0500, Chas Williams wrote: Allow users and packagers to override the default RTE_MAX_ETHPORTS. This adds a new meson option, max_ethports which defaults to the current value. Signed-off-by: Chas Williams <

[dpdk-dev] [PATCH] build: add option to override max ethports

2019-01-30 Thread Chas Williams
Allow users and packagers to override the default RTE_MAX_ETHPORTS. This adds a new meson option, max_ethports which defaults to the current value. Signed-off-by: Chas Williams <3ch...@gmail.com> --- config/meson.build | 1 + config/rte_config.h | 1 - meson_options.txt | 2 ++ 3

Re: [dpdk-dev] [PATCH] net/bonding: fix create bonded device test failure

2019-01-07 Thread Chas Williams
On 1/7/19 8:01 AM, Hari Kumar Vemula wrote: Create bonded device test is failing due to improper initialisation in bonded device configuration. which leads to crash while setting up queues. The value of nb_rx_desc is checked if it is not in range of rx_desc_lim of bonded device which fails. T

Re: [dpdk-dev] 答复: [PATCH] net/bonding: fix double fetch for active_slave_count

2018-11-30 Thread Chas Williams
AM, Linhaifeng wrote: Hi, Chars Thank you. I use it for send pkts to the dedicated queue of slaves. Maybe i should not use it. I would though another way. -邮件原件- 发件人: Chas Williams [mailto:3ch...@gmail.com] 发送时间: 2018年11月30日 11:27 收件人: Linhaifeng ; dev@dpdk.org 抄送: ch...@att.com 主题

Re: [dpdk-dev] [PATCH] net/bonding: fix double fetch for active_slave_count

2018-11-29 Thread Chas Williams
I guess this is slightly more correct. There is still a race here though. After you make your copy of active_slave_count, the number of active slaves could go to 0 and the memcpy() would copy an invalid element, acitve_slaves[0]. There is no simple fix to this problem. Your patch reduces the opp

Re: [dpdk-dev] [PATCH] examples/bond: wait for slaves to become active

2018-11-28 Thread Chas Williams
On 11/28/18 11:04 AM, Radu Nicolau wrote: On 11/28/2018 2:28 PM, Chas Williams wrote: On 11/28/2018 08:48 AM, Radu Nicolau wrote: Hi On 11/28/2018 11:08 AM, Ferruh Yigit wrote: On 11/14/2018 12:19 PM, Radu Nicolau wrote: Do not start the packet processing threads until all

Re: [dpdk-dev] [PATCH] examples/bond: wait for slaves to become active

2018-11-28 Thread Chas Williams
On 11/28/2018 08:48 AM, Radu Nicolau wrote: Hi On 11/28/2018 11:08 AM, Ferruh Yigit wrote: On 11/14/2018 12:19 PM, Radu Nicolau wrote: Do not start the packet processing threads until all configured slaves become active. Hi Radu, What happens if packet processing threads started before a

Re: [dpdk-dev] [PATCH] examples/bond: wait for slaves to become active

2018-11-27 Thread Chas Williams
On 11/14/2018 07:19 AM, Radu Nicolau wrote: Do not start the packet processing threads until all configured slaves become active. Signed-off-by: Radu Nicolau Acked-by: Chas Williams --- examples/bond/main.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a

Re: [dpdk-dev] [PATCH] examples/bond: fix initialization error

2018-11-27 Thread Chas Williams
On 11/13/2018 11:46 AM, Radu Nicolau wrote: Queue setup will fail if called before adding slaves. Fixes: 7a0665940fa8 ("net/bonding: inherit descriptor limits from slaves") Cc: sta...@dpdk.org Signed-off-by: Radu Nicolau Acked-by: Chas Williams --- examples/bond/m

[dpdk-dev] [PATCH] ip_frag: fix ipv6 when MTU sizes not aligned to 8 bytes

2018-11-26 Thread Chas Williams
From: Chas Williams The same issue was fixed on for the ipv4 version of this routine in commit 8d4d3a4f7337 ("ip_frag: handle MTU sizes not aligned to 8 bytes"). Briefly, the size of an ipv6 header is always 40 bytes. With an MTU of 1500, this will never produce a multiple of 8 byt

Re: [dpdk-dev] [PATCH] net/bonding: fix crash when stopping mode 4 port

2018-11-09 Thread Chas Williams
;) Cc: sta...@dpdk.org Signed-off-by: Radu Nicolau Acked-by: Chas Williams --- drivers/net/bonding/rte_eth_bond_pmd.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 1a6d8e4..2661

Re: [dpdk-dev] [PATCH] net/ixgbe: reduce PF mailbox interrupt rate

2018-11-07 Thread Chas Williams
On 11/07/2018 04:17 AM, Zhao1, Wei wrote: Hi, Luca Boccassi The purpose of this patch is to reduce the mailbox interrupt from vf to pf, but there seem some point need for discussion in this patch. First, I do not know why do you change code of function ixgbe_check_mac_link_vf(), beca

Re: [dpdk-dev] [PATCH v3 1/2] net/ixgbe: fix x550 code to handle unidentified PHY

2018-11-05 Thread Chas Williams
On 11/05/2018 12:41 PM, Zhang, Qi Z wrote: -Original Message- From: Luca Boccassi [mailto:bl...@debian.org] Sent: Friday, November 2, 2018 8:19 AM To: dev@dpdk.org Cc: Lu, Wenzhuo ; Ananyev, Konstantin ; Zhang, Qi Z ; 3ch...@gmail.com; Luca Boccassi ; sta...@dpdk.org Subject: [PATCH

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

2018-11-02 Thread Chas Williams
On 11/02/2018 10:33 AM, Ferruh Yigit wrote: On 11/1/2018 2:45 PM, Luca Boccassi wrote: On Mon, 2017-07-17 at 19:05 -0400, Charles (Chas) Williams wrote: .dev_uninit calls .dev_stop and .dev_close. The work that is done in those routines doesn't need repeated. Use started and open

Re: [dpdk-dev] [PATCH v2] net/bonding: fix segfault when creating bonded device

2018-10-31 Thread Chas Williams
river assignment to end of probing") Fixes: 1620175b400e ("net/bonding: fix invalid port id") Signed-off-by: Radu Nicolau Acked-by: Chas Williams --- v2: reverted earlier patch drivers/net/bonding/rte_eth_bond_pmd.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff

Re: [dpdk-dev] [PATCH] net/bonding: fix segfault when creating bonded device

2018-10-31 Thread Chas Williams
On 10/31/2018 11:06 AM, Thomas Monjalon wrote: 31/10/2018 14:59, Radu Nicolau: After the patch below the call to rte_eth_bond_8023ad_agg_selection_set from probe() segfaults; there is no need to call the function, just set the mode directly. Fixes: 391797f04208 ("drivers/bus: move driver ass

[dpdk-dev] [PATCH] net/bonding: avoid making copy of mac address

2018-10-25 Thread Chas Williams
From: Chas Williams Calling rte_eth_macaddr_get to get a copy of the MAC address causes a hot spot according to profiling. We can easily get the current MAC address by just examining the bonded device. Signed-off-by: Chas Williams --- drivers/net/bonding/rte_eth_bond_pmd.c | 14

Re: [dpdk-dev] Getting issue while bringin Bond with VMXNET3 (DPDK 17.11)

2018-10-08 Thread Chas Williams
Any other error messages? There's really only one path out of slave_configure() that doesn't emit another error message and that's slave_configure_slow_queue. You need to set dedicated_queues to be enabled to see that happen. On 10/07/18 01:12, chetan bhasin wrote: Can anybody suggest? Stuc

[dpdk-dev] MTU vs MRU

2018-09-25 Thread Chas Williams
What does (or should) rte_eth_dev_set_mtu() do? The documentation says "Change the MTU of an Ethernet device." At least of few of the PMDs do something similar to the following: eth_em_infos_get(dev, &dev_info); frame_size = mtu + ETHER_HDR_LEN + ETHER_CRC_LEN + ... /*

Re: [dpdk-dev] [PATCH 2/2] net/bonding: inherit descriptor limits from slaves

2018-09-24 Thread Chas Williams
On Wed, Sep 5, 2018 at 5:14 AM Andrew Rybchenko wrote: > > From: Ivan Malov > > Descriptor limits are used by applications to take > optimal decisions on queue sizing. > > Signed-off-by: Ivan Malov > Signed-off-by: Andrew Rybchenko Acked-by: Chas Williams >

Re: [dpdk-dev] [PATCH 1/2] net/bonding: provide default Rx/Tx configuration

2018-09-24 Thread Chas Williams
m exercising default settings in the same way. > > Restructure the code to collect various settings > from slave ports and make it possible to combine > default Rx/Tx configuration of these devices and > report it to the callers of rte_eth_dev_info_get. > > Signed-off-by: Ivan

[dpdk-dev] [PATCH v2] net/bonding: fix RX slave fairness

2018-09-20 Thread Chas Williams
From: Chas Williams Some PMDs, especially ones with vector receives, require a minimum number of receive buffers in order to receive any packets. If the first slave read leaves less than this number available, a read from the next slave may return 0 implying that the slave doesn't hav

Re: [dpdk-dev] [PATCH] net/bonding: ensure fairness among slaves

2018-09-20 Thread Chas Williams
On Thu, Sep 20, 2018 at 2:28 AM Matan Azrad wrote: > > Hi Chas > Please see small comments. > > > From: Chas Williams > > Some PMDs, especially ones with vector receives, require a minimum > > number of receive buffers in order to receive any packets. If the first

[dpdk-dev] [PATCH] net/bonding: ensure fairness among slaves

2018-09-19 Thread Chas Williams
From: Chas Williams Some PMDs, especially ones with vector receives, require a minimum number of receive buffers in order to receive any packets. If the first slave read leaves less than this number available, a read from the next slave may return 0 implying that the slave doesn't hav

Re: [dpdk-dev] [PATCH v2 2/3] net/vmxnet3: fix vmxnet3 dev_uninit() hot-unplug

2018-09-19 Thread Chas Williams
On Wed, Sep 19, 2018 at 8:58 AM Luca Boccassi wrote: > > The vmxnet3 driver can't call back into dev_close(), and possibly > dev_stop(), in dev_uninit(). When dev_uninit() is called, anything > that those routines would want to clean up has already been released. > Further, for complete cleanup,

Re: [dpdk-dev] [PATCH] net/bonding: propagate promiscous mode in mode 4

2018-09-16 Thread Chas Williams
On Thu, Sep 13, 2018 at 11:40 AM Matan Azrad wrote: > > Hi Chas > > From: Chas Williams > > On Wed, Sep 12, 2018 at 1:56 AM Matan Azrad > > wrote: > > > > > > Hi Chas > > > > > > From: Chas Williams >

  1   2   3   4   >