Skip to content

Commit

Permalink
netxen: dont set skb->truesize
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 21, 2010
1 parent 8df8fd2 commit 7e96dc7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/netxen/netxen_nic_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 7e96dc7

Please sign in to comment.