Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add+Fix software padding processing in Ethernet Tx path.
Add software padding processing in Ethernet Tx path. It's found that too-short packets would lead to switch Tx CRC error, followed by switch output queue stuck issue. So Ethernet driver should check if the packet is too short and conduct software padding when necessary. If without this patch, switch might encounter output queue stuck issue. Change-Id: Ibd94cbf3be0530d2b9ee61477b0362d099c47d8e Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7109899 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