cli: let nmcli remove individual coalesce settings

Remove coalesce settings by setting them to NULL.

eg:
$ nmcli c mod $conn ethtool.$coalesce-setting ''
This commit is contained in:
Antonio Cardace 2020-05-14 17:06:41 +02:00
parent 01667694ca
commit 61d6f1abc2
No known key found for this signature in database
GPG key ID: 6BF80ABD43E377D3

View file

@ -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) {