Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e96dc70 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

netxen: dont set skb->truesize



skb->truesize is set in core network.

Dont change it unless dealing with fragments.

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8df8fd27
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);