projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4677029
)
lan78xx: use default alignment for rx buffers
author
P33M
<p33m@github.com>
Thu, 2 May 2019 10:53:45 +0000
(11:53 +0100)
committer
Dom Cobley
<popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:53 +0000
(16:03 +0000)
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.
drivers/net/usb/lan78xx.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/lan78xx.c
b/drivers/net/usb/lan78xx.c
index
8652407
..
0cf3f00
100644
(file)
--- a/
drivers/net/usb/lan78xx.c
+++ b/
drivers/net/usb/lan78xx.c
@@
-3527,7
+3527,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;