diff options
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_sriov.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_sriov.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/net/ixgbe/ixgbe_sriov.c b/drivers/net/ixgbe/ixgbe_sriov.c index 49661a138e2..a6b720ae7fe 100644 --- a/drivers/net/ixgbe/ixgbe_sriov.c +++ b/drivers/net/ixgbe/ixgbe_sriov.c | |||
@@ -43,8 +43,8 @@ | |||
43 | 43 | ||
44 | #include "ixgbe_sriov.h" | 44 | #include "ixgbe_sriov.h" |
45 | 45 | ||
46 | int ixgbe_set_vf_multicasts(struct ixgbe_adapter *adapter, | 46 | static int ixgbe_set_vf_multicasts(struct ixgbe_adapter *adapter, |
47 | int entries, u16 *hash_list, u32 vf) | 47 | int entries, u16 *hash_list, u32 vf) |
48 | { | 48 | { |
49 | struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; | 49 | struct vf_data_storage *vfinfo = &adapter->vfinfo[vf]; |
50 | struct ixgbe_hw *hw = &adapter->hw; | 50 | struct ixgbe_hw *hw = &adapter->hw; |
@@ -104,13 +104,14 @@ void ixgbe_restore_vf_multicasts(struct ixgbe_adapter *adapter) | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | int ixgbe_set_vf_vlan(struct ixgbe_adapter *adapter, int add, int vid, u32 vf) | 107 | static int ixgbe_set_vf_vlan(struct ixgbe_adapter *adapter, int add, int vid, |
108 | u32 vf) | ||
108 | { | 109 | { |
109 | return adapter->hw.mac.ops.set_vfta(&adapter->hw, vid, vf, (bool)add); | 110 | return adapter->hw.mac.ops.set_vfta(&adapter->hw, vid, vf, (bool)add); |
110 | } | 111 | } |
111 | 112 | ||
112 | 113 | ||
113 | void ixgbe_set_vmolr(struct ixgbe_hw *hw, u32 vf, bool aupe) | 114 | static void ixgbe_set_vmolr(struct ixgbe_hw *hw, u32 vf, bool aupe) |
114 | { | 115 | { |
115 | u32 vmolr = IXGBE_READ_REG(hw, IXGBE_VMOLR(vf)); | 116 | u32 vmolr = IXGBE_READ_REG(hw, IXGBE_VMOLR(vf)); |
116 | vmolr |= (IXGBE_VMOLR_ROMPE | | 117 | vmolr |= (IXGBE_VMOLR_ROMPE | |
@@ -134,7 +135,7 @@ static void ixgbe_set_vmvir(struct ixgbe_adapter *adapter, u32 vid, u32 vf) | |||
134 | IXGBE_WRITE_REG(hw, IXGBE_VMVIR(vf), 0); | 135 | IXGBE_WRITE_REG(hw, IXGBE_VMVIR(vf), 0); |
135 | } | 136 | } |
136 | 137 | ||
137 | inline void ixgbe_vf_reset_event(struct ixgbe_adapter *adapter, u32 vf) | 138 | static inline void ixgbe_vf_reset_event(struct ixgbe_adapter *adapter, u32 vf) |
138 | { | 139 | { |
139 | struct ixgbe_hw *hw = &adapter->hw; | 140 | struct ixgbe_hw *hw = &adapter->hw; |
140 | int rar_entry = hw->mac.num_rar_entries - (vf + 1); | 141 | int rar_entry = hw->mac.num_rar_entries - (vf + 1); |
@@ -162,8 +163,8 @@ inline void ixgbe_vf_reset_event(struct ixgbe_adapter *adapter, u32 vf) | |||
162 | hw->mac.ops.clear_rar(hw, rar_entry); | 163 | hw->mac.ops.clear_rar(hw, rar_entry); |
163 | } | 164 | } |
164 | 165 | ||
165 | int ixgbe_set_vf_mac(struct ixgbe_adapter *adapter, | 166 | static int ixgbe_set_vf_mac(struct ixgbe_adapter *adapter, |
166 | int vf, unsigned char *mac_addr) | 167 | int vf, unsigned char *mac_addr) |
167 | { | 168 | { |
168 | struct ixgbe_hw *hw = &adapter->hw; | 169 | struct ixgbe_hw *hw = &adapter->hw; |
169 | int rar_entry = hw->mac.num_rar_entries - (vf + 1); | 170 | int rar_entry = hw->mac.num_rar_entries - (vf + 1); |
@@ -197,7 +198,7 @@ int ixgbe_vf_configuration(struct pci_dev *pdev, unsigned int event_mask) | |||
197 | return 0; | 198 | return 0; |
198 | } | 199 | } |
199 | 200 | ||
200 | inline void ixgbe_vf_reset_msg(struct ixgbe_adapter *adapter, u32 vf) | 201 | static inline void ixgbe_vf_reset_msg(struct ixgbe_adapter *adapter, u32 vf) |
201 | { | 202 | { |
202 | struct ixgbe_hw *hw = &adapter->hw; | 203 | struct ixgbe_hw *hw = &adapter->hw; |
203 | u32 reg; | 204 | u32 reg; |