Add the tap driver to the driver feature arc scheme
[vpp.git] / vnet / vnet / devices / feature.c
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 {
21   .arc_name  = "device-input",
22   .start_nodes =
23   VNET_FEATURES (
24 #if DPDK > 0
25                  "dpdk-input",
26 #endif
27                  "vhost-user-input", "af-packet-input", "netmap-input",
28                  "tuntap-rx", "tapcli-rx", "pg-input"),
29 };
30
31 VNET_FEATURE_INIT (l2_patch, static) = {
32   .arc_name = "device-input",
33   .node_name = "l2-patch",
34   .runs_before = VNET_FEATURES ("ethernet-input"),
35 };
36
37 VNET_FEATURE_INIT (worker_handoff, static) = {
38   .arc_name = "device-input",
39   .node_name = "worker-handoff",
40   .runs_before = VNET_FEATURES ("ethernet-input"),
41 };
42
43 VNET_FEATURE_INIT (ethernet_input, static) = {
44   .arc_name = "device-input",
45   .node_name = "ethernet-input",
46   .runs_before = 0, /* not before any other features */
47 };
48 /* *INDENT-ON* */
49
50 /*
51  * fd.io coding-style-patch-verification: ON
52  *
53  * Local Variables:
54  * eval: (c-set-style "gnu")
55  * End:
56  */