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

net: mvneta: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
16e8d8b3 f99db1d4

+2
+2
drivers/net/ethernet/marvell/mvneta.c
··· 4838 4838 }; 4839 4839 4840 4840 static const struct ethtool_ops mvneta_eth_tool_ops = { 4841 + .supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS | 4842 + ETHTOOL_COALESCE_MAX_FRAMES, 4841 4843 .nway_reset = mvneta_ethtool_nway_reset, 4842 4844 .get_link = ethtool_op_get_link, 4843 4845 .set_coalesce = mvneta_ethtool_set_coalesce,