diff options
author | Birger Koblitz <git@birger-koblitz.de> | 2021-09-08 20:16:39 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2021-10-09 08:25:06 +0200 |
commit | 9ae927febd4b07e064bdb9eaeb43862ea6c7ac8f (patch) | |
tree | 0525d4125cbbd93eade355321a17e8531f2ee86d /target/linux/ath79/patches-5.4 | |
parent | 28e972b2ea2f55a593defcbd2dc21710cce648c7 (diff) | |
download | upstream-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/ath79/patches-5.4')
0 files changed, 0 insertions, 0 deletions