From: Markos Chandras Date: Mon, 23 Jun 2014 09:38:49 +0000 (+0100) Subject: MIPS: bpf: Use 'andi' instead of 'and' for the VLAN cases X-Git-Tag: omap-for-v3.17/soc-cleanup~35^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ee1606e8a6316287029c86ef48ddcfe4dec595d;p=pandora-kernel.git MIPS: bpf: Use 'andi' instead of 'and' for the VLAN cases The VLAN_VID_MASK and VLAN_TAG_PRESENT are immediates, so using 'and' which expects 3 registers will produce wrong results. Fix this by using the 'andi' instruction. 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/7124/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed