net/mlx4_en: Fix mac_hash database inconsistency
authorNoa Osherovich <noaos@mellanox.com>
Tue, 8 Jul 2014 08:25:24 +0000 (11:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jul 2014 02:58:45 +0000 (19:58 -0700)
commit2695bab2a6a18f31839c4e862eba3b450c0d2868
tree21d8b55f81282fecf3c4c7bbe3880f508368abbd
parentd5b8dff0073d782f3169e510fd9445f1f56994e2
net/mlx4_en: Fix mac_hash database inconsistency

Using a local copy of dev_addr in mlx4_en_set_mac() to prevent dev_addr
from being modified during error flow or when dev_addr is modified in
another context (which is another problem that is being discussed over
the mailing list [1]).
Also fixing bad naming of priv->prev_mac into priv->current_mac.

[1] - http://patchwork.ozlabs.org/patch/351489/

Reviewed-by: Eyal Perry <eyalpe@mellanox.com>
Signed-off-by: Noa Osherovich <noaos@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
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h