DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Doherty, Declan" <declan.doherty@intel.com>
To: Jan Blunck <jblunck@infradead.org>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] Make bond_ethdev_stop iterate only over active	slaves
Date: Fri, 26 Jun 2015 07:33:02 +0000	[thread overview]
Message-ID: <345C63BAECC1AD42A2EC8C63AFFC3ADC27F26409@irsmsx105.ger.corp.intel.com> (raw)
In-Reply-To: <1435179683-10180-1-git-send-email-jblunck@infradead.org>

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jan Blunck
> Sent: Wednesday, June 24, 2015 2:01 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] Make bond_ethdev_stop iterate only over active
> slaves
> 
> When stopping the bond device we don't need to try and free up the LACPDU's
> from deactivated devices since this is covered by
> bond_mode_8023ad_deactivate_slave().
> 
> This fixes the following:
> [    0.100569] PANIC in bond_ethdev_stop():
> [    0.100589] line 1172        assert "port->rx_ring != NULL" failed
> 
> Signed-off-by: Jan Blunck <jblunck@infradead.org>
> ---
>  drivers/net/bonding/rte_eth_bond_pmd.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c
> b/drivers/net/bonding/rte_eth_bond_pmd.c
> index 5a2fbef..1fd1321 100644
> --- a/drivers/net/bonding/rte_eth_bond_pmd.c
> +++ b/drivers/net/bonding/rte_eth_bond_pmd.c
> @@ -1520,8 +1520,8 @@ bond_ethdev_stop(struct rte_eth_dev *eth_dev)
>  		bond_mode_8023ad_stop(eth_dev);
> 
>  		/* Discard all messages to/from mode 4 state machines */
> -		for (i = 0; i < internals->slave_count; i++) {
> -			port = &mode_8023ad_ports[internals->slaves[i].port_id];
> +		for (i = 0; i < internals->active_slave_count; i++) {
> +			port = &mode_8023ad_ports[internals->active_slaves[i]];
> 
>  			RTE_VERIFY(port->rx_ring != NULL);
>  			while (rte_ring_dequeue(port->rx_ring, &pkt) != -
> ENOENT)
> --
> 2.1.4

Acked-by : Declan Doherty <declan.doherty@intel.com>

  reply	other threads:[~2015-06-26  7:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-24 21:01 Jan Blunck
2015-06-26  7:33 ` Doherty, Declan [this message]
2015-06-28 22:32   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=345C63BAECC1AD42A2EC8C63AFFC3ADC27F26409@irsmsx105.ger.corp.intel.com \
    --to=declan.doherty@intel.com \
    --cc=dev@dpdk.org \
    --cc=jblunck@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).