diff options
Diffstat (limited to 'drivers/net/ethernet/intel/fm10k/fm10k_netdev.c')
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k_netdev.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c index bf44a8fe711f..8811364b91cb 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_netdev.c | |||
@@ -20,9 +20,9 @@ | |||
20 | 20 | ||
21 | #include "fm10k.h" | 21 | #include "fm10k.h" |
22 | #include <linux/vmalloc.h> | 22 | #include <linux/vmalloc.h> |
23 | #if IS_ENABLED(CONFIG_VXLAN) | 23 | #if IS_ENABLED(CONFIG_FM10K_VXLAN) |
24 | #include <net/vxlan.h> | 24 | #include <net/vxlan.h> |
25 | #endif /* CONFIG_VXLAN */ | 25 | #endif /* CONFIG_FM10K_VXLAN */ |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * fm10k_setup_tx_resources - allocate Tx resources (Descriptors) | 28 | * fm10k_setup_tx_resources - allocate Tx resources (Descriptors) |
@@ -556,7 +556,7 @@ int fm10k_open(struct net_device *netdev) | |||
556 | if (err) | 556 | if (err) |
557 | goto err_set_queues; | 557 | goto err_set_queues; |
558 | 558 | ||
559 | #if IS_ENABLED(CONFIG_VXLAN) | 559 | #if IS_ENABLED(CONFIG_FM10K_VXLAN) |
560 | /* update VXLAN port configuration */ | 560 | /* update VXLAN port configuration */ |
561 | vxlan_get_rx_port(netdev); | 561 | vxlan_get_rx_port(netdev); |
562 | 562 | ||
@@ -785,14 +785,14 @@ static int fm10k_update_vid(struct net_device *netdev, u16 vid, bool set) | |||
785 | if (!(netdev->flags & IFF_PROMISC)) { | 785 | if (!(netdev->flags & IFF_PROMISC)) { |
786 | err = hw->mac.ops.update_vlan(hw, vid, 0, set); | 786 | err = hw->mac.ops.update_vlan(hw, vid, 0, set); |
787 | if (err) | 787 | if (err) |
788 | return err; | 788 | goto err_out; |
789 | } | 789 | } |
790 | 790 | ||
791 | /* update our base MAC address */ | 791 | /* update our base MAC address */ |
792 | err = hw->mac.ops.update_uc_addr(hw, interface->glort, hw->mac.addr, | 792 | err = hw->mac.ops.update_uc_addr(hw, interface->glort, hw->mac.addr, |
793 | vid, set, 0); | 793 | vid, set, 0); |
794 | if (err) | 794 | if (err) |
795 | return err; | 795 | goto err_out; |
796 | 796 | ||
797 | /* set vid prior to syncing/unsyncing the VLAN */ | 797 | /* set vid prior to syncing/unsyncing the VLAN */ |
798 | interface->vid = vid + (set ? VLAN_N_VID : 0); | 798 | interface->vid = vid + (set ? VLAN_N_VID : 0); |
@@ -801,9 +801,10 @@ static int fm10k_update_vid(struct net_device *netdev, u16 vid, bool set) | |||
801 | __dev_uc_unsync(netdev, fm10k_uc_vlan_unsync); | 801 | __dev_uc_unsync(netdev, fm10k_uc_vlan_unsync); |
802 | __dev_mc_unsync(netdev, fm10k_mc_vlan_unsync); | 802 | __dev_mc_unsync(netdev, fm10k_mc_vlan_unsync); |
803 | 803 | ||
804 | err_out: | ||
804 | fm10k_mbx_unlock(interface); | 805 | fm10k_mbx_unlock(interface); |
805 | 806 | ||
806 | return 0; | 807 | return err; |
807 | } | 808 | } |
808 | 809 | ||
809 | static int fm10k_vlan_rx_add_vid(struct net_device *netdev, | 810 | static int fm10k_vlan_rx_add_vid(struct net_device *netdev, |