]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: calxedaxgmac: fix clearing of old filter addresses
authorRob Herring <rob.herring@calxeda.com>
Mon, 30 Sep 2013 20:12:15 +0000 (15:12 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2013 20:10:29 +0000 (16:10 -0400)
commit8c1c58ec70ce45cd5c7866811e90df131e7a3005
tree5843f7c4b3337c130f575a4fcb851eea9e23dca3
parent6865d1e834be84ddd5808d93d5035b492346c64a
net: calxedaxgmac: fix clearing of old filter addresses

In commit 2ee68f621af280 (net: calxedaxgmac: fix various errors in
xgmac_set_rx_mode), a fix to clean-up old address entries was added.
However, the loop to zero out the entries failed to increment the register
address resulting in only 1 entry getting cleared. Fix this to correctly
use the loop index. Also, the end of the loop condition was off by 1 and
should have been <= rather than <.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/calxeda/xgmac.c