|
@@ -779,6 +779,12 @@ static int fm10k_update_vid(struct net_device *netdev, u16 vid, bool set)
|
|
if (!set && vid == hw->mac.default_vid)
|
|
if (!set && vid == hw->mac.default_vid)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
|
|
+ /* Do not throw an error if the interface is down. We will sync once
|
|
|
|
+ * we come up
|
|
|
|
+ */
|
|
|
|
+ if (test_bit(__FM10K_DOWN, &interface->state))
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
fm10k_mbx_lock(interface);
|
|
fm10k_mbx_lock(interface);
|
|
|
|
|
|
/* only need to update the VLAN if not in promiscuous mode */
|
|
/* only need to update the VLAN if not in promiscuous mode */
|