From 6a999d67d6e41df0fb9f63f0a379ebd389617a7e Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 14 Dec 2020 16:50:33 +0000 Subject: interface: RX/TX direction type in API Type: feature Signed-off-by: Neale Ranns Change-Id: I982205b48615395f19cbb36c73854fb5c3db45e8 --- src/vnet/interface_types.api | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'src/vnet/interface_types.api') 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: + */ -- cgit 1.2.3-korg