[PATCH 02/31] net/stack: plan for merging private device flags with netdev_priv_flags

Jean-Baptiste Tr├ędez jean-baptiste.tredez at alstefgroup.com
Tue May 11 18:05:06 CEST 2021


From: Gilles Chanteperdrix <gilles.chanteperdrix at xenomai.org>

We need to merge regular netdev_priv_flags with our own private device
flags for the upcoming VLAN, multicast support. Pick non-conflicting
bit positions.

Signed-off-by: Philippe Gerum <rpm at xenomai.org>
---
 kernel/drivers/net/stack/include/rtdev.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/kernel/drivers/net/stack/include/rtdev.h b/kernel/drivers/net/stack/include/rtdev.h
index a4d963fcb..3a9f6f8ee 100644
--- a/kernel/drivers/net/stack/include/rtdev.h
+++ b/kernel/drivers/net/stack/include/rtdev.h
@@ -38,8 +38,13 @@
 
 #define RTDEV_VERS_2_0 0x0200
 
-#define PRIV_FLAG_UP 0
-#define PRIV_FLAG_ADDING_ROUTE 1
+/*
+ * We need to merge regular netdev_priv_flags with our own private
+ * device flags for VLAN, multicast support. Pick non-conflicting bit
+ * positions.
+ */
+#define PRIV_FLAG_UP                    30
+#define PRIV_FLAG_ADDING_ROUTE          31
 
 #ifndef NETIF_F_LLTX
 #define NETIF_F_LLTX 4096
-- 
2.17.1




More information about the Xenomai mailing list