summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf/avf.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-10-08 13:21:22 +0200
committerFlorin Coras <florin.coras@gmail.com>2020-10-09 19:27:24 +0000
commit1ab533cba2202e73c2296d7677d0b335f2afad7b (patch)
tree2de0ea0a8faf864a0ed808013c45dc4ec5ab24e2 /src/plugins/avf/avf.h
parent952056ce744b781fcf2a1f6b86d43f00da540f27 (diff)
avf: add add_del_mac_address handler
Type: improvement Change-Id: I4d0b1cd87cf2f58a653f40a300da4b7a43348a06 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/avf/avf.h')
-rw-r--r--src/plugins/avf/avf.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/plugins/avf/avf.h b/src/plugins/avf/avf.h
index 32d9cc61015..135b5f94eef 100644
--- a/src/plugins/avf/avf.h
+++ b/src/plugins/avf/avf.h
@@ -205,10 +205,25 @@ typedef enum
AVF_PROCESS_EVENT_START = 1,
AVF_PROCESS_EVENT_DELETE_IF = 2,
AVF_PROCESS_EVENT_AQ_INT = 3,
- AVF_PROCESS_EVENT_SET_PROMISC_ENABLE = 4,
- AVF_PROCESS_EVENT_SET_PROMISC_DISABLE = 5,
+ AVF_PROCESS_EVENT_REQ = 4,
} avf_process_event_t;
+typedef enum
+{
+ AVF_PROCESS_REQ_ADD_DEL_ETH_ADDR = 1,
+ AVF_PROCESS_REQ_CONFIG_PROMISC_MDDE = 2,
+} avf_process_req_type_t;
+
+typedef struct
+{
+ avf_process_req_type_t type;
+ u32 dev_instance;
+ u32 calling_process_index;
+ u8 eth_addr[6];
+ int is_add, is_enable;
+ clib_error_t *error;
+} avf_process_req_t;
+
typedef struct
{
u64 qw1s[AVF_RX_MAX_DESC_IN_CHAIN - 1];