aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorBirger Koblitz <git@birger-koblitz.de>2021-09-08 20:16:39 +0200
committerJohn Crispin <john@phrozen.org>2021-10-09 08:25:06 +0200
commit9ae927febd4b07e064bdb9eaeb43862ea6c7ac8f (patch)
tree0525d4125cbbd93eade355321a17e8531f2ee86d /target/linux/generic
parent28e972b2ea2f55a593defcbd2dc21710cce648c7 (diff)
downloadupstream-9ae927febd4b07e064bdb9eaeb43862ea6c7ac8f.tar.gz
upstream-9ae927febd4b07e064bdb9eaeb43862ea6c7ac8f.tar.bz2
upstream-9ae927febd4b07e064bdb9eaeb43862ea6c7ac8f.zip
realtek: Fix bug in VLAN ingress and egress filtering
The ingress filter registers use 2 bits for each port to define the filtering state, whereas the egress filter uses 1 bit. So for for the ingress filter the register offset for a given port is: (port >> 4) << 4: since there are 16 entries in a register of 32 bits and for the egress filter: (port >> 5) << 4: since there are 32 entries in a register of 32 bits Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
Diffstat (limited to 'target/linux/generic')
0 files changed, 0 insertions, 0 deletions