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

net: jme: 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
298b63ef 0c907754

+3
+3
drivers/net/ethernet/jme.c
··· 2839 2839 } 2840 2840 2841 2841 static const struct ethtool_ops jme_ethtool_ops = { 2842 + .supported_coalesce_params = ETHTOOL_COALESCE_USECS | 2843 + ETHTOOL_COALESCE_MAX_FRAMES | 2844 + ETHTOOL_COALESCE_USE_ADAPTIVE_RX, 2842 2845 .get_drvinfo = jme_get_drvinfo, 2843 2846 .get_regs_len = jme_get_regs_len, 2844 2847 .get_regs = jme_get_regs,