From: Markos Chandras Date: Mon, 23 Jun 2014 09:38:52 +0000 (+0100) Subject: MIPS: bpf: Use correct mask for VLAN_TAG case X-Git-Tag: omap-for-v3.16/fixes-rc4~42^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e86c59d4d0d04e7ebefd05b8af245c968892f81;p=pandora-kernel.git MIPS: bpf: Use correct mask for VLAN_TAG case Using VLAN_VID_MASK is not correct to get the vlan tag. Use ~VLAN_PRESENT_MASK instead and make sure it's u16 so the top 16-bits will be removed. This will ensure that the emit_andi() code will not treat this as a big 32-bit unsigned value. Signed-off-by: Markos Chandras Cc: David S. Miller Cc: Daniel Borkmann Cc: Alexei Starovoitov Cc: netdev@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7127/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed