net/gianfar: drop recycled skbs on MTU change
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 4 May 2010 22:30:47 +0000 (22:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 May 2010 04:29:15 +0000 (21:29 -0700)
commit7df9c43fbe470628a755dfd028e58fdd7ab9b44e
treed89bbd1e1543d94fe39b3d04b9fd2c47491260bb
parent7cff0943a1104479fc9fc2d6ced24c02ba81e73e
net/gianfar: drop recycled skbs on MTU change

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@linutronix.de>
Acked-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c