[PATCH 01/16] net/stack: plan for merging private device flags with netdev_priv_flags

Philippe Gerum rpm at xenomai.org
Thu Mar 21 18:13:15 CET 2019


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 8f8fa16b9..1102a839d 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.20.1




More information about the Xenomai mailing list