Skip to content

Commit f42afcd

Browse files
P33Mpopcornmix
P33M
authored andcommitted
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.
1 parent a9e36b8 commit f42afcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/lan78xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3248,7 +3248,7 @@ static int rx_submit(struct lan78xx_net *dev, struct urb *urb, gfp_t flags)
32483248
size_t size = dev->rx_urb_size;
32493249
int ret = 0;
32503250

3251-
skb = netdev_alloc_skb_ip_align(dev->net, size);
3251+
skb = netdev_alloc_skb(dev->net, size);
32523252
if (!skb) {
32533253
usb_free_urb(urb);
32543254
return -ENOMEM;

0 commit comments

Comments
 (0)