FD.io VPP
v20.05.1-5-g09f167997
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
17
typedef
u32
interface_index
;
18
19
enum
if_status_flags
20
{
21
IF_STATUS_API_FLAG_ADMIN_UP
= 1,
22
IF_STATUS_API_FLAG_LINK_UP
= 2,
23
};
24
25
/* Per protocol MTU */
26
enum
mtu_proto
27
{
28
MTU_PROTO_API_L3
= 0,
/* Default payload MTU (without L2 headers) */
29
MTU_PROTO_API_IP4
= 1,
/* Per-protocol MTUs overriding default */
30
MTU_PROTO_API_IP6
= 2,
31
MTU_PROTO_API_MPLS
= 3,
32
};
33
34
enum
link_duplex
35
{
36
LINK_DUPLEX_API_UNKNOWN
= 0,
37
LINK_DUPLEX_API_HALF
= 1,
38
LINK_DUPLEX_API_FULL
= 2,
39
};
40
41
enum
sub_if_flags
42
{
43
SUB_IF_API_FLAG_NO_TAGS
= 1,
44
SUB_IF_API_FLAG_ONE_TAG
= 2,
45
SUB_IF_API_FLAG_TWO_TAGS
= 4,
46
SUB_IF_API_FLAG_DOT1AD
= 8,
47
SUB_IF_API_FLAG_EXACT_MATCH
= 16,
48
SUB_IF_API_FLAG_DEFAULT
= 32,
49
SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY
= 64,
50
SUB_IF_API_FLAG_INNER_VLAN_ID_ANY
= 128,
51
SUB_IF_API_FLAG_MASK_VNET
= 254,
/* use with vnet_sub_interface_t raw_flags */
52
SUB_IF_API_FLAG_DOT1AH
= 256,
53
};
54
55
enum
rx_mode
56
{
57
RX_MODE_API_UNKNOWN
= 0,
58
RX_MODE_API_POLLING
,
59
RX_MODE_API_INTERRUPT
,
60
RX_MODE_API_ADAPTIVE
,
61
RX_MODE_API_DEFAULT
,
62
};
63
64
enum
if_type
65
{
66
/* A hw interface. */
67
IF_API_TYPE_HARDWARE
= 0,
68
69
/* A sub-interface. */
70
IF_API_TYPE_SUB
= 1,
71
IF_API_TYPE_P2P
= 2,
72
IF_API_TYPE_PIPE
= 3,
73
};
RX_MODE_API_INTERRUPT
Definition:
interface_types.api:59
SUB_IF_API_FLAG_MASK_VNET
Definition:
interface_types.api:51
SUB_IF_API_FLAG_NO_TAGS
Definition:
interface_types.api:43
mtu_proto
mtu_proto
Definition:
interface_types.api:26
MTU_PROTO_API_IP4
Definition:
interface_types.api:29
IF_API_TYPE_PIPE
Definition:
interface_types.api:72
SUB_IF_API_FLAG_INNER_VLAN_ID_ANY
Definition:
interface_types.api:50
SUB_IF_API_FLAG_ONE_TAG
Definition:
interface_types.api:44
LINK_DUPLEX_API_UNKNOWN
Definition:
interface_types.api:36
RX_MODE_API_ADAPTIVE
Definition:
interface_types.api:60
SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY
Definition:
interface_types.api:49
LINK_DUPLEX_API_FULL
Definition:
interface_types.api:38
u32
unsigned int u32
Definition:
types.h:88
IF_API_TYPE_SUB
Definition:
interface_types.api:70
rx_mode
rx_mode
Definition:
interface_types.api:55
IF_STATUS_API_FLAG_LINK_UP
Definition:
interface_types.api:22
RX_MODE_API_POLLING
Definition:
interface_types.api:58
if_status_flags
if_status_flags
Definition:
interface_types.api:19
SUB_IF_API_FLAG_EXACT_MATCH
Definition:
interface_types.api:47
MTU_PROTO_API_L3
Definition:
interface_types.api:28
SUB_IF_API_FLAG_DOT1AD
Definition:
interface_types.api:46
SUB_IF_API_FLAG_DEFAULT
Definition:
interface_types.api:48
if_type
if_type
Definition:
interface_types.api:64
IF_STATUS_API_FLAG_ADMIN_UP
Definition:
interface_types.api:21
sub_if_flags
sub_if_flags
Definition:
interface_types.api:41
link_duplex
link_duplex
Definition:
interface_types.api:34
IF_API_TYPE_HARDWARE
Definition:
interface_types.api:67
RX_MODE_API_UNKNOWN
Definition:
interface_types.api:57
interface_index
u32 interface_index
Definition:
interface_types.api:17
MTU_PROTO_API_MPLS
Definition:
interface_types.api:31
MTU_PROTO_API_IP6
Definition:
interface_types.api:30
IF_API_TYPE_P2P
Definition:
interface_types.api:71
LINK_DUPLEX_API_HALF
Definition:
interface_types.api:37
SUB_IF_API_FLAG_DOT1AH
Definition:
interface_types.api:52
RX_MODE_API_DEFAULT
Definition:
interface_types.api:61
SUB_IF_API_FLAG_TWO_TAGS
Definition:
interface_types.api:45
src
vnet
interface_types.api
Generated on Wed Sep 9 2020 03:05:36 for FD.io VPP by
1.8.13