]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
powerpc/bpf: Introduce __PPC_SH64()
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Wed, 8 Feb 2017 08:57:29 +0000 (14:27 +0530)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 22:33:31 +0000 (15:33 -0700)
commitf0cd824027c5a9cd9850ebf08350fb8e35fc784e
treea17f3e2a4d53260dec8a22e1194424dad58fc777
parent422137c0540eb1402817fa9eb8acc5fab81d6893
powerpc/bpf: Introduce __PPC_SH64()

BugLink: http://bugs.launchpad.net/bugs/1585741
Introduce __PPC_SH64() as a 64-bit variant to encode shift field in some
of the shift and rotate instructions operating on double-words. Convert
some of the BPF instruction macros to use the same.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from linux-next commit c233f5979b3dbb39a5b2473b5fcaf58baec8f1bd)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/net/bpf_jit.h