Damjan Marion | 2231150 | 2016-10-28 20:30:15 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015 Cisco and/or its affiliates. |
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at: |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
| 15 | |
Damjan Marion | 7dc4146 | 2016-11-15 19:47:58 +0100 | [diff] [blame] | 16 | #include <vnet/vnet.h> |
Damjan Marion | 51327ac | 2016-11-09 11:59:42 +0100 | [diff] [blame] | 17 | #include <vnet/devices/devices.h> |
Damjan Marion | 2231150 | 2016-10-28 20:30:15 +0200 | [diff] [blame] | 18 | #include <vnet/feature/feature.h> |
Damjan Marion | 7dc4146 | 2016-11-15 19:47:58 +0100 | [diff] [blame] | 19 | #include <vnet/ip/ip.h> |
| 20 | #include <vnet/ethernet/ethernet.h> |
Damjan Marion | 2231150 | 2016-10-28 20:30:15 +0200 | [diff] [blame] | 21 | |
Damjan Marion | b3bb101 | 2017-02-28 21:55:28 +0100 | [diff] [blame] | 22 | vnet_device_main_t vnet_device_main; |
| 23 | |
Damjan Marion | 51327ac | 2016-11-09 11:59:42 +0100 | [diff] [blame] | 24 | static uword |
| 25 | device_input_fn (vlib_main_t * vm, vlib_node_runtime_t * node, |
| 26 | vlib_frame_t * frame) |
| 27 | { |
| 28 | return 0; |
| 29 | } |
| 30 | |
Damjan Marion | 2231150 | 2016-10-28 20:30:15 +0200 | [diff] [blame] | 31 | /* *INDENT-OFF* */ |
Damjan Marion | 51327ac | 2016-11-09 11:59:42 +0100 | [diff] [blame] | 32 | VLIB_REGISTER_NODE (device_input_node) = { |
| 33 | .function = device_input_fn, |
| 34 | .name = "device-input", |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 35 | .runtime_data_bytes = sizeof (vnet_device_input_runtime_t), |
Damjan Marion | 51327ac | 2016-11-09 11:59:42 +0100 | [diff] [blame] | 36 | .type = VLIB_NODE_TYPE_INPUT, |
| 37 | .state = VLIB_NODE_STATE_DISABLED, |
| 38 | .n_next_nodes = VNET_DEVICE_INPUT_N_NEXT_NODES, |
| 39 | .next_nodes = VNET_DEVICE_INPUT_NEXT_NODES, |
| 40 | }; |
| 41 | |
Damjan Marion | 7dc4146 | 2016-11-15 19:47:58 +0100 | [diff] [blame] | 42 | /* Table defines how much we need to advance current data pointer |
| 43 | in the buffer if we shortcut to l3 nodes */ |
| 44 | |
| 45 | const u32 __attribute__((aligned (CLIB_CACHE_LINE_BYTES))) |
| 46 | device_input_next_node_advance[((VNET_DEVICE_INPUT_N_NEXT_NODES / |
| 47 | CLIB_CACHE_LINE_BYTES) +1) * CLIB_CACHE_LINE_BYTES] = |
| 48 | { |
| 49 | [VNET_DEVICE_INPUT_NEXT_IP4_INPUT] = sizeof (ethernet_header_t), |
Sergio Gonzalez Monroy | 767b2f5 | 2016-12-20 15:20:32 +0000 | [diff] [blame] | 50 | [VNET_DEVICE_INPUT_NEXT_IP4_NCS_INPUT] = sizeof (ethernet_header_t), |
Damjan Marion | 7dc4146 | 2016-11-15 19:47:58 +0100 | [diff] [blame] | 51 | [VNET_DEVICE_INPUT_NEXT_IP6_INPUT] = sizeof (ethernet_header_t), |
| 52 | [VNET_DEVICE_INPUT_NEXT_MPLS_INPUT] = sizeof (ethernet_header_t), |
| 53 | }; |
| 54 | |
Dave Barach | 9f6186e | 2016-11-08 12:12:12 -0500 | [diff] [blame] | 55 | VNET_FEATURE_ARC_INIT (device_input, static) = |
| 56 | { |
Damjan Marion | 2231150 | 2016-10-28 20:30:15 +0200 | [diff] [blame] | 57 | .arc_name = "device-input", |
Damjan Marion | 51327ac | 2016-11-09 11:59:42 +0100 | [diff] [blame] | 58 | .start_nodes = VNET_FEATURES ("device-input"), |
Damjan Marion | 8b3191e | 2016-11-09 19:54:20 +0100 | [diff] [blame] | 59 | .arc_index_ptr = &feature_main.device_input_feature_arc_index, |
Damjan Marion | 2231150 | 2016-10-28 20:30:15 +0200 | [diff] [blame] | 60 | }; |
| 61 | |
| 62 | VNET_FEATURE_INIT (l2_patch, static) = { |
| 63 | .arc_name = "device-input", |
| 64 | .node_name = "l2-patch", |
| 65 | .runs_before = VNET_FEATURES ("ethernet-input"), |
| 66 | }; |
| 67 | |
| 68 | VNET_FEATURE_INIT (worker_handoff, static) = { |
| 69 | .arc_name = "device-input", |
| 70 | .node_name = "worker-handoff", |
| 71 | .runs_before = VNET_FEATURES ("ethernet-input"), |
| 72 | }; |
| 73 | |
Pavel Kotucek | f6e3dc4 | 2016-11-04 09:58:01 +0100 | [diff] [blame] | 74 | VNET_FEATURE_INIT (span_input, static) = { |
| 75 | .arc_name = "device-input", |
| 76 | .node_name = "span-input", |
| 77 | .runs_before = VNET_FEATURES ("ethernet-input"), |
| 78 | }; |
| 79 | |
Damjan Marion | 2231150 | 2016-10-28 20:30:15 +0200 | [diff] [blame] | 80 | VNET_FEATURE_INIT (ethernet_input, static) = { |
| 81 | .arc_name = "device-input", |
| 82 | .node_name = "ethernet-input", |
| 83 | .runs_before = 0, /* not before any other features */ |
| 84 | }; |
| 85 | /* *INDENT-ON* */ |
| 86 | |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 87 | static int |
| 88 | vnet_device_queue_sort (void *a1, void *a2) |
| 89 | { |
| 90 | vnet_device_and_queue_t *dq1 = a1; |
| 91 | vnet_device_and_queue_t *dq2 = a2; |
| 92 | |
| 93 | if (dq1->dev_instance > dq2->dev_instance) |
| 94 | return 1; |
| 95 | else if (dq1->dev_instance < dq2->dev_instance) |
| 96 | return -1; |
| 97 | else if (dq1->queue_id > dq2->queue_id) |
| 98 | return 1; |
| 99 | else if (dq1->queue_id < dq2->queue_id) |
| 100 | return -1; |
| 101 | else |
| 102 | return 0; |
| 103 | } |
| 104 | |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 105 | static void |
| 106 | vnet_device_queue_update (vnet_main_t * vnm, vnet_device_input_runtime_t * rt) |
| 107 | { |
| 108 | vnet_device_and_queue_t *dq; |
| 109 | vnet_hw_interface_t *hw; |
| 110 | |
| 111 | vec_sort_with_function (rt->devices_and_queues, vnet_device_queue_sort); |
| 112 | |
| 113 | vec_foreach (dq, rt->devices_and_queues) |
| 114 | { |
| 115 | hw = vnet_get_hw_interface (vnm, dq->hw_if_index); |
| 116 | vec_validate (hw->dq_runtime_index_by_queue, dq->queue_id); |
| 117 | hw->dq_runtime_index_by_queue[dq->queue_id] = dq - rt->devices_and_queues; |
| 118 | } |
| 119 | } |
| 120 | |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 121 | void |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 122 | vnet_hw_interface_assign_rx_thread (vnet_main_t * vnm, u32 hw_if_index, |
| 123 | u16 queue_id, uword thread_index) |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 124 | { |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 125 | vnet_device_main_t *vdm = &vnet_device_main; |
| 126 | vlib_main_t *vm; |
| 127 | vnet_device_input_runtime_t *rt; |
| 128 | vnet_device_and_queue_t *dq; |
| 129 | vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); |
| 130 | |
| 131 | ASSERT (hw->input_node_index > 0); |
| 132 | |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 133 | if (vdm->first_worker_thread_index == 0) |
| 134 | thread_index = 0; |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 135 | |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 136 | if (thread_index != 0 && |
| 137 | (thread_index < vdm->first_worker_thread_index || |
| 138 | thread_index > vdm->last_worker_thread_index)) |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 139 | { |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 140 | thread_index = vdm->next_worker_thread_index++; |
| 141 | if (vdm->next_worker_thread_index > vdm->last_worker_thread_index) |
| 142 | vdm->next_worker_thread_index = vdm->first_worker_thread_index; |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 143 | } |
| 144 | |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 145 | vm = vlib_mains[thread_index]; |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 146 | rt = vlib_node_get_runtime_data (vm, hw->input_node_index); |
| 147 | |
| 148 | vec_add2 (rt->devices_and_queues, dq, 1); |
| 149 | dq->hw_if_index = hw_if_index; |
| 150 | dq->dev_instance = hw->dev_instance; |
| 151 | dq->queue_id = queue_id; |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 152 | dq->mode = VNET_HW_INTERFACE_RX_MODE_POLLING; |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 153 | |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 154 | vnet_device_queue_update (vnm, rt); |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 155 | vec_validate (hw->input_node_thread_index_by_queue, queue_id); |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 156 | vec_validate (hw->rx_mode_by_queue, queue_id); |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 157 | hw->input_node_thread_index_by_queue[queue_id] = thread_index; |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 158 | hw->rx_mode_by_queue[queue_id] = VNET_HW_INTERFACE_RX_MODE_POLLING; |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 159 | vlib_node_set_state (vm, hw->input_node_index, rt->enabled_node_state); |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 160 | } |
| 161 | |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 162 | int |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 163 | vnet_hw_interface_unassign_rx_thread (vnet_main_t * vnm, u32 hw_if_index, |
| 164 | u16 queue_id) |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 165 | { |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 166 | vlib_main_t *vm; |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 167 | vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); |
| 168 | vnet_device_input_runtime_t *rt; |
| 169 | vnet_device_and_queue_t *dq; |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 170 | uword old_thread_index; |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 171 | |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 172 | if (hw->input_node_thread_index_by_queue == 0) |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 173 | return VNET_API_ERROR_INVALID_INTERFACE; |
| 174 | |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 175 | if (vec_len (hw->input_node_thread_index_by_queue) < queue_id + 1) |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 176 | return VNET_API_ERROR_INVALID_INTERFACE; |
| 177 | |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 178 | old_thread_index = hw->input_node_thread_index_by_queue[queue_id]; |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 179 | |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 180 | vm = vlib_mains[old_thread_index]; |
| 181 | |
| 182 | rt = vlib_node_get_runtime_data (vm, hw->input_node_index); |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 183 | |
| 184 | vec_foreach (dq, rt->devices_and_queues) |
| 185 | if (dq->hw_if_index == hw_if_index && dq->queue_id == queue_id) |
| 186 | { |
| 187 | vec_del1 (rt->devices_and_queues, dq - rt->devices_and_queues); |
| 188 | goto deleted; |
| 189 | } |
| 190 | |
| 191 | return VNET_API_ERROR_INVALID_INTERFACE; |
| 192 | |
| 193 | deleted: |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 194 | |
| 195 | vnet_device_queue_update (vnm, rt); |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 196 | hw->rx_mode_by_queue[queue_id] = VNET_HW_INTERFACE_RX_MODE_UNKNOWN; |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 197 | |
| 198 | if (vec_len (rt->devices_and_queues) == 0) |
| 199 | vlib_node_set_state (vm, hw->input_node_index, VLIB_NODE_STATE_DISABLED); |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 200 | |
| 201 | return 0; |
| 202 | } |
| 203 | |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 204 | |
| 205 | int |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 206 | vnet_hw_interface_set_rx_mode (vnet_main_t * vnm, u32 hw_if_index, |
| 207 | u16 queue_id, vnet_hw_interface_rx_mode mode) |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 208 | { |
| 209 | vlib_main_t *vm; |
| 210 | uword thread_index; |
| 211 | vnet_device_and_queue_t *dq; |
| 212 | vlib_node_state_t enabled_node_state; |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 213 | ASSERT (mode < VNET_HW_INTERFACE_NUM_RX_MODES); |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 214 | vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); |
| 215 | vnet_device_input_runtime_t *rt; |
| 216 | int is_polling = 0; |
| 217 | |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 218 | if (hw->input_node_thread_index_by_queue == 0 || hw->rx_mode_by_queue == 0) |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 219 | return VNET_API_ERROR_INVALID_INTERFACE; |
| 220 | |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 221 | if (hw->rx_mode_by_queue[queue_id] == mode) |
| 222 | return 0; |
| 223 | |
| 224 | if (mode != VNET_HW_INTERFACE_RX_MODE_POLLING && |
| 225 | (hw->flags & VNET_HW_INTERFACE_FLAG_SUPPORTS_INT_MODE) == 0) |
| 226 | return VNET_API_ERROR_UNSUPPORTED; |
| 227 | |
Steven | e3a395c | 2017-05-09 16:19:50 -0700 | [diff] [blame^] | 228 | hw->rx_mode_by_queue[queue_id] = mode; |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 229 | thread_index = hw->input_node_thread_index_by_queue[queue_id]; |
| 230 | vm = vlib_mains[thread_index]; |
| 231 | |
| 232 | rt = vlib_node_get_runtime_data (vm, hw->input_node_index); |
| 233 | |
| 234 | vec_foreach (dq, rt->devices_and_queues) |
| 235 | { |
| 236 | if (dq->hw_if_index == hw_if_index && dq->queue_id == queue_id) |
| 237 | dq->mode = mode; |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 238 | if (dq->mode == VNET_HW_INTERFACE_RX_MODE_POLLING) |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 239 | is_polling = 1; |
| 240 | } |
| 241 | |
| 242 | if (is_polling) |
| 243 | enabled_node_state = VLIB_NODE_STATE_POLLING; |
| 244 | else |
| 245 | enabled_node_state = VLIB_NODE_STATE_INTERRUPT; |
| 246 | |
| 247 | if (rt->enabled_node_state != enabled_node_state) |
| 248 | { |
| 249 | rt->enabled_node_state = enabled_node_state; |
| 250 | if (vlib_node_get_state (vm, hw->input_node_index) != |
| 251 | VLIB_NODE_STATE_DISABLED) |
| 252 | vlib_node_set_state (vm, hw->input_node_index, enabled_node_state); |
| 253 | } |
| 254 | |
| 255 | return 0; |
| 256 | } |
| 257 | |
| 258 | int |
Damjan Marion | 4403690 | 2017-04-28 12:29:15 +0200 | [diff] [blame] | 259 | vnet_hw_interface_get_rx_mode (vnet_main_t * vnm, u32 hw_if_index, |
| 260 | u16 queue_id, vnet_hw_interface_rx_mode * mode) |
Damjan Marion | 153646e | 2017-04-05 18:15:45 +0200 | [diff] [blame] | 261 | { |
| 262 | vlib_main_t *vm; |
| 263 | uword thread_index; |
| 264 | vnet_device_and_queue_t *dq; |
| 265 | vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index); |
| 266 | vnet_device_input_runtime_t *rt; |
| 267 | |
| 268 | if (hw->input_node_thread_index_by_queue == 0) |
| 269 | return VNET_API_ERROR_INVALID_INTERFACE; |
| 270 | |
| 271 | thread_index = hw->input_node_thread_index_by_queue[queue_id]; |
| 272 | vm = vlib_mains[thread_index]; |
| 273 | |
| 274 | rt = vlib_node_get_runtime_data (vm, hw->input_node_index); |
| 275 | |
| 276 | vec_foreach (dq, rt->devices_and_queues) |
| 277 | if (dq->hw_if_index == hw_if_index && dq->queue_id == queue_id) |
| 278 | { |
| 279 | *mode = dq->mode; |
| 280 | return 0; |
| 281 | } |
| 282 | |
| 283 | return VNET_API_ERROR_INVALID_INTERFACE; |
| 284 | } |
| 285 | |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 286 | |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 287 | |
Damjan Marion | b3bb101 | 2017-02-28 21:55:28 +0100 | [diff] [blame] | 288 | static clib_error_t * |
| 289 | vnet_device_init (vlib_main_t * vm) |
| 290 | { |
| 291 | vnet_device_main_t *vdm = &vnet_device_main; |
| 292 | vlib_thread_main_t *tm = vlib_get_thread_main (); |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 293 | vlib_thread_registration_t *tr; |
| 294 | uword *p; |
Damjan Marion | b3bb101 | 2017-02-28 21:55:28 +0100 | [diff] [blame] | 295 | |
| 296 | vec_validate_aligned (vdm->workers, tm->n_vlib_mains - 1, |
| 297 | CLIB_CACHE_LINE_BYTES); |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 298 | |
| 299 | p = hash_get_mem (tm->thread_registrations_by_name, "workers"); |
| 300 | tr = p ? (vlib_thread_registration_t *) p[0] : 0; |
| 301 | if (tr && tr->count > 0) |
| 302 | { |
Damjan Marion | 586afd7 | 2017-04-05 19:18:20 +0200 | [diff] [blame] | 303 | vdm->first_worker_thread_index = tr->first_index; |
| 304 | vdm->next_worker_thread_index = tr->first_index; |
| 305 | vdm->last_worker_thread_index = tr->first_index + tr->count - 1; |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 306 | } |
Damjan Marion | b3bb101 | 2017-02-28 21:55:28 +0100 | [diff] [blame] | 307 | return 0; |
| 308 | } |
| 309 | |
| 310 | VLIB_INIT_FUNCTION (vnet_device_init); |
Damjan Marion | eb743fa | 2017-03-20 16:34:15 +0100 | [diff] [blame] | 311 | |
Damjan Marion | 2231150 | 2016-10-28 20:30:15 +0200 | [diff] [blame] | 312 | /* |
| 313 | * fd.io coding-style-patch-verification: ON |
| 314 | * |
| 315 | * Local Variables: |
| 316 | * eval: (c-set-style "gnu") |
| 317 | * End: |
| 318 | */ |