[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 5 May 2010 10:18:40 -0500
From: Andy Fleming <afleming@...escale.com>
To: Sebastian Andrzej Siewior <sebastian@...akpoint.cc>
Cc: David Miller <davem@...emloft.net>, afleming@...il.com,
netdev@...r.kernel.org
Subject: Re: [PATCH v2] net/gianfar: drop recycled skbs on MTU change
On May 5, 2010, at 3:30 AM, Sebastian Andrzej Siewior wrote:
> From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
>
> The size for skbs which is added to the recycled list is using the
> current descriptor size which is current MTU. gfar_new_skb() is also
> using this size. So after changing or alteast increasing the MTU all
> recycled skbs should be dropped.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
> ---
>>> I think we should probably do this in free_skb_resources. And remove
>>> the call from gfar_close().
>>
>> Ok, Sebastian please rework your patch as requested by Andy.
>
> This has the side effect of dropping them on reset which is not
> required.
Sure, but that's true of the buffers in the BD ring, too. My theory, here, is just that it's best to treat it the same as the other "skb resources". If we want to avoid reallocation during a reset, that's a separate patch. :)
Acked-by: Andy Fleming <afleming@...escale.com>
--
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