mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
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.
This commit is contained in:
@@ -3248,7 +3248,7 @@ static int rx_submit(struct lan78xx_net *dev, struct urb *urb, gfp_t flags)
|
|||||||
size_t size = dev->rx_urb_size;
|
size_t size = dev->rx_urb_size;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
skb = netdev_alloc_skb_ip_align(dev->net, size);
|
skb = netdev_alloc_skb(dev->net, size);
|
||||||
if (!skb) {
|
if (!skb) {
|
||||||
usb_free_urb(urb);
|
usb_free_urb(urb);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|||||||
Reference in New Issue
Block a user