difos/target/linux
Sander Vanheule 0b35a08a05 realtek: correct egress frame priority assignment
Priority values passed to the egress (TX) frame header initialiser are
invalid when smaller than 0, and should not be assigned to the frame.
Queue assignment is then left to the switch core logic.

Current code for RTL83xx forces the passed priority value to be
positive, by always masking it to the lower bits, resulting in the
priority always being set and enabled. RTL93xx code doesn't even check
the value and unconditionally assigns the (32 bit) value to the (5 bit)
QID field without masking.

Fix priority assignment by only setting the AS_QID/AS_PRI flag when a
valid value is passed, and properly mask the value to not overflow the
QID/PRI field.

For RTL839x, also assign the priority to the right part of the frame
header. Counting from the leftmost bit, AS_PRI and PRI are in bits 36
and 37-39. The means they should be assigned to the third 16 bit value,
containing bits 32-47.

Tested-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2022-07-17 10:06:46 +02:00
..
apm821xx kernel: bump 5.10 to 5.10.127 2022-06-29 23:38:47 +02:00
archs38 generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
armvirt generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
at91 kernel: bump 5.10 to 5.10.121 2022-06-27 00:57:15 +02:00
ath25 generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
ath79 ath79: fix Tx cleanup when NAPI poll budget is zero 2022-07-14 12:51:16 +02:00
bcm27xx bcm27xx: update patch to fix build 2022-07-11 23:39:13 +01:00
bcm47xx kernel: bump 5.10 to 5.10.124 2022-06-27 00:57:15 +02:00
bcm53xx bcm53xx: add support for Meraki MR26 2022-07-15 15:21:44 +02:00
bcm63xx kernel: bump 5.15 to 5.15.46 2022-06-27 00:57:16 +02:00
bcm4908 generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
bmips generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
gemini generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
generic generic: fix warning orphan section from module exports in aarch64 2022-07-14 07:15:35 +02:00
imx imx: keep common kernel symbols in target's config 2022-07-11 14:28:09 +02:00
ipq40xx ipq-wifi: drop upstreamed board-2.bin 2022-07-15 15:21:44 +02:00
ipq806x generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
kirkwood generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
lantiq lantiq: dts: td-w8980: Remove duplicate PCI properties 2022-06-27 00:57:16 +02:00
layerscape kernel: cut broken SPI_NOR 4K eraseblock LIMIT patch 2022-06-29 12:34:49 +02:00
malta generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
mediatek mediatek: mt7622: add linux-next tag to bpi-wps-button fix 2022-07-14 08:35:55 +02:00
mpc85xx kernel: bump 5.10 to 5.10.122 2022-06-27 00:57:15 +02:00
mvebu mvebu: cortexa72: fix ImageBuilder for IEI Puzzle devices 2022-07-04 18:36:09 +01:00
mxs generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
octeon octeon: add support for Ubiquiti UniFi Security Gateway 2022-06-24 23:59:14 +02:00
octeontx generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
omap generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
oxnas kernel: bump 5.10 to 5.10.121 2022-06-27 00:57:15 +02:00
pistachio kernel: backport mtd dynamic partition patch 2022-07-08 10:19:58 +02:00
qoriq qoriq: enable Book-E Watchdog Timer 2022-07-01 16:26:51 +03:00
ramips kernel: bump 5.15 to 5.15.53 2022-07-11 00:50:18 +02:00
realtek realtek: correct egress frame priority assignment 2022-07-17 10:06:46 +02:00
rockchip rockchip: reliably distribute net interrupts 2022-07-07 13:13:26 +02:00
sunxi generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
tegra generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
uml generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
x86 x86: 64: Add kmod-igc to default packages 2022-06-29 00:57:57 +02:00
zynq generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-24 17:10:24 +02:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00