diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-07-16 15:30:09 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-07-20 11:22:36 -0700 |
| commit | c4d279ab34078ff68fde5ac7b0f18a80803351ab (patch) | |
| tree | 36cd9de0e0d6c4ea43e831de7055a9fadcf26dcd /lib/ofp-print.c | |
| parent | 611e9a356216458cda51139c3020a2b8814726ce (diff) | |
| download | openvswitch-c4d279ab34078ff68fde5ac7b0f18a80803351ab.tar.gz | |
Add pretty-printers for QoS related OpenFlow and ODP actions.
Diffstat (limited to 'lib/ofp-print.c')
| -rw-r--r-- | lib/ofp-print.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 7c1ebd006..c7130607f 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -313,6 +313,20 @@ ofp_print_action(struct ds *string, const struct ofp_action_header *ah, break; } + case OFPAT_ENQUEUE: { + struct ofp_action_enqueue *ea = (struct ofp_action_enqueue *)ah; + unsigned int port = ntohs(ea->port); + unsigned int queue_id = ntohl(ea->queue_id); + ds_put_format(string, "enqueue:"); + if (port != OFPP_IN_PORT) { + ds_put_format(string, "%u", port); + } else { + ds_put_cstr(string, "IN_PORT"); + } + ds_put_format(string, "q%u", queue_id); + break; + } + case OFPAT_SET_VLAN_VID: { struct ofp_action_vlan_vid *va = (struct ofp_action_vlan_vid *)ah; ds_put_format(string, "mod_vlan_vid:%"PRIu16, ntohs(va->vlan_vid)); |
