drivers/net/airoha_eth: enable hw padding of short tx packets
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Wed, 9 Jul 2025 09:28:10 +0000 (12:28 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 15 Jul 2025 15:56:01 +0000 (09:56 -0600)
commit0e59a2ca9d29da7e87de2089bbeb77cdc9e927b2
treeb3f0fe43bc37d66082c1d79212611c63be907dcc
parent997786bbf473b3567bea5fa7ead21a8a9299c2ee
drivers/net/airoha_eth: enable hw padding of short tx packets

Transmission of short packets does not work good for XFI (GDM2) and
HSGMII (GDM3) interfaces. The issue can be solved with:

 - padding of short packets to 60 bytes
 - setting of PAD_EN bit in the corresponding REG_GDM_FWD_CFG(n)
   register.

The issue should present for the lan switch (GDM1) as well, but it does
does not appear due to unknown reason.

This patch set PAD_EN bit for the used GDM.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
drivers/net/airoha_eth.c