platform: add define for IFLA_BOND_SLAVE_PRIO
The enum value was added in kernel 5.19; add a define for it so that
the compilation doesn't fail with earlier kernels.
Fixes: 79221f79a2
('src: drop most slave references from the code')
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1596
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2012
This commit is contained in:
@@ -187,6 +187,9 @@ G_STATIC_ASSERT(RTA_MAX == (__RTA_MAX - 1));
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/* Added in kernel 5.19, dated July 31, 2022 */
|
||||
#define IFLA_BOND_SLAVE_PRIO 9
|
||||
|
||||
#define IFLA_BOND_ACTIVE_PORT IFLA_BOND_ACTIVE_SLAVE
|
||||
#define IFLA_BOND_PORT_PRIO IFLA_BOND_SLAVE_PRIO
|
||||
#define IFLA_BOND_ALL_PORTS_ACTIVE IFLA_BOND_ALL_SLAVES_ACTIVE
|
||||
|
Reference in New Issue
Block a user