]> git.proxmox.com Git - mirror_ovs.git/commit - lib/dpctl.c
dpif-netdev: Add per-pmd flow-table/classifier.
authorAlex Wang <alexw@nicira.com>
Mon, 13 Oct 2014 01:18:47 +0000 (18:18 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 30 Dec 2014 19:47:30 +0000 (11:47 -0800)
commit1c1e46ed8457fae3621e3ec1a9ac487f20a39561
tree18bc9d06060225a6281c747737dda6d4c20fd34d
parent9da2564e2bfa4ffc5a05552630ce2aca00a521c9
dpif-netdev: Add per-pmd flow-table/classifier.

This commit changes the per dpif-netdev datapath flow-table/
classifier to per pmd-thread.  As direct benefit, datapath
and flow statistics no longer need to be protected by mutex
or be declared as per-thread variable, since they are only
written by the owning pmd thread.

As side effects, the flow-dump output of userspace datapath
can contain overlapping flows.  To reduce confusion, the dump
from different pmd thread will be separated by a title line.
In addition, the flow operations via 'ovs-appctl dpctl/*'
are modified so that if the given flow in_port corresponds
to a dpdk interface, the operation will be conducted to all
pmd threads recv from that interface (expect for flow-get
which will always be applied to non-pmd threads).

Signed-off-by: Alex Wang <alexw@nicira.com>
Tested-by: Mark D. Gray <mark.d.gray@intel.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/dpctl.c
lib/dpif-netdev.c
lib/dpif-netlink.c
lib/dpif.c
lib/dpif.h
ofproto/ofproto-dpif-upcall.c
tests/ofproto-dpif.at