[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1316831912.28330.19.camel@Joe-Laptop>
Date: Fri, 23 Sep 2011 19:38:31 -0700
From: Joe Perches <joe@...ches.com>
To: Rasesh Mody <rmody@...cade.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
adapter_linux_open_src_team@...cade.com,
Gurunatha Karaje <gkaraje@...cade.com>
Subject: Re: [net-next 6/7] bna: Add Callback to Fix RXQ Stop
On Fri, 2011-09-23 at 19:14 -0700, Rasesh Mody wrote:
> diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
[]
> @@ -956,6 +956,27 @@ bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tx *tx)
> }
>
> static void
> +bnad_cb_rx_stall(struct bnad *bnad, struct bna_rx *rx)
> +{
> + struct bnad_rx_info *rx_info = (struct bnad_rx_info *)rx->priv;
> + struct bna_ccb *ccb;
> + struct bnad_rx_ctrl *rx_ctrl;
> + int i;
> +
> + for (i = 0; i < BNAD_MAX_RXP_PER_RX; i++) {
> + rx_ctrl = &rx_info->rx_ctrl[i];
> + ccb = rx_ctrl->ccb;
> + if (!ccb)
> + continue;
> +
> + clear_bit(BNAD_RXQ_POST_OK, &ccb->rcb[0]->flags);
> +
> + if (ccb->rcb[1])
> + clear_bit(BNAD_RXQ_POST_OK, &ccb->rcb[1]->flags);
misleading indentation. Please add a tab.
> + }
> +}
> +
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists