diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-05 17:05:57 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-06 22:45:55 -0800 |
commit | 524250a324da0ec5e942b11a8f8536f3bc4872f5 (patch) | |
tree | 0b10ea08896ee0f37d58a1b0aa30734a8974298e /drivers/infiniband/ulp | |
parent | cdc7aaca074d4670bd1dc114f739000ec6bde217 (diff) | |
download | linux-524250a324da0ec5e942b11a8f8536f3bc4872f5.tar.gz linux-524250a324da0ec5e942b11a8f8536f3bc4872f5.tar.bz2 linux-524250a324da0ec5e942b11a8f8536f3bc4872f5.zip |
RDMA/ipoib: reject unsupported coalescing params
Set ethtool_ops->supported_coalesce_params to let
the core reject unsupported coalescing parameters.
This driver did not previously reject unsupported parameters.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_ethtool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c index 63e4f9d15fd9..a10a0c2ca2da 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c @@ -213,6 +213,8 @@ static int ipoib_get_link_ksettings(struct net_device *netdev, } static const struct ethtool_ops ipoib_ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS | + ETHTOOL_COALESCE_RX_MAX_FRAMES, .get_link_ksettings = ipoib_get_link_ksettings, .get_drvinfo = ipoib_get_drvinfo, .get_coalesce = ipoib_get_coalesce, |