diff options
author | Antonio Cardace <acardace@redhat.com> | 2020-05-14 17:06:41 +0200 |
---|---|---|
committer | Antonio Cardace <acardace@redhat.com> | 2020-05-14 17:06:41 +0200 |
commit | 61d6f1abc2244d0a83553e4e947bc3a680133857 (patch) | |
tree | bf8dd5a474b7a4416717c9aed561977a21b8dc2d | |
parent | 01667694ca75cb3dff137a28313548a6cc4258e7 (diff) | |
download | NetworkManager-61d6f1abc2244d0a83553e4e947bc3a680133857.tar.gz |
cli: let nmcli remove individual coalesce settings
Remove coalesce settings by setting them to NULL.
eg:
$ nmcli c mod $conn ethtool.$coalesce-setting ''
-rw-r--r-- | clients/common/nm-meta-setting-desc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c index 272c089d98..aca6c396a7 100644 --- a/clients/common/nm-meta-setting-desc.c +++ b/clients/common/nm-meta-setting-desc.c @@ -4144,6 +4144,13 @@ _set_fcn_ethtool (ARGS_SET_FCN) NMEthtoolID ethtool_id = property_info->property_typ_data->subtype.ethtool.ethtool_id; if (nm_ethtool_id_is_coalesce (ethtool_id)) { + + if (_SET_FCN_DO_RESET_DEFAULT (property_info, modifier, value)) { + nm_setting_ethtool_clear_coalesce (NM_SETTING_ETHTOOL (setting), + nm_ethtool_data[ethtool_id]->optname); + return TRUE; + } + i64 = _nm_utils_ascii_str_to_int64 (value, 10, 0, G_MAXUINT32, -1); if (i64 == -1) { |