net: qlnic: let core reject the unsupported coalescing parameters
authorJakub Kicinski <kuba@kernel.org>
Fri, 13 Mar 2020 04:08:00 +0000 (21:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 04:13:55 +0000 (21:13 -0700)
commit4a988e3103c97af720aae24d15502a7680305fcb
tree5debf9b49083a489b6291596a22c1926308777fa
parentc9312022dba86008ff317fc5dd00fb68ca9e2357
net: qlnic: let core reject the unsupported coalescing parameters

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

This driver already correctly rejected almost all
unsupported parameters (missing sample_rate_interval).

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/ethernet/qlogic/qlcnic/qlcnic_ethtool.c