lkml.org 
[lkml]   [2011]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[34-longterm 200/260] netxen: dont set skb->truesize
    Date
    From: Eric Dumazet <eric.dumazet@gmail.com>

    commit 7e96dc7045bff8758804b047c0dfb6868f182500 upstream.

    skb->truesize is set in core network.

    Dont change it unless dealing with fragments.

    Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
    ---
    drivers/net/netxen/netxen_nic_init.c | 3 ---
    1 files changed, 0 insertions(+), 3 deletions(-)

    diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c
    index 02876f5..00001bf 100644
    --- a/drivers/net/netxen/netxen_nic_init.c
    +++ b/drivers/net/netxen/netxen_nic_init.c
    @@ -1402,7 +1402,6 @@ netxen_process_rcv(struct netxen_adapter *adapter,
    if (pkt_offset)
    skb_pull(skb, pkt_offset);

    - skb->truesize = skb->len + sizeof(struct sk_buff);
    skb->protocol = eth_type_trans(skb, netdev);

    napi_gro_receive(&sds_ring->napi, skb);
    @@ -1464,8 +1463,6 @@ netxen_process_lro(struct netxen_adapter *adapter,

    skb_put(skb, lro_length + data_offset);

    - skb->truesize = skb->len + sizeof(struct sk_buff) + skb_headroom(skb);
    -
    skb_pull(skb, l2_hdr_offset);
    skb->protocol = eth_type_trans(skb, netdev);

    --
    1.7.3.3


    \
     
     \ /
      Last update: 2011-01-02 08:59    [W:0.043 / U:0.052 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site