summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElad Raz <eladr@mellanox.com>2016-02-03 09:57:04 +0100
committerDavid S. Miller <davem@davemloft.net>2016-02-09 04:42:47 -0500
commit157ede6784ba2837c7dc43f195418c75927f8488 (patch)
tree63d6779c9fdb8c5a6444bde8755acc1dbbf9da22
parentd66bd9050bba153c35736e53b8a3ddbff328adc5 (diff)
downloadop-kernel-dev-157ede6784ba2837c7dc43f195418c75927f8488.zip
op-kernel-dev-157ede6784ba2837c7dc43f195418c75927f8488.tar.gz
bridge: mdb: add support for offloaded mdb entries
Add new bitmask member 'flags' to br_mdb_entry structure. Adding MDB_FLAGS_OFFLOAD bit which indicates MDB entries is offloaded to hardware. Signed-off-by: Elad Raz <eladr@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/uapi/linux/if_bridge.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/if_bridge.h b/include/uapi/linux/if_bridge.h
index 18db144..ec35472 100644
--- a/include/uapi/linux/if_bridge.h
+++ b/include/uapi/linux/if_bridge.h
@@ -183,6 +183,8 @@ struct br_mdb_entry {
#define MDB_TEMPORARY 0
#define MDB_PERMANENT 1
__u8 state;
+#define MDB_FLAGS_OFFLOAD (1 << 0)
+ __u8 flags;
__u16 vid;
struct {
union {
OpenPOWER on IntegriCloud