From: P33M Date: Thu, 2 May 2019 10:53:45 +0000 (+0100) Subject: lan78xx: use default alignment for rx buffers X-Git-Tag: accepted/tizen/unified/20191111.065916~670 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a53877cb73849efee751683bbb2820681143deee;p=platform%2Fkernel%2Flinux-rpi.git lan78xx: use default alignment for rx buffers The lan78xx uses a 12-byte hardware rx header, so there is no need to allocate SKBs with NET_IP_ALIGN set. Removes alignment faults in both dwc_otg and in ipv6 processing. --- diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 3387f44..14f206a 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -3250,7 +3250,7 @@ static int rx_submit(struct lan78xx_net *dev, struct urb *urb, gfp_t flags) size_t size = dev->rx_urb_size; int ret = 0; - skb = netdev_alloc_skb_ip_align(dev->net, size); + skb = netdev_alloc_skb(dev->net, size); if (!skb) { usb_free_urb(urb); return -ENOMEM;