mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 14:40:08 +01:00
manager: add a capability for "sriov.preserve-on-down"
Add a new capability to indicate that NetworkManager supports the
"sriov.preserve-on-down" connection property. With this, clients can
set the property only when supported, without the risk of creating an
invalid connection.
(cherry picked from commit 8e40f7e289)
This commit is contained in:
parent
9913763185
commit
7c03b3050e
2 changed files with 7 additions and 3 deletions
|
|
@ -479,7 +479,8 @@ _version_info_get(void)
|
|||
* with index 0-31 goes to element #1, with index 32-63 to element #2,
|
||||
* with index 64-95 to element #3 and so on. */
|
||||
(1 << NM_VERSION_INFO_CAPABILITY_SYNC_ROUTE_WITH_TABLE)
|
||||
| (1 << NM_VERSION_INFO_CAPABILITY_IP4_FORWARDING),
|
||||
| (1 << NM_VERSION_INFO_CAPABILITY_IP4_FORWARDING)
|
||||
| (1 << NM_VERSION_INFO_CAPABILITY_SRIOV_PRESERVE_ON_DOWN),
|
||||
};
|
||||
|
||||
return nm_g_variant_new_au(arr, G_N_ELEMENTS(arr));
|
||||
|
|
|
|||
|
|
@ -101,6 +101,8 @@
|
|||
* https://issues.redhat.com/browse/RHEL-67324
|
||||
* @NM_VERSION_INFO_CAPABILITY_IP4_FORWARDING: Indicates that NetworkManager supports
|
||||
* configuring per-device IPv4 sysctl forwarding setting. Since: 1.54.
|
||||
* @NM_VERSION_INFO_CAPABILITY_SRIOV_PRESERVE_ON_DOWN: NetworkManager supports the
|
||||
* "sriov.preserve-on-down" property. Since: 1.54
|
||||
*
|
||||
* The numeric values represent the bit index of the capability. These capabilities
|
||||
* can be queried in the "VersionInfo" D-Bus property.
|
||||
|
|
@ -108,8 +110,9 @@
|
|||
* Since: 1.42
|
||||
*/
|
||||
typedef enum {
|
||||
NM_VERSION_INFO_CAPABILITY_SYNC_ROUTE_WITH_TABLE = 0,
|
||||
NM_VERSION_INFO_CAPABILITY_IP4_FORWARDING = 1,
|
||||
NM_VERSION_INFO_CAPABILITY_SYNC_ROUTE_WITH_TABLE = 0,
|
||||
NM_VERSION_INFO_CAPABILITY_IP4_FORWARDING = 1,
|
||||
NM_VERSION_INFO_CAPABILITY_SRIOV_PRESERVE_ON_DOWN = 2,
|
||||
} NMVersionInfoCapability;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue