mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 07:40:34 +01:00
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:
parent
01667694ca
commit
61d6f1abc2
1 changed files with 7 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue