]> git.baikalelectronics.ru Git - kernel.git/commit
via-velocity: don't oops on MTU change (resend)
authorStephen Hemminger <shemminger@linux-foundation.org>
Wed, 28 Nov 2007 22:20:16 +0000 (14:20 -0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 1 Dec 2007 21:35:51 +0000 (16:35 -0500)
commit38de2b05917fb59f7c6862428327b50348eba5c2
tree9f6795257b703468ce918e652fc750e2fc538406
parent38d3e0c03658a6b8ad5275bae9d83272ae0c20d4
via-velocity: don't oops on MTU change (resend)

The VIA veloicty driver needs the following to allow changing MTU when down.
The buffer size needs to be computed when device is brought up, not when
device is initialized.  This also fixes a bug where the buffer size was
computed differently on change_mtu versus initial setting.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/via-velocity.c