[][HIGH][kernel][mt7988][eth][Fix software padding processing in Ethernet Tx path]

[Description]
Fix software padding processing in Ethernet Tx path.

  It's found that 20bytes(LLC), 28bytes, and 36bytes(PPP LCP Configuration
Ack) packets with additional 4bytes special tag for dsa driver would lead
to switch Tx CRC error, followed by switch output queue stuck issue.
Therefore, Ethernet driver check skb->len <= 40(36bytes PPP LCP + 4bytes
special tag) and conduct software padding.

  Moreover, skb linearization should be checked again after conduct
software padding.

If without this patch, users might encounter problems when establishing
a PPPoE tunnel.

[Release-log]
N/A

Change-Id: Id28fa3870dc9e905207d95634fe5cd692f363761
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9129634
1 file changed