libnm: adjust symbol versioning of bond port prio in 1.40.20

This ABI was backported all the way to 1.42.8 and 1.40.20 and to rhel-8.9.
Move the ABI to a separate symbol version, which we have in all those
versions.

(cherry picked from commit bc0818fe13)
This commit is contained in:
Fernando Fernandez Mancera 2023-05-09 19:05:28 +02:00
parent 56e19bdf68
commit 384b5f47e8
2 changed files with 8 additions and 6 deletions

View file

@ -1879,6 +1879,11 @@ global:
nm_vpn_plugin_info_supports_multiple;
} libnm_1_40_0;
libnm_1_40_20_bondp {
global:
nm_setting_bond_port_get_prio;
} libnm_1_40_0;
libnm_1_42_0 {
global:
nm_client_get_version_info;
@ -1925,8 +1930,3 @@ global:
nm_active_connection_get_controller;
nm_setting_ip_config_get_replace_local_rule;
} libnm_1_42_0;
libnm_1_42_8 {
global:
nm_setting_bond_port_get_prio;
} libnm_1_42_0;

View file

@ -89,8 +89,10 @@ def syms_from_ver(verfile):
):
c_syms[str_removesuffix(line, ";")] = version
# This one is... messy.
# These are exceptions and we cannot know the version for the symbol so we
# hardcode it.
c_syms["nm_ethtool_optname_is_feature"] = "1.20"
c_syms["nm_setting_bond_port_get_prio"] = "1.44"
return c_syms