git: f00e737be055 - stable/14 - LinuxKPI; add more defintions to netdevice.h

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Sat, 28 Sep 2024 10:38:27 UTC
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=f00e737be0558f4bc8ae858783ab8cadf519ec69

commit f00e737be0558f4bc8ae858783ab8cadf519ec69
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-09-12 20:46:22 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-09-28 10:35:14 +0000

    LinuxKPI; add more defintions to netdevice.h
    
    Add new enums to netdevice.h (including one which is referenced but
    no value of it is used in a driver so we have to add a "dummy" value
    to avoid an empty enum).
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 6ed447b51a9d6cf22aae2dfba6efce3922ae6d57)
---
 sys/compat/linuxkpi/common/include/linux/netdevice.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/netdevice.h b/sys/compat/linuxkpi/common/include/linux/netdevice.h
index 3d2b309909b4..dde3ad07dec2 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;