Comment 1 for bug 1860320

Revision history for this message
Taihsiang Ho (tai271828) wrote :

The patch has been in ubuntu focal

commit 0e282454804fc4d1de2ae6847d292da6b67f45c1
Author: Yunsheng Lin <email address hidden>
Date: Wed Jan 15 10:46:45 2020 +0800

    net: hns3: pad the short frame before sending to the hardware

    BugLink: https://bugs.launchpad.net/bugs/1861090

    [ Upstream commit 36c67349a1a1c88b9cf11d7ca7762ababdb38867 ]

    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 <email address hidden>
    Signed-off-by: Huazhong Tan <email address hidden>
    Signed-off-by: David S. Miller <email address hidden>
    Signed-off-by: Greg Kroah-Hartman <email address hidden>
    Signed-off-by: Paolo Pisati <email address hidden>