Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: mvpp2: 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>
Acked-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
078db9a3 16e8d8b3

+2
+2
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
··· 4384 4384 }; 4385 4385 4386 4386 static const struct ethtool_ops mvpp2_eth_tool_ops = { 4387 + .supported_coalesce_params = ETHTOOL_COALESCE_USECS | 4388 + ETHTOOL_COALESCE_MAX_FRAMES, 4387 4389 .nway_reset = mvpp2_ethtool_nway_reset, 4388 4390 .get_link = ethtool_op_get_link, 4389 4391 .set_coalesce = mvpp2_ethtool_set_coalesce,