FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
feature.c
Go to the documentation of this file.
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 
16 #include <vnet/feature/feature.h>
17 
18 /* *INDENT-OFF* */
19 VNET_FEATURE_ARC_INIT (device_input, static) = {
20  .arc_name = "device-input",
21 #if DPDK > 0
22  .start_nodes = VNET_FEATURES ("dpdk-input", "vhost-user-input", "af-packet-input", "netmap-input", "tuntap-rx"),
23 #else
24  .start_nodes = VNET_FEATURES ("vhost-user-input", "af-packet-input", "netmap-input", "tuntap-rx"),
25 #endif
26 };
27 
28 VNET_FEATURE_INIT (l2_patch, static) = {
29  .arc_name = "device-input",
30  .node_name = "l2-patch",
31  .runs_before = VNET_FEATURES ("ethernet-input"),
32 };
33 
34 VNET_FEATURE_INIT (worker_handoff, static) = {
35  .arc_name = "device-input",
36  .node_name = "worker-handoff",
37  .runs_before = VNET_FEATURES ("ethernet-input"),
38 };
39 
41  .arc_name = "device-input",
42  .node_name = "ethernet-input",
43  .runs_before = 0, /* not before any other features */
44 };
45 /* *INDENT-ON* */
46 
47 /*
48  * fd.io coding-style-patch-verification: ON
49  *
50  * Local Variables:
51  * eval: (c-set-style "gnu")
52  * End:
53  */
VNET_FEATURE_INIT(l2_patch, static)
static uword ethernet_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: node.c:632
#define VNET_FEATURES(...)
Definition: feature.h:189
VNET_FEATURE_ARC_INIT(device_input, static)