netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: macb: replace literal constant with NET_IP_ALIGN
@ 2015-06-30 17:25 Nicolae Rosia
  2015-07-01 10:03 ` Nicolas Ferre
  2015-07-01 10:56 ` Eric Dumazet
  0 siblings, 2 replies; 15+ messages in thread
From: Nicolae Rosia @ 2015-06-30 17:25 UTC (permalink / raw)
  To: netdev; +Cc: 'Nicolas Ferre


Signed-off-by: Nicolae Rosia <nicolae.rosia@certsign.ro>
---
 drivers/net/ethernet/cadence/macb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index caeb395..dbb5160 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -2554,9 +2554,9 @@ static void at91ether_rx(struct net_device *dev)
 	while (lp->rx_ring[lp->rx_tail].addr & MACB_BIT(RX_USED)) {
 		p_recv = lp->rx_buffers + lp->rx_tail * AT91ETHER_MAX_RBUFF_SZ;
 		pktlen = MACB_BF(RX_FRMLEN, lp->rx_ring[lp->rx_tail].ctrl);
-		skb = netdev_alloc_skb(dev, pktlen + 2);
+		skb = netdev_alloc_skb(dev, pktlen + NET_IP_ALIGN);
 		if (skb) {
-			skb_reserve(skb, 2);
+			skb_reserve(skb, NET_IP_ALIGN);
 			memcpy(skb_put(skb, pktlen), p_recv, pktlen);
 
 			skb->protocol = eth_type_trans(skb, dev);
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-07-06  8:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 17:25 [PATCH net-next] net: macb: replace literal constant with NET_IP_ALIGN Nicolae Rosia
2015-07-01 10:03 ` Nicolas Ferre
2015-07-01 10:56 ` Eric Dumazet
2015-07-01 13:29   ` Nicolae Rosia
2015-07-01 13:44     ` Eric Dumazet
2015-07-01 14:29       ` Nicolae Rosia
2015-07-01 15:33         ` Eric Dumazet
2015-07-01 15:53           ` Nicolae Rosia
2015-07-01 16:19             ` Eric Dumazet
2015-07-01 17:06   ` Joe Perches
2015-07-01 22:13     ` Eric Dumazet
2015-07-01 23:00       ` Joe Perches
2015-07-03 16:18       ` David Laight
2015-07-03 16:39         ` Eric Dumazet
2015-07-06  8:54           ` David Laight

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).