diff options
| -rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index 25a7ed917a30..10606bdbb5ae 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | |||
| @@ -2904,33 +2904,6 @@ static void ixgbe_configure_rscctl(struct ixgbe_adapter *adapter, | |||
| 2904 | IXGBE_WRITE_REG(hw, IXGBE_RSCCTL(reg_idx), rscctrl); | 2904 | IXGBE_WRITE_REG(hw, IXGBE_RSCCTL(reg_idx), rscctrl); |
| 2905 | } | 2905 | } |
| 2906 | 2906 | ||
| 2907 | /** | ||
| 2908 | * ixgbe_set_uta - Set unicast filter table address | ||
| 2909 | * @adapter: board private structure | ||
| 2910 | * | ||
| 2911 | * The unicast table address is a register array of 32-bit registers. | ||
| 2912 | * The table is meant to be used in a way similar to how the MTA is used | ||
| 2913 | * however due to certain limitations in the hardware it is necessary to | ||
| 2914 | * set all the hash bits to 1 and use the VMOLR ROPE bit as a promiscuous | ||
| 2915 | * enable bit to allow vlan tag stripping when promiscuous mode is enabled | ||
| 2916 | **/ | ||
| 2917 | static void ixgbe_set_uta(struct ixgbe_adapter *adapter) | ||
| 2918 | { | ||
| 2919 | struct ixgbe_hw *hw = &adapter->hw; | ||
| 2920 | int i; | ||
| 2921 | |||
| 2922 | /* The UTA table only exists on 82599 hardware and newer */ | ||
| 2923 | if (hw->mac.type < ixgbe_mac_82599EB) | ||
| 2924 | return; | ||
| 2925 | |||
| 2926 | /* we only need to do this if VMDq is enabled */ | ||
| 2927 | if (!(adapter->flags & IXGBE_FLAG_SRIOV_ENABLED)) | ||
| 2928 | return; | ||
| 2929 | |||
| 2930 | for (i = 0; i < 128; i++) | ||
| 2931 | IXGBE_WRITE_REG(hw, IXGBE_UTA(i), ~0); | ||
| 2932 | } | ||
| 2933 | |||
| 2934 | #define IXGBE_MAX_RX_DESC_POLL 10 | 2907 | #define IXGBE_MAX_RX_DESC_POLL 10 |
| 2935 | static void ixgbe_rx_desc_queue_enable(struct ixgbe_adapter *adapter, | 2908 | static void ixgbe_rx_desc_queue_enable(struct ixgbe_adapter *adapter, |
| 2936 | struct ixgbe_ring *ring) | 2909 | struct ixgbe_ring *ring) |
| @@ -3224,8 +3197,6 @@ static void ixgbe_configure_rx(struct ixgbe_adapter *adapter) | |||
| 3224 | /* Program registers for the distribution of queues */ | 3197 | /* Program registers for the distribution of queues */ |
| 3225 | ixgbe_setup_mrqc(adapter); | 3198 | ixgbe_setup_mrqc(adapter); |
| 3226 | 3199 | ||
| 3227 | ixgbe_set_uta(adapter); | ||
| 3228 | |||
| 3229 | /* set_rx_buffer_len must be called before ring initialization */ | 3200 | /* set_rx_buffer_len must be called before ring initialization */ |
| 3230 | ixgbe_set_rx_buffer_len(adapter); | 3201 | ixgbe_set_rx_buffer_len(adapter); |
| 3231 | 3202 | ||
