[ovs-dev] [PATCH] ofproto-dpif: More efficient implementation of get_odp_port().

Jarno Rajahalme jarno.rajahalme at nsn.com
Wed Jan 9 20:25:14 UTC 2013

On Jan 9, 2013, at 20:30 , ext Ben Pfaff wrote:

> On Wed, Jan 09, 2013 at 02:21:47PM +0200, Jarno Rajahalme wrote:
>> Avoids unnecessary hash bucket traversal (ofproto_get_port()), since we
>> have the ofport_dpif already after odp_port_to_ofport().
>> Signed-off-by: Jarno Rajahalme <jarno.rajahalme at nsn.com>
> Thanks!
> I was able to simplify the test to eliminate the ofproto_dpif_cast()
> call.  I applied the following to master.


There is at least one similar use of ofproto_dpif_cast() that could be eliminated in the same way (odp_port_to_ofp_port()).


More information about the dev mailing list