Skip to content
Commit b6069a95 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

filter: add MOD operation

Add a new ALU opcode, to compute a modulus.

Commit ffe06c17

 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: default avatarEric Dumazet <edumazet@google.com>
Suggested-by: default avatarGeorge 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: default avatarDavid S. Miller <davem@davemloft.net>
parent c6bb8136
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment