net: igb: let core reject the unsupported coalescing parameters
authorJakub Kicinski <kuba@kernel.org>
Wed, 11 Mar 2020 22:32:58 +0000 (15:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 18:32:36 +0000 (11:32 -0700)
commita289108c2a62bf712558942ac963c8eef42ac3af
tree3a08825fb0814b62eacf9fc5718db73fd0015ff1
parentcf5d0f1c24b1aa23f84983adacfeab3365ce2cc8
net: igb: let core reject the unsupported coalescing parameters

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

This driver was rejecting almost all unsupported
parameters already, it was only missing a check
for tx_max_coalesced_frames_irq.

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

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