1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3 
4 #include <linux/if_link.h>
5 
6 typedef enum MacVlanMode {
7         NETDEV_MACVLAN_MODE_PRIVATE = MACVLAN_MODE_PRIVATE,
8         NETDEV_MACVLAN_MODE_VEPA = MACVLAN_MODE_VEPA,
9         NETDEV_MACVLAN_MODE_BRIDGE = MACVLAN_MODE_BRIDGE,
10         NETDEV_MACVLAN_MODE_PASSTHRU = MACVLAN_MODE_PASSTHRU,
11         NETDEV_MACVLAN_MODE_SOURCE = MACVLAN_MODE_SOURCE,
12         _NETDEV_MACVLAN_MODE_MAX,
13         _NETDEV_MACVLAN_MODE_INVALID = -EINVAL,
14 } MacVlanMode;
15 
16 const char *macvlan_mode_to_string(MacVlanMode d) _const_;
17 MacVlanMode macvlan_mode_from_string(const char *d) _pure_;
18