aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/sge.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb3/sge.c')
-rw-r--r--drivers/net/cxgb3/sge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c
index 6367cee0d66a..cb684d30831f 100644
--- a/drivers/net/cxgb3/sge.c
+++ b/drivers/net/cxgb3/sge.c
@@ -1814,7 +1814,7 @@ static void rx_eth(struct adapter *adap, struct sge_rspq *rq,
1814 skb->protocol = eth_type_trans(skb, adap->port[p->iff]); 1814 skb->protocol = eth_type_trans(skb, adap->port[p->iff]);
1815 skb->dev->last_rx = jiffies; 1815 skb->dev->last_rx = jiffies;
1816 pi = netdev_priv(skb->dev); 1816 pi = netdev_priv(skb->dev);
1817 if (pi->rx_csum_offload && p->csum_valid && p->csum == 0xffff && 1817 if (pi->rx_csum_offload && p->csum_valid && p->csum == htons(0xffff) &&
1818 !p->fragment) { 1818 !p->fragment) {
1819 rspq_to_qset(rq)->port_stats[SGE_PSTAT_RX_CSUM_GOOD]++; 1819 rspq_to_qset(rq)->port_stats[SGE_PSTAT_RX_CSUM_GOOD]++;
1820 skb->ip_summed = CHECKSUM_UNNECESSARY; 1820 skb->ip_summed = CHECKSUM_UNNECESSARY;
@@ -1961,7 +1961,7 @@ static int process_responses(struct adapter *adap, struct sge_qset *qs,
1961 int eth, ethpad = 2; 1961 int eth, ethpad = 2;
1962 struct sk_buff *skb = NULL; 1962 struct sk_buff *skb = NULL;
1963 u32 len, flags = ntohl(r->flags); 1963 u32 len, flags = ntohl(r->flags);
1964 u32 rss_hi = *(const u32 *)r, rss_lo = r->rss_hdr.rss_hash_val; 1964 __be32 rss_hi = *(const __be32 *)r, rss_lo = r->rss_hdr.rss_hash_val;
1965 1965
1966 eth = r->rss_hdr.opcode == CPL_RX_PKT; 1966 eth = r->rss_hdr.opcode == CPL_RX_PKT;
1967 1967