diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-03-23 19:07:23 (GMT) |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-03-23 22:13:54 (GMT) |
commit | 901ccefb2dd7fe6a9e750a68f990f2a7d76b78d2 (patch) | |
tree | 993c53d43398941533ffc5b84457b33a4f23fee6 /drivers/net/skge.c | |
parent | 15240072ac3ffb67050acd0b71b477c3bb977670 (diff) | |
download | linux-fsl-qoriq-901ccefb2dd7fe6a9e750a68f990f2a7d76b78d2.tar.xz |
[PATCH] skge: align receive buffers
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>
Diffstat (limited to 'drivers/net/skge.c')
-rw-r--r-- | drivers/net/skge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 4eda81d..89a6252 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c @@ -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), |