diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-05-28 18:55:37 +0200 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-05-29 15:39:24 +0000 |
commit | 04e0bb2ff0f39dab45da01ecdbc7914035a36897 (patch) | |
tree | b9aa214531e7b9053fdb5c1411b2ffcf5cf0f972 /src/vnet/devices/af_packet/af_packet.h | |
parent | 0353a4b33210936cb8820d2430ea8bf925c4581b (diff) |
af_packet: Add support for dump interfaces
Change-Id: I8d8ecc80edb7665125ba625a3ce7b30d2dea88f0
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/af_packet/af_packet.h')
-rw-r--r-- | src/vnet/devices/af_packet/af_packet.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vnet/devices/af_packet/af_packet.h b/src/vnet/devices/af_packet/af_packet.h index 1136be6b871..b4621f6f6d4 100644 --- a/src/vnet/devices/af_packet/af_packet.h +++ b/src/vnet/devices/af_packet/af_packet.h @@ -23,6 +23,12 @@ typedef struct { + u32 sw_if_index; + u8 host_if_name[64]; +} af_packet_if_detail_t; + +typedef struct +{ CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); clib_spinlock_t lockp; u8 *host_if_name; @@ -70,9 +76,12 @@ int af_packet_create_if (vlib_main_t * vm, u8 * host_if_name, int af_packet_delete_if (vlib_main_t * vm, u8 * host_if_name); int af_packet_set_l4_cksum_offload (vlib_main_t * vm, u32 sw_if_index, u8 set); +int af_packet_dump_ifs (af_packet_if_detail_t ** out_af_packet_ifs); format_function_t format_af_packet_device_name; +#define MIN(x,y) (((x)<(y))?(x):(y)) + /* * fd.io coding-style-patch-verification: ON * |