[PATCH] skge: align receive buffers
authorStephen Hemminger <shemminger@osdl.org>
Thu, 23 Mar 2006 19:07:23 +0000 (11:07 -0800)
committerJeff Garzik <jeff@garzik.org>
Thu, 23 Mar 2006 22:13:54 +0000 (17:13 -0500)
The skge driver aligns the header on the initial receive buffers, but
but doesn't on followon receive buffer allocations.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/skge.c

index 4eda81d41b103e97e91af69950db9ca8512832f2..89a6252ac7cc16aab6feba45ac0cb9a2e1515425 100644 (file)
@@ -2155,7 +2155,7 @@ static int skge_up(struct net_device *dev)
                printk(KERN_INFO PFX "%s: enabling interface\n", dev->name);
 
        if (dev->mtu > RX_BUF_SIZE)
-               skge->rx_buf_size = dev->mtu + ETH_HLEN + NET_IP_ALIGN;
+               skge->rx_buf_size = dev->mtu + ETH_HLEN;
        else
                skge->rx_buf_size = RX_BUF_SIZE;
 
@@ -2611,6 +2611,7 @@ static inline struct sk_buff *skge_rx_get(struct skge_port *skge,
                if (!nskb)
                        goto resubmit;
 
+               skb_reserve(nskb, NET_IP_ALIGN);
                pci_unmap_single(skge->hw->pdev,
                                 pci_unmap_addr(e, mapaddr),
                                 pci_unmap_len(e, maplen),