diff options
author | Pavel Fedin <p.fedin@samsung.com> | 2015-06-23 17:51:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-24 01:02:53 -0700 |
commit | bd049a90e538d76d89db1b5a7a1e7c0cb1a87ccd (patch) | |
tree | a29438f9e1557a198ad919238907ccbe810fadf4 /drivers/net/ethernet/cavium/thunder/nic.h | |
parent | 8beeef8de49d2d9707c55747fdcef3da2b56ac68 (diff) | |
download | linux-bd049a90e538d76d89db1b5a7a1e7c0cb1a87ccd.tar.gz linux-bd049a90e538d76d89db1b5a7a1e7c0cb1a87ccd.tar.bz2 linux-bd049a90e538d76d89db1b5a7a1e7c0cb1a87ccd.zip |
net: Cavium: Fix MAC address setting in shutdown state
This bug pops up with NetworkManager on Fedora 21. NetworkManager tends to
stop the interface (nicvf_stop() is called) before changing settings. In
stopped state MAC cannot be sent to a PF. However, when the interface is
restarted (nicvf_open() is called), we ping the PF using NIC_MBOX_MSG_READY
message, and the PF replies back with old MAC address, overriding what we
had after MAC setting from userspace. As a result, we cannot set MAC
address using NetworkManager.
This patch introduces special tracking of MAC change in stopped state so
that the correct new MAC address is sent to a PF when interface is reopen.
Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/thunder/nic.h')
-rw-r--r-- | drivers/net/ethernet/cavium/thunder/nic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nic.h b/drivers/net/ethernet/cavium/thunder/nic.h index a3b43e50a576..dda8a02b7322 100644 --- a/drivers/net/ethernet/cavium/thunder/nic.h +++ b/drivers/net/ethernet/cavium/thunder/nic.h @@ -263,6 +263,7 @@ struct nicvf { bool pf_acked; bool pf_nacked; bool bgx_stats_acked; + bool set_mac_pending; } ____cacheline_aligned_in_smp; /* PF <--> VF Mailbox communication |