1 .TH "actions in tc" 8 "1 Aug 2017" "iproute2" "Linux"
4 actions \- independently defined actions in tc
11 .BR add " | " change " | " replace
59 .I ACTNAMESPEC INDEXSPEC
85 .IR immediate " | " delayed " | " disabled " }"
92 may be any valid action type: gact, mirred, bpf, connmark, csum, police, etc.
95 Time since last update.
99 .IR reclassify " | " pipe " | " drop " | " continue " | " ok
103 These are the options that are specific to
105 and not only the options. Refer to
107 for more information.
116 allows a user to define actions independently of a classifier (filter). These
117 actions can then be assigned to one or more filters, with any
118 packets matching the classifier's criteria having that action performed
121 Each action type (mirred, police, etc.) will have its own table to store
127 Create a new action in that action's table.
133 Make modifications to an existing action.
136 Display the action with the specified index value. When combined with the
140 display the statistics for that action.
143 Delete the action with the specified index value. If the action is already
144 associated with a classifier, it does not delete the classifier.
149 List all the actions in the specified table. When combined with the
153 display the statistics for all actions in the specified table.
154 When combined with the option
156 allows doing a millisecond time-filter since the last time an
157 action was used in the datapath.
160 Delete all actions stored in the specified table.
163 Note that these options are available to all action types.
166 Specify the table index value of an action.
168 is a 32-bit value that is unique to the specific type of action referenced.
172 .BR add ", " change ", and"
174 operations, the index is
176 When adding a new action,
177 specifying an index value will assign the action to that index unless that
178 index value has already been assigned. Omitting the index value for an add
179 operation will cause the kernel to assign a value to the new action.
184 .BR get " and " delete
185 operations, the index is
187 to identify the specific action to be displayed or deleted.
192 In addition to the specific action, mark the matching packet with the value
197 is a 128-bit value that will not be interpreted by the kernel whatsoever.
198 As such, it can be used as a correlating value for maintaining user state.
199 The value to be stored is completely arbitrary and does not require a specific
200 format. It is stored inside the action structure itself.
204 Action-specific flags. Currently, the only supported flag is
206 which indicates that action is expected to have minimal software data-path
207 traffic and doesn't need to allocate stat counters with percpu allocator.
208 This option is intended to be used by hardware-offloaded actions.
211 .BI hw_stats " HW_STATS"
212 Specifies the type of HW stats of new action. If omitted, any stats counter type
213 is going to be used, according to driver and its resources.
216 indicates the type. Any of the following are valid:
220 Means that in dump, user gets the current HW stats state from the device
221 queried at the dump time.
224 Means that in dump, user gets HW stats that might be out of date for
225 some time, maybe couple of seconds. This is the case when driver polls
226 stats updates periodically or when it gets async stats update
230 No HW stats are going to be available in dump.
235 When dumping large number of actions, a millisecond time-filter can be
240 is a millisecond count since last time a packet hit the action.
241 As an example specifying "since 20000" implies to dump all actions
242 that have seen packets in the last 20 seconds. This option is useful
243 when the kernel has a large number of actions and you are only interested
244 in recently used actions.
252 should proceed after executing the action. Any of the following are valid:
256 Restart the classifiction by jumping back to the first filter attached to
260 Continue with the next action. This is the default control.
263 Drop the packed without running any further actions.
266 Continue the classification with the next filter.
269 Return to the calling qdisc for packet processing, and end classification of
286 .BR tc-tunnel_key (8),