]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: current_mac isn't updated in port up
authorEyal Perry <eyalpe@mellanox.com>
Tue, 22 Jul 2014 12:44:09 +0000 (15:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jul 2014 02:53:13 +0000 (19:53 -0700)
commit0a3458c261d87017ba34eef181e9a6543e3f29a3
tree0e29fb4c6f76ab5ed465bdc4f4144d29f7ec5183
parent450e1de3396956a92fa13c628766496192c03205
net/mlx4_en: current_mac isn't updated in port up

When port is down dev_addr is changed (e.g. by bonding) but current_mac
is not touched. When port is up again, hash_mac is updated to dev_addr,
but current_mac isn't. This leads to inconsistency between current_mac
and mac_hash. Because of that, mlx4_en_replace_mac() fails to find
current_mac in mac_hash.

Fix is to reset current_mac to dev_addr when port is up - as we do for
mac_hash.

Signed-off-by: Eyal Perry <eyalpe@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c