net: stmmac: Offload queueMaxSDU from tc-taprio
authorRohan G Thomas <rohan.g.thomas@intel.com>
Sat, 27 Jan 2024 04:04:41 +0000 (12:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jan 2024 12:24:06 +0000 (12:24 +0000)
commitc5c3e1bfc9e0ee72af528df8d773980f4855938a
treef84dec504364ec244252511b78fb5fea16f1a189
parent57bf3dd2fe91aa144d2c8f53b02dc4e65c9b1135
net: stmmac: Offload queueMaxSDU from tc-taprio

Add support for configuring queueMaxSDU. As DWMAC IPs doesn't support
queueMaxSDU table handle this in the SW. The maximum 802.3 frame size
that is allowed to be transmitted by any queue is queueMaxSDU +
16 bytes (i.e. 6 bytes SA + 6 bytes DA + 4 bytes FCS).

Inspired from intel i225 driver.

Signed-off-by: Rohan G Thomas <rohan.g.thomas@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
include/linux/stmmac.h