aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 28d3321b0dd2..198b9d9a3d4c 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -3126,6 +3126,8 @@ static int ixgbe_tso(struct ixgbe_adapter *adapter,
3126 mss_l4len_idx |= 3126 mss_l4len_idx |=
3127 (skb_shinfo(skb)->gso_size << IXGBE_ADVTXD_MSS_SHIFT); 3127 (skb_shinfo(skb)->gso_size << IXGBE_ADVTXD_MSS_SHIFT);
3128 mss_l4len_idx |= (l4len << IXGBE_ADVTXD_L4LEN_SHIFT); 3128 mss_l4len_idx |= (l4len << IXGBE_ADVTXD_L4LEN_SHIFT);
3129 /* use index 1 for TSO */
3130 mss_l4len_idx |= (1 << IXGBE_ADVTXD_IDX_SHIFT);
3129 context_desc->mss_l4len_idx = cpu_to_le32(mss_l4len_idx); 3131 context_desc->mss_l4len_idx = cpu_to_le32(mss_l4len_idx);
3130 3132
3131 tx_buffer_info->time_stamp = jiffies; 3133 tx_buffer_info->time_stamp = jiffies;
@@ -3198,6 +3200,7 @@ static bool ixgbe_tx_csum(struct ixgbe_adapter *adapter,
3198 } 3200 }
3199 3201
3200 context_desc->type_tucmd_mlhl = cpu_to_le32(type_tucmd_mlhl); 3202 context_desc->type_tucmd_mlhl = cpu_to_le32(type_tucmd_mlhl);
3203 /* use index zero for tx checksum offload */
3201 context_desc->mss_l4len_idx = 0; 3204 context_desc->mss_l4len_idx = 0;
3202 3205
3203 tx_buffer_info->time_stamp = jiffies; 3206 tx_buffer_info->time_stamp = jiffies;
@@ -3306,6 +3309,8 @@ static void ixgbe_tx_queue(struct ixgbe_adapter *adapter,
3306 olinfo_status |= IXGBE_TXD_POPTS_TXSM << 3309 olinfo_status |= IXGBE_TXD_POPTS_TXSM <<
3307 IXGBE_ADVTXD_POPTS_SHIFT; 3310 IXGBE_ADVTXD_POPTS_SHIFT;
3308 3311
3312 /* use index 1 context for tso */
3313 olinfo_status |= (1 << IXGBE_ADVTXD_IDX_SHIFT);
3309 if (tx_flags & IXGBE_TX_FLAGS_IPV4) 3314 if (tx_flags & IXGBE_TX_FLAGS_IPV4)
3310 olinfo_status |= IXGBE_TXD_POPTS_IXSM << 3315 olinfo_status |= IXGBE_TXD_POPTS_IXSM <<
3311 IXGBE_ADVTXD_POPTS_SHIFT; 3316 IXGBE_ADVTXD_POPTS_SHIFT;