Skip to content

Commit

Permalink
lan78xx: use default alignment for rx buffers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
P33M authored and popcornmix committed May 21, 2019
1 parent 87ea867 commit e2dccdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/usb/lan78xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3249,7 +3249,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;
Expand Down

0 comments on commit e2dccdc

Please sign in to comment.