aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4/sge.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb4/sge.c')
-rw-r--r--drivers/net/cxgb4/sge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/cxgb4/sge.c b/drivers/net/cxgb4/sge.c
index d1f8f225e45a..4388f72d586a 100644
--- a/drivers/net/cxgb4/sge.c
+++ b/drivers/net/cxgb4/sge.c
@@ -931,7 +931,7 @@ out_free: dev_kfree_skb(skb);
931 931
932 ssi = skb_shinfo(skb); 932 ssi = skb_shinfo(skb);
933 if (ssi->gso_size) { 933 if (ssi->gso_size) {
934 struct cpl_tx_pkt_lso *lso = (void *)wr; 934 struct cpl_tx_pkt_lso_core *lso = (void *)(wr + 1);
935 bool v6 = (ssi->gso_type & SKB_GSO_TCPV6) != 0; 935 bool v6 = (ssi->gso_type & SKB_GSO_TCPV6) != 0;
936 int l3hdr_len = skb_network_header_len(skb); 936 int l3hdr_len = skb_network_header_len(skb);
937 int eth_xtra_len = skb_network_offset(skb) - ETH_HLEN; 937 int eth_xtra_len = skb_network_offset(skb) - ETH_HLEN;
@@ -1718,7 +1718,7 @@ static int process_responses(struct sge_rspq *q, int budget)
1718 free_rx_bufs(q->adap, &rxq->fl, 1); 1718 free_rx_bufs(q->adap, &rxq->fl, 1);
1719 q->offset = 0; 1719 q->offset = 0;
1720 } 1720 }
1721 len &= RSPD_LEN; 1721 len = RSPD_LEN(len);
1722 } 1722 }
1723 si.tot_len = len; 1723 si.tot_len = len;
1724 1724