Re: [ovs-dev] [RFC recirc fix] recirculation: Map recirc_id to ofproto_dpif.

2014-12-20 Thread Alex Wang
Thx Andy for the review, Please see my reply below, > + * When recirc_id is set in 'flow', checks whether the ofproto_dpif that > > + * corresponds to the recirc_id is same as the receiving bridge. If > they are > > + * the same, uses the 'ofproto' and keeps the 'ofp_in_port' as assigned. > > +

Re: [ovs-dev] [RFC recirc-fix] recirculation: Do not change handling of packets after recirculation.

2014-12-20 Thread Alex Wang
Hey Yamamoto, Sorry for this delayed reply, Your concern is valid. We will need to discuss it more the coming week, For a correct fix that covers all cases, we are thinking about making userspace restore the flow format of pre-recirc pkt so that the miss handling of the recirc pkts could go thr

[ovs-dev] [per-pmd ftb/cls V2 3/3] dpif-netdev: Add per-pmd flow-table/classifier.

2014-12-20 Thread Alex Wang
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

[ovs-dev] [per-pmd ftb/cls V2 1/3] dpif-netdev: Add function to get pmd using core id.

2014-12-20 Thread Alex Wang
This commit adds the function dp_netdev_get_pmd() which allows users to get 'struct dp_netdev_pmd_thread' based on the core id. Signed-off-by: Alex Wang --- PATCH->V2: - rebase to master. --- lib/dpif-netdev.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/

[ovs-dev] [per-pmd ftb/cls V2 2/3] ovs-numa: Refine the module.

2014-12-20 Thread Alex Wang
This commit refines the ovs-numa module by eliminating duplicated codes and exposing API for dumping the cores on numa node. Signed-off-by: Alex Wang --- PATCH -> V2: - refine the ovs-numa module to eliminate duplicate code. - expose API for dumping cores. - rebase to master. --- lib/ovs-numa.c