提交 ab8cdd97 编写于 作者: P P33M 提交者: Zheng Zengkai

lan78xx: use default alignment for rx buffers

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

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.
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 b7552776
......@@ -3161,7 +3161,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册