]> git.baikalelectronics.ru Git - kernel.git/commit
mv643xx_eth: fix unicast address filter corruption on mtu change
authorLennert Buytenhek <buytenh@marvell.com>
Fri, 13 Mar 2009 22:48:02 +0000 (15:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2009 22:48:02 +0000 (15:48 -0700)
commited8f01c2c2a2adfdbb0267d17d1af85463592c1b
tree65799891c8419c7777e83f9ba4938e8476e9fc26
parenta7ab9d082df06eace9d56f05ffdb71aa3560b665
mv643xx_eth: fix unicast address filter corruption on mtu change

When mv643xx_eth_open() is called to up an interface, port_start()
will first re-program the unicast address filter, and then
re-initialise the PORT_CONFIG register, but that will disable unicast
promiscuous mode if it was enabled by the unicast address filter setup.

This isn't a problem on ifconfig up, as ->set_rx_mode() will be called
shortly afterwards which will program the filters again, but it does
trigger when changing the MTU, which calls mv643xx_eth_stop() and then
mv643xx_eth_open() by hand to repopulate the receive rings with skbuffs
of the new size.

Swap the initialisation of the PORT_START register and the call to
the unicast filter setup function to fix this.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mv643xx_eth.c