diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-09-21 13:04:04 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-21 13:04:04 -0700 |
commit | 7e96dc7045bff8758804b047c0dfb6868f182500 (patch) | |
tree | bee38e20c9cf33ba32b72d167aecfa82809d52fb /drivers/net/netxen/netxen_nic_init.c | |
parent | 8df8fd27123054b02007361bd5483775db84b4a8 (diff) | |
download | linux-7e96dc7045bff8758804b047c0dfb6868f182500.tar.gz linux-7e96dc7045bff8758804b047c0dfb6868f182500.tar.bz2 linux-7e96dc7045bff8758804b047c0dfb6868f182500.zip |
netxen: dont set skb->truesize
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>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_init.c')
-rw-r--r-- | 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 cabae7bb1fc6..b075a35b85d4 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c @@ -1540,7 +1540,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); @@ -1602,8 +1601,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); |