Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. Change-Id: Id28fa3870dc9e905207d95634fe5cd692f363761 Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9129634 frank-w: changed condition to MTK_MIN_TX_LENGTH
- Loading branch information