vmxnet3: let core reject the unsupported coalescing parameters
authorJakub Kicinski <kuba@kernel.org>
Fri, 6 Mar 2020 01:06:00 +0000 (17:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Mar 2020 06:45:55 +0000 (22:45 -0800)
commit0f3883b4773fa000f3c692c842bd9cf2c1bd935d
tree5eb21d4bf255de35cad7136bf4a3f025336e80f9
parente52a646b34ff1b7e60ca021ec152e4bad418f57c
vmxnet3: let core reject the unsupported coalescing parameters

Set ethtool_ops->supported_coalesce_params to let
the core reject unsupported coalescing parameters.

This driver correctly rejects all unsupported parameters.
As a side effect of these changes the error code for
unsupported params changes from EINVAL to EOPNOTSUPP.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_ethtool.c