From: Eric Dumazet <hidden> Date: 2012-04-03 22:02:18
Probably a leftover from ancient code...
Signed-off-by: Eric Dumazet <redacted>
Cc: Roland Stigge <redacted>
---
This was mentioned in one of my review but ignored/lost.
drivers/net/ethernet/nxp/lpc_eth.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
@@ -990,10 +990,10 @@ static int __lpc_handle_recv(struct net_device *ndev, int budget)ndev->stats.rx_errors++;}else{/* Packet is good */-skb=dev_alloc_skb(len+8);-if(!skb)+skb=dev_alloc_skb(len);+if(!skb){ndev->stats.rx_dropped++;-else{+}else{prdbuf=skb_put(skb,len);/* Copy packet from buffer */
@@ -990,10 +990,10 @@ static int __lpc_handle_recv(struct net_device *ndev, int budget)ndev->stats.rx_errors++;}else{/* Packet is good */-skb=dev_alloc_skb(len+8);-if(!skb)+skb=dev_alloc_skb(len);
I remember this issue from the discussion, a note from Ben Hutchings
actually, where there was a further "skb_reserve(skb, 8);" in the "else"
case below. Looks like I only removed the skb_reserve().
Can't find this review from you - I hope there are no other issues left?
(Was I on CC?)