lkml.org 
[lkml]   [2016]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 136/192] [PATCH 4.4 06/16] IB/IPoIB: Do not set skb truesize since using one linearskb
    Date
    4.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------


    From: Carol L Soto <clsoto@linux.vnet.ibm.com>

    [ Upstream commit bb6a777369449d15a4a890306d2f925cae720e1c ]

    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>
    Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/infiniband/ulp/ipoib/ipoib_ib.c | 2 --
    1 file changed, 2 deletions(-)

    --- 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
    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;


    \
     
     \ /
      Last update: 2016-09-17 09:59    [W:3.202 / U:0.652 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site