[PATCH] netxen: dont set skb->truesize

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Tuesday, September 21, 2010 - 12:55 pm

Le mardi 21 septembre 2010 à 12:33 -0700, David Miller a écrit :

BTW, drivers/net/netxen/netxen_nic_init.c has same problem.

[PATCH] 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>
---
 drivers/net/netxen/netxen_nic_init.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c
index cabae7b..b075a35 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);
 


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCHv2 NEXT 0/5]qlcnic: vlan rx accleration support, Amit Kumar Salecha, (Thu Sep 16, 10:14 pm)
[PATCHv2 NEXT 1/5] qlcnic: support vlan rx accleration, Amit Kumar Salecha, (Thu Sep 16, 10:14 pm)
[PATCHv2 NEXT 4/5] qlcnic: remove fw version check, Amit Kumar Salecha, (Thu Sep 16, 10:14 pm)
[PATCHv2 NEXT 5/5] qlcnic: update version 5.0.10, Amit Kumar Salecha, (Thu Sep 16, 10:14 pm)
[PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, Eric Dumazet, (Fri Sep 17, 2:57 am)
RE: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, Amit Salecha, (Fri Sep 17, 3:53 am)
Re: [PATCHv2 NEXT 0/5]qlcnic: vlan rx accleration support, David Miller, (Fri Sep 17, 11:31 am)
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, David Miller, (Fri Sep 17, 10:58 pm)
RE: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, Amit Salecha, (Mon Sep 20, 4:16 am)
RE: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, Eric Dumazet, (Mon Sep 20, 5:18 am)
[PATCH net-next-2.6] qlnic: dont set skb-&gt;truesize, Eric Dumazet, (Mon Sep 20, 5:28 am)
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, David Miller, (Mon Sep 20, 8:58 am)
Re: [PATCH net-next-2.6] qlnic: dont set skb-&gt;truesize, David Miller, (Mon Sep 20, 10:09 am)
RE: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, Amit Salecha, (Tue Sep 21, 1:19 am)
RE: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, Eric Dumazet, (Tue Sep 21, 1:34 am)
RE: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, Amit Salecha, (Tue Sep 21, 1:41 am)
RE: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, Eric Dumazet, (Tue Sep 21, 2:23 am)
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2, David Miller, (Tue Sep 21, 12:33 pm)
[PATCH] netxen: dont set skb->truesize, Eric Dumazet, (Tue Sep 21, 12:55 pm)
Re: [PATCH] netxen: dont set skb-&gt;truesize, David Miller, (Tue Sep 21, 1:04 pm)