diff options
Diffstat (limited to 'src/vnet/ethernet/ethernet.h')
-rw-r--r-- | src/vnet/ethernet/ethernet.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vnet/ethernet/ethernet.h b/src/vnet/ethernet/ethernet.h index 9621429e4ee..b6adeb6f44d 100644 --- a/src/vnet/ethernet/ethernet.h +++ b/src/vnet/ethernet/ethernet.h @@ -130,7 +130,11 @@ typedef u32 (ethernet_flag_change_function_t) typedef struct { + /* ethernet interface flags change */ ethernet_flag_change_function_t *flag_change; + + /* set MTU callback */ + vnet_interface_set_mtu_function_t *set_mtu; } vnet_eth_if_callbacks_t; #define ETHERNET_MIN_PACKET_BYTES 64 @@ -166,9 +170,6 @@ typedef struct ethernet_interface /* Set interface to accept all packets (promiscuous mode). */ #define ETHERNET_INTERFACE_FLAG_ACCEPT_ALL 1 - /* Change MTU on interface from hw interface structure */ -#define ETHERNET_INTERFACE_FLAG_MTU 2 - /* Callback, e.g. to turn on/off promiscuous mode */ vnet_eth_if_callbacks_t cb; |