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)
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>

No differences found