History

net: bridge: mcast: add rt_protocol field to the port group struct

We need to be able to differentiate between pg entries created by user-space and the kernel when we start generating S,G entries for IGMPv3/MLDv2's fast path. User-space entries are created by default as RTPROT_STATIC and the kernel entries are RTPROT_KERNEL. Later we can allow user-space to provide the entry rt_protocol so we can differentiate between who added the entries specifically (e.g. clag, admin, frr etc).

Nikolay Aleksandrov committed 6 years ago

Commit 8f8cb771 parent 7d07a684 files · +34 −19Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/if_bridge.h+1−0
@@ -458,6 +458,7 @@ enum { · 457 unmodified lines
458 MDBA_MDB_EATTR_SRC_LIST,458 MDBA_MDB_EATTR_SRC_LIST,
459 MDBA_MDB_EATTR_GROUP_MODE,459 MDBA_MDB_EATTR_GROUP_MODE,
460 MDBA_MDB_EATTR_SOURCE,460 MDBA_MDB_EATTR_SOURCE,
461 MDBA_MDB_EATTR_RTPROT,
461 __MDBA_MDB_EATTR_MAX462 __MDBA_MDB_EATTR_MAX
462};463};
463#define MDBA_MDB_EATTR_MAX (__MDBA_MDB_EATTR_MAX - 1)464#define MDBA_MDB_EATTR_MAX (__MDBA_MDB_EATTR_MAX - 1)