summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib
diff options
context:
space:
mode:
authorCarol L Soto <clsoto@linux.vnet.ibm.com>2016-02-03 15:55:37 -0500
committerDoug Ledford <dledford@redhat.com>2016-02-04 07:08:12 -0500
commitbb6a777369449d15a4a890306d2f925cae720e1c (patch)
treefb18b7aa91e0383317d58a5a78c82558d35a51a4 /drivers/infiniband/ulp/ipoib
parentb85d9905a7ca128f24e3a4e60ff2a1b0cd58ae7c (diff)
downloadop-kernel-dev-bb6a777369449d15a4a890306d2f925cae720e1c.zip
op-kernel-dev-bb6a777369449d15a4a890306d2f925cae720e1c.tar.gz
IB/IPoIB: Do not set skb truesize since using one linearskb
We are seeing this warning: at net/core/skbuff.c:4174 and before commit a44878d10063 ("IB/ipoib: Use one linear skb in RX flow") skb truesize was not being set when ipoib was using just one skb. Removing this line avoids the warning when running tcp tests like iperf. Fixes: a44878d10063 ("IB/ipoib: Use one linear skb in RX flow") Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_ib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ib.c b/drivers/infiniband/ulp/ipoib/ipoib_ib.c
index 5ea0c14..fa9c42f 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_ib.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_ib.c
@@ -245,8 +245,6 @@ static void ipoib_ib_handle_rx_wc(struct net_device *dev, struct ib_wc *wc)
skb_reset_mac_header(skb);
skb_pull(skb, IPOIB_ENCAP_LEN);
- skb->truesize = SKB_TRUESIZE(skb->len);
-
++dev->stats.rx_packets;
dev->stats.rx_bytes += skb->len;
OpenPOWER on IntegriCloud