aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4/sge.c
diff options
context:
space:
mode:
authorCasey Leedom <leedom@chelsio.com>2010-06-25 08:09:38 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-29 02:58:54 -0400
commit1704d74894912b8ecc3e95cecd7bde336a0b1bf2 (patch)
tree4081867356b4afa7825eefd5f014342803e5166a /drivers/net/cxgb4/sge.c
parenta71e8329170ece5f684aa363dfa69828cbfd5184 (diff)
cxgb4vf: small changes to message processing structures/macros
Split cpl_tx_pkt_lso into core message structure and encapsulated message, make RSPD_LEN macro match other response descriptor macros. Signed-off-by: Casey Leedom Signed-off-by: David S. Miller <davem@davemloft.net>
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