aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mkits-qsdk-ipq-image.sh
diff options
context:
space:
mode:
authorJan Hoffmann <jan@3e8.eu>2022-10-26 00:20:04 +0200
committerSander Vanheule <sander@svanheule.net>2022-10-26 09:59:24 +0200
commit2088e440b1325ca87e4aa30162e7baa03850a37b (patch)
tree54d3c78a62cd1198bd9e3a2c5de5b13a610e2b61 /scripts/mkits-qsdk-ipq-image.sh
parent80a62a675d2ef57a1885e1829926dd2ea1682612 (diff)
downloadupstream-2088e440b1325ca87e4aa30162e7baa03850a37b.tar.gz
upstream-2088e440b1325ca87e4aa30162e7baa03850a37b.tar.bz2
upstream-2088e440b1325ca87e4aa30162e7baa03850a37b.zip
realtek: set up L2 table entries properly
Initialize the data structure using memset to avoid the possibility of writing garbage values to the hardware. Always set a valid entry type, which should fix writing unicast entries on RTL930x. For unicast entries, set the is_static flag to prevent the switch from aging them out. Also set the rvid field for unicast entries. This is not strictly necessary, as the switch fills it in automatically from a non-zero vid. However, this makes the code consistent with multicast entry setup. While at it, reorder the statements and fix some style issues (double space, comma instead of semicolon at end of statement). Also remove the unneeded priv parameter and debug print for the multicast entry setup function. Fixes: cde31976e37 ("realtek: Add support for Layer 2 Multicast") Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Diffstat (limited to 'scripts/mkits-qsdk-ipq-image.sh')
0 files changed, 0 insertions, 0 deletions