Correctly implement the OpenFlow 1.2+ OXM_OF_IP_DSCP field.
authorBen Pfaff <blp@nicira.com>
Thu, 18 Apr 2013 16:40:48 +0000 (09:40 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 18 Apr 2013 16:40:48 +0000 (09:40 -0700)
commit1638b90642cf9046a463d69bf1ea641cc81f66b2
tree9768d8cbc91df3daaa8329c3e273319e5c9cf2ec
parent781d44723705929ba8aea3c39611fe807c453682
Correctly implement the OpenFlow 1.2+ OXM_OF_IP_DSCP field.

NXM puts the DSCP value in bits 2-7 of NXM_OF_IP_TOS.
OXM puts the DSCP value in bits 0-6 of OXM_OF_IP_DSCP.

Before this commit, Open vSwitch incorrectly implemented OXM_OF_IP_DSCP
with the same format as NXM_OF_IP_TOS.  This commit fixes the problem and
adds a test (previously missing but I don't know why).

Reported-by: Hiroshi Miyata <miyahiro.dazu@gmail.com>
Tested-by: Hiroshi Miyata <miyahiro.dazu@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
lib/meta-flow.c
lib/meta-flow.h
lib/nx-match.c
tests/ovs-ofctl.at