diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2020-12-14 16:50:33 +0000 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-02-05 12:00:56 +0000 |
commit | 6a999d67d6e41df0fb9f63f0a379ebd389617a7e (patch) | |
tree | f8f029fea972508aed622b38682196080a59c8ad /src/vnet/interface_types.api | |
parent | adcc0b359605df118b69e05614740570b22c92fb (diff) |
interface: RX/TX direction type in API
Type: feature
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Change-Id: I982205b48615395f19cbb36c73854fb5c3db45e8
Diffstat (limited to 'src/vnet/interface_types.api')
-rw-r--r-- | src/vnet/interface_types.api | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/src/vnet/interface_types.api b/src/vnet/interface_types.api index c40f64efdea..48783874f4f 100644 --- a/src/vnet/interface_types.api +++ b/src/vnet/interface_types.api @@ -49,7 +49,7 @@ enum sub_if_flags SUB_IF_API_FLAG_DEFAULT = 32, SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY = 64, SUB_IF_API_FLAG_INNER_VLAN_ID_ANY = 128, - SUB_IF_API_FLAG_MASK_VNET = 254, /* use with vnet_sub_interface_t raw_flags */ + SUB_IF_API_FLAG_MASK_VNET = 254, /* use with vnet_sub_interface_t raw_flags */ SUB_IF_API_FLAG_DOT1AH = 256, }; @@ -64,11 +64,25 @@ enum rx_mode enum if_type { - /* A hw interface. */ - IF_API_TYPE_HARDWARE = 0, + /* A hw interface. */ + IF_API_TYPE_HARDWARE = 0, - /* A sub-interface. */ - IF_API_TYPE_SUB = 1, - IF_API_TYPE_P2P = 2, - IF_API_TYPE_PIPE = 3, + /* A sub-interface. */ + IF_API_TYPE_SUB = 1, + IF_API_TYPE_P2P = 2, + IF_API_TYPE_PIPE = 3, }; + +enum direction:u8 +{ + RX = 0, + TX, +}; + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |