From 61d6f1abc2244d0a83553e4e947bc3a680133857 Mon Sep 17 00:00:00 2001 From: Antonio Cardace Date: Thu, 14 May 2020 17:06:41 +0200 Subject: [PATCH] cli: let nmcli remove individual coalesce settings Remove coalesce settings by setting them to NULL. eg: $ nmcli c mod $conn ethtool.$coalesce-setting '' --- clients/common/nm-meta-setting-desc.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) {