1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 2018 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 This file defines QoS record and mark API messages which are generally
20 called through a shared memory interface.
23 option version = "1.0.0";
27 QOS_API_SOURCE_EXT = 0,
28 QOS_API_SOURCE_VLAN = 1,
29 QOS_API_SOURCE_MPLS = 2,
30 QOS_API_SOURCE_IP = 3,
33 /** \brief Enable/Disable QoS recording
34 The QoS bits from the packet at the specified input layer are copied
35 into the packet. Recording should be used in conjunction with marking
36 @param sw_if_index - The interface on which recording is enabled.
37 @param enable - enable=1 or disable the feature
38 @param input_source - The input source/layer at which the QoS bits
39 are copied from the packet. See qos_source_t.
41 autoreply define qos_record_enable_disable
46 vl_api_qos_source_t input_source;
50 /** \brief A row within a QoS map
51 Each value translates from an input value to an output.
53 typeonly define qos_egress_map_row
58 /** \brief Update a QoS Map
59 A QoS map, translates from the QoS value in the packet set by the 'record'
60 feature, to the value used for output in the 'mark' feature.
61 There is one row in the map for each input/record source.
62 The MAP is then applied to the egress interface at for a given output source
63 @param map_id - client provided identifier for the map
64 @param rows - one row (per-input source) of output values
66 autoreply define qos_egress_map_update
71 vl_api_qos_egress_map_row_t rows[4];
74 /** \brief Delete a Qos Map
75 @param map_id - ID of the map to delete
77 autoreply define qos_egress_map_delete
84 /** \brief Enable/Disable QoS marking
85 The QoS bits from the packet are mapped (using the desired egress map)
86 into the header of the 'output-source'. Marking should be used in
87 conjunction with recording
88 @param sw_if_index - The interface on which recording is enabled.
89 @param enable - enable=1 or disable the feature
90 @param output_source - The output source/layer at which the QoS bits
91 are written into the packet. See qos_source_t.
92 @param map_id - The ID of the MAP in which the translation from input
93 to output is performed.
95 autoreply define qos_mark_enable_disable
101 vl_api_qos_source_t output_source;
107 * eval: (c-set-style "gnu")