dpif: Abstract translation from OpenFlow queue ID into ODP priority value.
authorBen Pfaff <blp@nicira.com>
Tue, 20 Jul 2010 18:23:21 +0000 (11:23 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 20 Jul 2010 18:23:21 +0000 (11:23 -0700)
commitaae51f53358dc7946f7f09a88b1e0dd40306a99a
tree05e8ada3ad261b872bc9c1b62eedff62d91214f2
parentc4d279ab34078ff68fde5ac7b0f18a80803351ab
dpif: Abstract translation from OpenFlow queue ID into ODP priority value.

When the QoS code was integrated, I didn't yet know how to abstract the
translation from a queue ID in an OpenFlow OFPAT_ENQUEUE action into a
priority value for an ODP ODPAT_SET_PRIORITY action.  This commit is a
first attempt that works OK for Linux, so far.  It's possible that in fact
this translation needs the 'netdev' as an argument too, but it's not needed
yet.
lib/dpif-linux.c
lib/dpif-netdev.c
lib/dpif-provider.h
lib/dpif.c
lib/dpif.h
ofproto/ofproto.c