dpif-netdev: Move hash function out of the recirc action, into its own action
authorAndy Zhou <azhou@nicira.com>
Wed, 9 Apr 2014 01:42:39 +0000 (18:42 -0700)
committerAndy Zhou <azhou@nicira.com>
Wed, 16 Apr 2014 22:30:42 +0000 (15:30 -0700)
commit347bf289b3dc006ca7b95cca26d3e0d3f20fbe95
treecfba5f780ef08d0afe405e11801df2167142fec5
parent40dd413d5b5424eb4cd2e6a8558d33f3b7c607ed
dpif-netdev: Move hash function out of the recirc action, into its own action

Currently recirculation action can optionally compute hash. This patch
adds a hash action that is independent of the recirc action, which
no longer computes hash.  For megaflow bond with recirc, the output
to a bond port action will look like:

    hash(hash_l4(0)), recirc(<recirc_id>)

Obviously, when a recirculation application that does not depend on
hash value can just use the recirc action alone.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Reviewed-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Acked-by: Pravin B Shelar <pshelar@nicira.com
include/linux/openvswitch.h
lib/dpif-netdev.c
lib/dpif.c
lib/odp-execute.c
lib/odp-util.c
ofproto/ofproto-dpif-xlate.c