]> git.baikalelectronics.ru Git - kernel.git/commit
filter: add MOD operation
authorEric Dumazet <edumazet@google.com>
Fri, 7 Sep 2012 22:03:35 +0000 (22:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Sep 2012 19:44:56 +0000 (15:44 -0400)
commit280fbe354f1c328f52831dde4a5a9b6f64bb70a9
tree8d3d2f11385265b3a0a7d03f07d98752b694ed14
parent60b5cf5c13c540c83d3d6dd3292aa8f1884fd8c7
filter: add MOD operation

Add a new ALU opcode, to compute a modulus.

Commit 5a8ada1cfd72d used an ancillary to implement XOR_X,
but here we reserve one of the available ALU opcode to implement both
MOD_X and MOD_K

Signed-off-by: Eric Dumazet <edumazet@google.com>
Suggested-by: George Bakos <gbakos@alpinista.org>
Cc: Jay Schulist <jschlst@samba.org>
Cc: Jiri Pirko <jpirko@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h
net/core/filter.c