]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: bpf: Use correct mask while accessing the VLAN tag
authorDenis Kirjanov <kda@linux-powerpc.org>
Wed, 25 Jun 2014 17:34:56 +0000 (21:34 +0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jun 2014 23:14:12 +0000 (16:14 -0700)
commitf1831a0df87a2cf19be2de5499293c6d618419c9
treecf48802982784b6b60c31aaea3965438bed8bbd8
parentd214c67ab882fcf11fa8c8716d97ffc4d8d9d8d5
powerpc: bpf: Use correct mask while accessing the VLAN tag

To get a full tag (and not just a VID) we should access the TCI
except the VLAN_TAG_PRESENT field (which means that 802.1q header
is present). Also ensure that the VLAN_TAG_PRESENT stay on its place

Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/powerpc/net/bpf_jit_comp.c