linux-mips
[Top] [All Lists]

[PATCH 3/3] bcm63xx: use NET_IP_ALIGN

To: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 3/3] bcm63xx: use NET_IP_ALIGN
From: Maxime Bizon <mbizon@freebox.fr>
Date: Wed, 3 Jun 2009 01:47:37 +0200
Cc: Florian Fainelli <florian@openwrt.org>, Maxime Bizon <mbizon@freebox.fr>
In-reply-to: <1243986457-27088-1-git-send-email-mbizon@freebox.fr>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1243986457-27088-1-git-send-email-mbizon@freebox.fr>
Sender: linux-mips-bounce@linux-mips.org
Replace hardcoded 2 with NET_IP_ALIGN.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 drivers/net/bcm63xx_enet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/bcm63xx_enet.c b/drivers/net/bcm63xx_enet.c
index 322ed03..660ffa2 100644
--- a/drivers/net/bcm63xx_enet.c
+++ b/drivers/net/bcm63xx_enet.c
@@ -320,7 +320,7 @@ static int bcm_enet_receive_queue(struct net_device *dev, 
int budget)
                if (len < copybreak) {
                        struct sk_buff *nskb;
 
-                       nskb = netdev_alloc_skb(dev, len + 2);
+                       nskb = netdev_alloc_skb(dev, len + NET_IP_ALIGN);
                        if (!nskb) {
                                /* forget packet, just rearm desc */
                                priv->stats.rx_dropped++;
-- 
1.6.0.4


<Prev in Thread] Current Thread [Next in Thread>