FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
interface_types.api
Go to the documentation of this file.
1 /* Hey Emacs use -*- mode: C -*- */
2 /*
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:
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 option version = "1.0.0";
17 
19 
21 {
24 };
25 
26 /* Per protocol MTU */
28 {
29  MTU_PROTO_API_L3 = 0, /* Default payload MTU (without L2 headers) */
30  MTU_PROTO_API_IP4 = 1, /* Per-protocol MTUs overriding default */
33 };
34 
36 {
40 };
41 
43 {
52  SUB_IF_API_FLAG_MASK_VNET = 254, /* use with vnet_sub_interface_t raw_flags */
54 };
55 
56 enum rx_mode
57 {
63 };
64 
65 enum if_type
66 {
67  /* A hw interface. */
69 
70  /* A sub-interface. */
74 };
75 
77 {
78  RX = 0,
79  TX,
80 };
81 
82 /*
83  * fd.io coding-style-patch-verification: ON
84  *
85  * Local Variables:
86  * eval: (c-set-style "gnu")
87  * End:
88  */
SUB_IF_API_FLAG_MASK_VNET
@ SUB_IF_API_FLAG_MASK_VNET
Definition: interface_types.api:52
MTU_PROTO_API_IP4
@ MTU_PROTO_API_IP4
Definition: interface_types.api:30
rx_mode
rx_mode
Definition: interface_types.api:56
link_duplex
link_duplex
Definition: interface_types.api:35
IF_STATUS_API_FLAG_LINK_UP
@ IF_STATUS_API_FLAG_LINK_UP
Definition: interface_types.api:23
SUB_IF_API_FLAG_TWO_TAGS
@ SUB_IF_API_FLAG_TWO_TAGS
Definition: interface_types.api:46
RX
@ RX
Definition: interface_types.api:78
RX_MODE_API_INTERRUPT
@ RX_MODE_API_INTERRUPT
Definition: interface_types.api:60
SUB_IF_API_FLAG_DOT1AH
@ SUB_IF_API_FLAG_DOT1AH
Definition: interface_types.api:53
if_type
if_type
Definition: interface_types.api:65
SUB_IF_API_FLAG_ONE_TAG
@ SUB_IF_API_FLAG_ONE_TAG
Definition: interface_types.api:45
version
option version
Definition: interface_types.api:16
SUB_IF_API_FLAG_NO_TAGS
@ SUB_IF_API_FLAG_NO_TAGS
Definition: interface_types.api:44
RX_MODE_API_DEFAULT
@ RX_MODE_API_DEFAULT
Definition: interface_types.api:62
LINK_DUPLEX_API_FULL
@ LINK_DUPLEX_API_FULL
Definition: interface_types.api:39
LINK_DUPLEX_API_UNKNOWN
@ LINK_DUPLEX_API_UNKNOWN
Definition: interface_types.api:37
sub_if_flags
sub_if_flags
Definition: interface_types.api:42
IF_STATUS_API_FLAG_ADMIN_UP
@ IF_STATUS_API_FLAG_ADMIN_UP
Definition: interface_types.api:22
RX_MODE_API_ADAPTIVE
@ RX_MODE_API_ADAPTIVE
Definition: interface_types.api:61
SUB_IF_API_FLAG_DOT1AD
@ SUB_IF_API_FLAG_DOT1AD
Definition: interface_types.api:47
interface_index
u32 interface_index
Definition: interface_types.api:18
mtu_proto
mtu_proto
Definition: interface_types.api:27
SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY
@ SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY
Definition: interface_types.api:50
SUB_IF_API_FLAG_DEFAULT
@ SUB_IF_API_FLAG_DEFAULT
Definition: interface_types.api:49
IF_API_TYPE_PIPE
@ IF_API_TYPE_PIPE
Definition: interface_types.api:73
RX_MODE_API_UNKNOWN
@ RX_MODE_API_UNKNOWN
Definition: interface_types.api:58
SUB_IF_API_FLAG_EXACT_MATCH
@ SUB_IF_API_FLAG_EXACT_MATCH
Definition: interface_types.api:48
RX_MODE_API_POLLING
@ RX_MODE_API_POLLING
Definition: interface_types.api:59
IF_API_TYPE_HARDWARE
@ IF_API_TYPE_HARDWARE
Definition: interface_types.api:68
MTU_PROTO_API_MPLS
@ MTU_PROTO_API_MPLS
Definition: interface_types.api:32
MTU_PROTO_API_L3
@ MTU_PROTO_API_L3
Definition: interface_types.api:29
TX
@ TX
Definition: interface_types.api:79
u32
unsigned int u32
Definition: types.h:88
IF_API_TYPE_P2P
@ IF_API_TYPE_P2P
Definition: interface_types.api:72
LINK_DUPLEX_API_HALF
@ LINK_DUPLEX_API_HALF
Definition: interface_types.api:38
u8
unsigned char u8
Definition: types.h:56
MTU_PROTO_API_IP6
@ MTU_PROTO_API_IP6
Definition: interface_types.api:31
IF_API_TYPE_SUB
@ IF_API_TYPE_SUB
Definition: interface_types.api:71
if_status_flags
if_status_flags
Definition: interface_types.api:20
SUB_IF_API_FLAG_INNER_VLAN_ID_ANY
@ SUB_IF_API_FLAG_INNER_VLAN_ID_ANY
Definition: interface_types.api:51
direction
direction
Definition: interface_types.api:76