dpif: Pass flow parameter to dpif_execute().
authorDaniele Di Proietto <diproiettod@vmware.com>
Wed, 18 May 2016 01:26:02 +0000 (18:26 -0700)
committerDaniele Di Proietto <diproiettod@vmware.com>
Fri, 20 May 2016 18:08:15 +0000 (11:08 -0700)
commit1cceb31bc14a15b04bfea3bc36424f8eefb9033a
treefd3a144c250684acd37ec94e5d0d4eb64c1dbe6d
parent362ad4ba31098391b0f582db70f5afeb3a7cfdee
dpif: Pass flow parameter to dpif_execute().

All the callers of the function already have a copy of the extracted
flow in their stack (or a few frames before).

This is useful for different resons:
* It forces the callers to also call flow_extract() on the packet, which
  is necessary to initialize the l2,l3,l4 pointers.
* It will be used in the userspace datapath to generate the RSS hash by
  a following commit
* It can be used by the userspace connection tracker to avoid extracting
  the l3 type again.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/dpif.c
lib/dpif.h
ofproto/ofproto-dpif-upcall.c
ofproto/ofproto-dpif.c