aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorToshiaki Makita <[email protected]>2013-10-16 08:07:15 +0000
committerDavid S. Miller <[email protected]>2013-10-18 20:02:53 +0000
commitd1c6c708c4da9d104e0b7c116654cb449bff9b5f (patch)
treea5e02f92b9491d1eb7be0b6b52b78ff3af16484c /net/unix/af_unix.c
parentbridge: Apply the PVID to priority-tagged frames (diff)
downloadkernel-d1c6c708c4da9d104e0b7c116654cb449bff9b5f.tar.gz
kernel-d1c6c708c4da9d104e0b7c116654cb449bff9b5f.zip
bridge: Fix the way the PVID is referenced
We are using the VLAN_TAG_PRESENT bit to detect whether the PVID is set or not at br_get_pvid(), while we don't care about the bit in adding/deleting the PVID, which makes it impossible to forward any incomming untagged frame with vlan_filtering enabled. Since vid 0 cannot be used for the PVID, we can use vid 0 to indicate that the PVID is not set, which is slightly more efficient than using the VLAN_TAG_PRESENT. Fix the problem by getting rid of using the VLAN_TAG_PRESENT. Signed-off-by: Toshiaki Makita <[email protected]> Reviewed-by: Vlad Yasevich <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions