]> 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)
commit94e3038c67c95b13eadf1ed8af5eea16dc33163e
treecf48802982784b6b60c31aaea3965438bed8bbd8
parentf6714b05ef056bd4a321773d574ea4a7da45caaa
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