mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 19:16:42 +07:00
net: bnx2: 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: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f4a76615f0
commit
05c531452f
@ -7812,6 +7812,11 @@ static int bnx2_set_channels(struct net_device *dev,
|
||||
}
|
||||
|
||||
static const struct ethtool_ops bnx2_ethtool_ops = {
|
||||
.supported_coalesce_params = ETHTOOL_COALESCE_USECS |
|
||||
ETHTOOL_COALESCE_MAX_FRAMES |
|
||||
ETHTOOL_COALESCE_USECS_IRQ |
|
||||
ETHTOOL_COALESCE_MAX_FRAMES_IRQ |
|
||||
ETHTOOL_COALESCE_STATS_BLOCK_USECS,
|
||||
.get_drvinfo = bnx2_get_drvinfo,
|
||||
.get_regs_len = bnx2_get_regs_len,
|
||||
.get_regs = bnx2_get_regs,
|
||||
|
Loading…
Reference in New Issue
Block a user