diff options
author | Sander Vanheule <sander@svanheule.net> | 2022-06-19 10:29:35 +0200 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2022-07-17 10:06:51 +0200 |
commit | 1773264a0c6da099af7f36046f95f0126d6de1eb (patch) | |
tree | 13468c3cf402cd029ab1e7181fca3534edd45635 /package/system/fstools/Makefile | |
parent | 0b35a08a057848d909156604c4391a5d9f1d97e5 (diff) |
realtek: correct egress frame port verification
Destination switch ports for outgoing frame can range from 0 to
CPU_PORT-1.
Refactor the code to only generate egress frame CPU headers when a valid
destination port number is available, and make the code a bit more
consistent between different switch generations. Change the dest_port
argument's type to 'unsigned int', since only positive values are valid.
This fixes the issue where egress frames on switch port 0 did not
receive a VLAN tag, because they are sent out without a CPU header.
Also fixes a potential issue with invalid (negative) egress port numbers
on RTL93xx switches.
Reported-by: Arınç ÜNAL <arinc.unal@xeront.com>
Suggested-by: Birger Koblitz <mail@birger-koblitz.de>
Tested-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'package/system/fstools/Makefile')
0 files changed, 0 insertions, 0 deletions