1 --- a/drivers/net/ar2313/ar2313.c
2 +++ b/drivers/net/ar2313/ar2313.c
3 @@ -841,6 +841,7 @@ static void ar2313_load_rx_ring(struct n
4 for (i = 0; i < nr_bufs; i++) {
7 + int offset = RX_OFFSET;
11 @@ -862,7 +863,9 @@ static void ar2313_load_rx_ring(struct n
12 * Make sure IP header starts on a fresh cache line.
15 - skb_reserve(skb, RX_OFFSET);
17 + offset += sp->phy_dev->pkt_align;
18 + skb_reserve(skb, offset);
19 sp->rx_skb[idx] = skb;
21 rd = (ar2313_descr_t *) & sp->rx_ring[idx];
22 @@ -953,6 +956,7 @@ static int ar2313_rx_int(struct net_devi
23 /* alloc new buffer. */
24 skb_new = dev_alloc_skb(AR2313_BUFSIZE + RX_OFFSET + 128);
25 if (skb_new != NULL) {
28 skb = sp->rx_skb[idx];
30 @@ -960,13 +964,17 @@ static int ar2313_rx_int(struct net_devi
31 ((status >> DMA_RX_LEN_SHIFT) & 0x3fff) - CRC_LEN);
33 dev->stats.rx_bytes += skb->len;
34 - skb->protocol = eth_type_trans(skb, dev);
36 /* pass the packet to upper layers */
43 - skb_reserve(skb_new, RX_OFFSET + 32);
44 + offset = RX_OFFSET + 32;
46 + offset += sp->phy_dev->pkt_align;
47 + skb_reserve(skb_new, offset);
48 /* reset descriptor's curr_addr */
49 rxdesc->addr = virt_to_phys(skb_new->data);
51 @@ -1392,6 +1400,8 @@ static int ar2313_mdiobus_probe (struct
52 return PTR_ERR(phydev);
55 + sp->rx = phydev->netif_rx;
57 /* mask with MAC supported features */
58 phydev->supported &= (SUPPORTED_10baseT_Half
59 | SUPPORTED_10baseT_Full
60 --- a/drivers/net/ar2313/ar2313.h
61 +++ b/drivers/net/ar2313/ar2313.h
62 @@ -107,6 +107,8 @@ typedef struct {
64 struct ar2313_private {
65 struct net_device *dev;
66 + int (*rx)(struct sk_buff *skb);