kernel_samsung_a53x/drivers/net/ethernet/freescale
Radu Bulie 4d0c62c735 net: fec: correct queue selection
[ Upstream commit 9fc95fe95c3e2a63ced8eeca4b256518ab204b63 ]

The old implementation extracted VLAN TCI info from the payload
before the VLAN tag has been pushed in the payload.

Another problem was that the VLAN TCI was extracted even if the
packet did not have VLAN protocol header.

This resulted in invalid VLAN TCI and as a consequence a random
queue was computed.

This patch fixes the above issues and use the VLAN TCI from the
skb if it is present or VLAN TCI from payload if present. If no
VLAN header is present queue 0 is selected.

Fixes: 52c4a1a85f4b ("net: fec: add ndo_select_queue to fix TX bandwidth fluctuations")
Signed-off-by: Radu Bulie <radu-andrei.bulie@nxp.com>
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:11:49 +01:00
..
dpaa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpaa2 dpaa2-eth: increase the needed headroom to account for alignment 2024-11-18 12:11:10 +01:00
enetc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fman Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
fs_enet Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
fec.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fec_main.c net: fec: correct queue selection 2024-11-18 12:11:49 +01:00
fec_mpc52xx.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
fec_mpc52xx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fec_mpc52xx_phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fec_ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl_pq_mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gianfar.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
gianfar.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gianfar_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ucc_geth.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
ucc_geth.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ucc_geth_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgmac_mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00