LF-3811 net: fec: fix TX Bandwidth Fluctuations
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Fri, 14 May 2021 08:52:44 +0000 (16:52 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 27 May 2021 04:56:21 +0000 (12:56 +0800)
commit899a61cb3b914815387f109ff34b7bf80330e986
tree6a3ef56c35486503a0ff16d65e2233fc7ab3f471
parent6f6142d95f6321c3e9bc65393d272234a8c96038
LF-3811 net: fec: fix TX Bandwidth Fluctuations

MAC-NET IP with AVB support, queue 0 for best-effor, and queue 1&2 for AVB.
The default bandwidth configured of queue 1&2 is 50% in the driver, which
leads to TX bandwidth fluctuations when selecting queue 1&2 for transmitting
packets. Select queue based on VLAN info when AVB enabled.

Commit da722186f654 ("net: fec: set GPR bit on suspend by DT configuration.")
refactor the fec_devtype, need adjust downstream code accordingly.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
drivers/net/ethernet/freescale/fec_main.c