net: netxen: let core reject the unsupported coalescing parameters
authorJakub Kicinski <kuba@kernel.org>
Fri, 13 Mar 2020 04:07:58 +0000 (21:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 04:13:55 +0000 (21:13 -0700)
commit6427477136207bd6cb6e71a4167b2a2efa3f56e9
treebc9af87154a7148668ea2839021b9f6bd11520a2
parent8078f028def19a2a85b29f1693e4c9508c96756c
net: netxen: let core reject the unsupported coalescing parameters

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

As a side effect of these changes the error code for
unsupported params changes from EINVAL to EOPNOTSUPP.

The driver was missing a check for rate_sample_interval.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c