]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qede: Don't use an internal MAC field
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Sun, 21 May 2017 09:10:55 +0000 (12:10 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:32:09 +0000 (22:32 -0700)
commite6ea95cd055d6e73b982be496a3249f84fb2cdb1
tree34404241e5e764ad368a6c43763ad77a5652bbd3
parent982610e9248eae68925a8cc03c102719045e4187
qede: Don't use an internal MAC field

Orabug: 26783820

Driver maintains its primary MAC in a private field which
gets updated when ndo_dev_set_mac() gets called.

However, there are flows where the primary MAC of the device can change
without said NDO being called [bond device in TLB mode configuring
slaves' addresses], resulting in a configuration where there's a mismatch
between what's apparent to user [the netdevice's value] and what's
configured in the HW [the private value].

As we don't have any real motivation of maintaining this
private field, simply remove it and start using the netdevice's
field instead.

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Upstream commit 492a1d9811cbd17c833bd0af18bfaff00cd3ac85 ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/qlogic/qede/qede.h
drivers/net/ethernet/qlogic/qede/qede_filter.c
drivers/net/ethernet/qlogic/qede/qede_main.c