#define ETH_FCS_LEN 4
#define AG71XX_DRV_NAME "ag71xx"
-#define AG71XX_DRV_VERSION "0.5.34"
+#define AG71XX_DRV_VERSION "0.5.35"
#define AG71XX_NAPI_WEIGHT 64
#define AG71XX_OOM_REFILL (1 + HZ/10)
{
struct sk_buff *copy_skb;
+ if (ag->phy_dev && (ag->phy_dev->pkt_align % 4) == 2)
+ goto keep;
+
copy_skb = netdev_alloc_skb(ag->dev, pktlen + NET_IP_ALIGN);
if (!copy_skb)
return -ENOMEM;
*pskb = copy_skb;
return 0;
+
+ keep:
+ skb_put(*pskb, pktlen);
+ return 0;
}
static int ag71xx_rx_packets(struct ag71xx *ag, int limit)