Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204013
b: refs/heads/master
c: ba5d3c6
h: refs/heads/master
i:
  204011: ff76040
v: v3
  • Loading branch information
Dimitris Michailidis authored and David S. Miller committed Aug 2, 2010
1 parent 55e4594 commit 11f06a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63bcceec6e3ba8ffe0e2a0bec75afcdf6403165c
refs/heads/master: ba5d3c66e02c3dac66a386b6af0dc9687a4dba67
7 changes: 4 additions & 3 deletions trunk/drivers/net/cxgb4/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1593,14 +1593,15 @@ int t4_ethrx_handler(struct sge_rspq *q, const __be64 *rsp,

if (csum_ok && (pi->rx_offload & RX_CSO) &&
(pkt->l2info & htonl(RXF_UDP | RXF_TCP))) {
if (!pkt->ip_frag)
if (!pkt->ip_frag) {
skb->ip_summed = CHECKSUM_UNNECESSARY;
else {
rxq->stats.rx_cso++;
} else if (pkt->l2info & htonl(RXF_IP)) {
__sum16 c = (__force __sum16)pkt->csum;
skb->csum = csum_unfold(c);
skb->ip_summed = CHECKSUM_COMPLETE;
rxq->stats.rx_cso++;
}
rxq->stats.rx_cso++;
} else
skb->ip_summed = CHECKSUM_NONE;

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/cxgb4/t4_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ struct cpl_rx_pkt {
__be32 l2info;
#define RXF_UDP (1 << 22)
#define RXF_TCP (1 << 23)
#define RXF_IP (1 << 24)
#define RXF_IP6 (1 << 25)
__be16 hdr_len;
__be16 err_vec;
};
Expand Down

0 comments on commit 11f06a1

Please sign in to comment.