diff options
Diffstat (limited to 'drivers/net/ethernet/intel/igb/igb_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index d03c2f0d7592..a32c576c1e65 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c | |||
@@ -3873,7 +3873,7 @@ static int igb_sw_init(struct igb_adapter *adapter) | |||
3873 | 3873 | ||
3874 | adapter->mac_table = kcalloc(hw->mac.rar_entry_count, | 3874 | adapter->mac_table = kcalloc(hw->mac.rar_entry_count, |
3875 | sizeof(struct igb_mac_addr), | 3875 | sizeof(struct igb_mac_addr), |
3876 | GFP_ATOMIC); | 3876 | GFP_KERNEL); |
3877 | if (!adapter->mac_table) | 3877 | if (!adapter->mac_table) |
3878 | return -ENOMEM; | 3878 | return -ENOMEM; |
3879 | 3879 | ||
@@ -3883,7 +3883,7 @@ static int igb_sw_init(struct igb_adapter *adapter) | |||
3883 | 3883 | ||
3884 | /* Setup and initialize a copy of the hw vlan table array */ | 3884 | /* Setup and initialize a copy of the hw vlan table array */ |
3885 | adapter->shadow_vfta = kcalloc(E1000_VLAN_FILTER_TBL_SIZE, sizeof(u32), | 3885 | adapter->shadow_vfta = kcalloc(E1000_VLAN_FILTER_TBL_SIZE, sizeof(u32), |
3886 | GFP_ATOMIC); | 3886 | GFP_KERNEL); |
3887 | if (!adapter->shadow_vfta) | 3887 | if (!adapter->shadow_vfta) |
3888 | return -ENOMEM; | 3888 | return -ENOMEM; |
3889 | 3889 | ||
@@ -5816,7 +5816,8 @@ static void igb_tx_csum(struct igb_ring *tx_ring, struct igb_tx_buffer *first) | |||
5816 | 5816 | ||
5817 | if (skb->ip_summed != CHECKSUM_PARTIAL) { | 5817 | if (skb->ip_summed != CHECKSUM_PARTIAL) { |
5818 | csum_failed: | 5818 | csum_failed: |
5819 | if (!(first->tx_flags & IGB_TX_FLAGS_VLAN)) | 5819 | if (!(first->tx_flags & IGB_TX_FLAGS_VLAN) && |
5820 | !tx_ring->launchtime_enable) | ||
5820 | return; | 5821 | return; |
5821 | goto no_csum; | 5822 | goto no_csum; |
5822 | } | 5823 | } |