Re: [PATCH net] net: hns3: pad the short frame before sending to the hardware

From: David Miller
Date: Thu Jan 16 2020 - 07:26:23 EST


From: Huazhong Tan <tanhuazhong@xxxxxxxxxx>
Date: Wed, 15 Jan 2020 10:46:45 +0800

> From: Yunsheng Lin <linyunsheng@xxxxxxxxxx>
>
> The hardware can not handle short frames below or equal to 32
> bytes according to the hardware user manual, and it will trigger
> a RAS error when the frame's length is below 33 bytes.
>
> This patch pads the SKB when skb->len is below 33 bytes before
> sending it to hardware.
>
> Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
> Signed-off-by: Yunsheng Lin <linyunsheng@xxxxxxxxxx>
> Signed-off-by: Huazhong Tan <tanhuazhong@xxxxxxxxxx>

Applied and queued up for -stable.