mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
cdc7aaca07
commit
524250a324
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue