aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r--drivers/net/cxgb3/cxgb3_offload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.c b/drivers/net/cxgb3/cxgb3_offload.c
index c3a02d613382..c6b726643185 100644
--- a/drivers/net/cxgb3/cxgb3_offload.c
+++ b/drivers/net/cxgb3/cxgb3_offload.c
@@ -396,7 +396,7 @@ static int rx_offload_blackhole(struct t3cdev *dev, struct sk_buff **skbs,
396 int n) 396 int n)
397{ 397{
398 CH_ERR(tdev2adap(dev), "%d unexpected offload packets, first data %u\n", 398 CH_ERR(tdev2adap(dev), "%d unexpected offload packets, first data %u\n",
399 n, ntohl(*(u32 *)skbs[0]->data)); 399 n, ntohl(*(__be32 *)skbs[0]->data));
400 while (n--) 400 while (n--)
401 dev_kfree_skb_any(skbs[n]); 401 dev_kfree_skb_any(skbs[n]);
402 return 0; 402 return 0;
@@ -755,7 +755,7 @@ static int do_trace(struct t3cdev *dev, struct sk_buff *skb)
755{ 755{
756 struct cpl_trace_pkt *p = cplhdr(skb); 756 struct cpl_trace_pkt *p = cplhdr(skb);
757 757
758 skb->protocol = 0xffff; 758 skb->protocol = htons(0xffff);
759 skb->dev = dev->lldev; 759 skb->dev = dev->lldev;
760 skb_pull(skb, sizeof(*p)); 760 skb_pull(skb, sizeof(*p));
761 skb->mac.raw = skb->data; 761 skb->mac.raw = skb->data;