summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/socionext
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2020-01-15 10:46:45 +0800
committerDavid S. Miller <davem@davemloft.net>2020-01-16 13:18:51 +0100
commit36c67349a1a1c88b9cf11d7ca7762ababdb38867 (patch)
tree0aa79ef052c017bd05b9a375ed7ca7599b850060 /drivers/net/ethernet/socionext
parent1712b2fff8c682d145c7889d2290696647d82dab (diff)
downloadlinux-36c67349a1a1c88b9cf11d7ca7762ababdb38867.tar.gz
linux-36c67349a1a1c88b9cf11d7ca7762ababdb38867.tar.bz2
linux-36c67349a1a1c88b9cf11d7ca7762ababdb38867.zip
net: hns3: pad the short frame before sending to the hardware
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@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/socionext')
0 files changed, 0 insertions, 0 deletions