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)
commitb6069a95706ca5738be3f5d90fd286cbd13ac695
tree8d3d2f11385265b3a0a7d03f07d98752b694ed14
parentc6bb8136c95ce16545f8c4028e958c0ee6c86f23
filter: add MOD operation

Add a new ALU opcode, to compute a modulus.

Commit ffe06c17afbbb 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