summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/chelsio
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-03-20 20:33:19 +0400
committerDavid S. Miller <davem@davemloft.net>2013-03-20 21:29:34 +0400
commit70386d40e19eeff8696f2593755e78f6f7fa9e6d (patch)
treef895edd9f5d81d0ee7f50d07412294cf7ddded05 /drivers/net/ethernet/chelsio
parent8fdc929f5727d999d11ba3763b92f6eeacc096f9 (diff)
downloadlinux-70386d40e19eeff8696f2593755e78f6f7fa9e6d.tar.xz
chelsio: add headroom in RX path
Drivers should reserve some headroom in skb used in receive path, to avoid future head reallocation. One possible way to do that is to use dev_alloc_skb() instead of alloc_skb(), so that NET_SKB_PAD bytes are reserved. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb/sge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb/sge.c b/drivers/net/ethernet/chelsio/cxgb/sge.c
index 482976925154..89bef504d9dc 100644
--- a/drivers/net/ethernet/chelsio/cxgb/sge.c
+++ b/drivers/net/ethernet/chelsio/cxgb/sge.c
@@ -835,7 +835,7 @@ static void refill_free_list(struct sge *sge, struct freelQ *q)
struct sk_buff *skb;
dma_addr_t mapping;
- skb = alloc_skb(q->rx_buffer_size, GFP_ATOMIC);
+ skb = dev_alloc_skb(q->rx_buffer_size);
if (!skb)
break;