aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/netdevice.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/netdevice.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/netdevice.h b/sys/compat/linuxkpi/common/include/linux/netdevice.h
index 3d2b309909b4..cd7d23077a62 100644
--- a/sys/compat/linuxkpi/common/include/linux/netdevice.h
+++ b/sys/compat/linuxkpi/common/include/linux/netdevice.h
@@ -75,6 +75,10 @@ struct wireless_dev; /* net/cfg80211.h */
#define NET_NAME_UNKNOWN 0
+enum net_addr_assign_type {
+ NET_ADDR_RANDOM,
+};
+
enum netdev_tx {
NETDEV_TX_OK = 0,
};
@@ -95,6 +99,10 @@ enum net_device_reg_state {
NETREG_REGISTERED,
};
+enum tc_setup_type {
+ TC_SETUP_MAX_DUMMY,
+};
+
struct net_device_ops {
int (*ndo_open)(struct net_device *);
int (*ndo_stop)(struct net_device *);
@@ -122,6 +130,7 @@ struct net_device {
unsigned long tx_errors;
unsigned long tx_packets;
} stats;
+ enum net_addr_assign_type addr_assign_type;
enum net_device_reg_state reg_state;
const struct ethtool_ops *ethtool_ops;
const struct net_device_ops *netdev_ops;
@@ -457,6 +466,8 @@ void linuxkpi_free_netdev(struct net_device *);
#define alloc_netdev(_l, _n, _f, _func) \
linuxkpi_alloc_netdev(_l, _n, _f, _func)
+#define alloc_netdev_dummy(_l) \
+ linuxkpi_alloc_netdev(_l, "dummy", NET_NAME_UNKNOWN, NULL)
#define free_netdev(_n) \
linuxkpi_free_netdev(_n)