diff options
| author | Justin Pettit <jpettit@nicira.com> | 2009-11-11 14:59:49 -0800 |
|---|---|---|
| committer | Justin Pettit <jpettit@nicira.com> | 2010-02-20 02:22:26 -0800 |
| commit | 959a2ecdc8a5ffe53e74456ff6eb1ec25092db75 (patch) | |
| tree | d7f7759d577a14c00c0e255e2403a4ecd1f4534d /lib/odp-util.c | |
| parent | 2f6d344525463ebe52f6bbd0e9a4cc22e33dacbe (diff) | |
| download | openvswitch-959a2ecdc8a5ffe53e74456ff6eb1ec25092db75.tar.gz | |
ofproto: Match VLAN PCP and rewrite ToS bits (OpenFlow 0.9)
Starting in OpenFlow 0.9, it is possible to match on the VLAN PCP
(priority) field and rewrite the IP ToS/DSCP bits. This check-in
provides that support and bumps the wire protocol number to 0x98.
NOTE: The wire changes come together over the set of OpenFlow 0.9 commits,
so OVS will not be OpenFlow-compatible with any official release between
this commit and the one that completes the set.
Diffstat (limited to 'lib/odp-util.c')
| -rw-r--r-- | lib/odp-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/odp-util.c b/lib/odp-util.c index a80016209..87ac92b82 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -80,6 +80,9 @@ format_odp_action(struct ds *ds, const union odp_action *a) ds_put_format(ds, "set_nw_dst("IP_FMT")", IP_ARGS(&a->nw_addr.nw_addr)); break; + case ODPAT_SET_NW_TOS: + ds_put_format(ds, "set_nw_tos(%"PRIu8")", a->nw_tos.nw_tos); + break; case ODPAT_SET_TP_SRC: ds_put_format(ds, "set_tp_src(%"PRIu16")", ntohs(a->tp_port.tp_port)); break; |
