[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1324071003.2621.33.camel@edumazet-laptop>
Date: Fri, 16 Dec 2011 22:30:03 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: igorm@....rs
Cc: netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH net-next] r8169: Support for byte queue limits
Le lundi 12 décembre 2011 à 05:00 -0800, igorm@....rs a écrit :
> From: Igor Maravic <igorm@....rs>
>
> Changes to r8169 to use byte queue limits.
>
> Signed-off-by: Igor Maravic <igorm@....rs>
> Signed-off-by: Igor Maravić <igorm@....rs>
Dont forget to CC maintainer of this driver.
> ---
> drivers/net/ethernet/realtek/r8169.c | 13 +++++++++++--
> 1 files changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
> index 36b2a4b..bfdb5fd 100644
> --- a/drivers/net/ethernet/realtek/r8169.c
> +++ b/drivers/net/ethernet/realtek/r8169.c
> @@ -5326,6 +5326,7 @@ static void rtl8169_tx_clear(struct rtl8169_private *tp)
> {
> rtl8169_tx_clear_range(tp, tp->dirty_tx, NUM_TX_DESC);
> tp->cur_tx = tp->dirty_tx = 0;
> + netdev_reset_queue(tp->dev);
> }
>
> static void rtl8169_schedule_work(struct net_device *dev, work_func_t task)
> @@ -5460,6 +5461,8 @@ static int rtl8169_xmit_frags(struct rtl8169_private *tp, struct sk_buff *skb,
> txd->opts1 |= cpu_to_le32(LastFrag);
> }
>
> + netdev_sent_queue(tp->dev, skb->len);
> +
Why here in rtl8169_xmit_frags() ?
If done from rtl8169_start_xmit(), you already have "dev" pointer.
netdev_sent_queue(dev, skb->len);
--
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