All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, kernel-team@fb.com,
	cooldavid@cooldavid.org, sebastian.hesselbarth@gmail.com,
	thomas.petazzoni@bootlin.com, maxime.chevallier@bootlin.com,
	rmk+kernel@armlinux.org.uk, mcroce@redhat.com,
	sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com,
	hkelam@marvell.com, mlindner@marvell.com,
	stephen@networkplumber.org, christopher.lee@cspi.com,
	manishc@marvell.com, rahulv@marvell.com,
	GR-Linux-NIC-Dev@marvell.com, aelior@marvell.com,
	GR-everest-linux-l2@marvell.com, shshaikh@marvell.com,
	nic_swsd@realtek.com, hkallweit1@gmail.com, bh74.an@samsung.com,
	romieu@fr.zoreil.com
Subject: [PATCH net-next 01/15] net: jme: reject unsupported coalescing params
Date: Thu, 12 Mar 2020 21:07:49 -0700	[thread overview]
Message-ID: <20200313040803.2367590-2-kuba@kernel.org> (raw)
In-Reply-To: <20200313040803.2367590-1-kuba@kernel.org>

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>
---
 drivers/net/ethernet/jme.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c
index de3c7ce9353c..c97c74164c73 100644
--- a/drivers/net/ethernet/jme.c
+++ b/drivers/net/ethernet/jme.c
@@ -2839,6 +2839,9 @@ jme_set_eeprom(struct net_device *netdev,
 }
 
 static const struct ethtool_ops jme_ethtool_ops = {
+	.supported_coalesce_params = ETHTOOL_COALESCE_USECS |
+				     ETHTOOL_COALESCE_MAX_FRAMES |
+				     ETHTOOL_COALESCE_USE_ADAPTIVE_RX,
 	.get_drvinfo            = jme_get_drvinfo,
 	.get_regs_len		= jme_get_regs_len,
 	.get_regs		= jme_get_regs,
-- 
2.24.1


  reply	other threads:[~2020-03-13  4:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-13  4:07 [PATCH net-next 00/15] ethtool: consolidate irq coalescing - part 5 Jakub Kicinski
2020-03-13  4:07 ` Jakub Kicinski [this message]
2020-03-13  4:07 ` [PATCH net-next 02/15] net: mv643xx_eth: reject unsupported coalescing params Jakub Kicinski
2020-03-13  4:07 ` [PATCH net-next 03/15] net: mvneta: " Jakub Kicinski
2020-03-13  4:07 ` [PATCH net-next 04/15] net: mvpp2: " Jakub Kicinski
2020-03-13 11:05   ` Matteo Croce
2020-03-13  4:07 ` [PATCH net-next 05/15] net: octeontx2-pf: let core reject the unsupported coalescing parameters Jakub Kicinski
2020-03-13  4:07 ` [PATCH net-next 06/15] net: skge: reject unsupported coalescing params Jakub Kicinski
2020-03-13  4:07 ` [PATCH net-next 07/15] net: sky2: " Jakub Kicinski
2020-03-13  4:07 ` [PATCH net-next 08/15] net: myri10ge: " Jakub Kicinski
2020-03-13  4:07 ` [PATCH net-next 09/15] net: nixge: let core reject the unsupported coalescing parameters Jakub Kicinski
2020-03-13  4:07 ` [PATCH net-next 10/15] net: netxen: " Jakub Kicinski
2020-03-13  4:07 ` [PATCH net-next 11/15] net: qede: reject unsupported coalescing params Jakub Kicinski
2020-03-13  4:08 ` [PATCH net-next 12/15] net: qlnic: let core reject the unsupported coalescing parameters Jakub Kicinski
2020-03-13  4:08 ` [PATCH net-next 13/15] net: r8169: reject unsupported coalescing params Jakub Kicinski
2020-03-13  6:13   ` Heiner Kallweit
2020-03-13  4:08 ` [PATCH net-next 14/15] net: sxgbe: " Jakub Kicinski
2020-03-13  4:08 ` [PATCH net-next 15/15] net: via: " Jakub Kicinski
2020-03-15  4:14 ` [PATCH net-next 00/15] ethtool: consolidate irq coalescing - part 5 David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200313040803.2367590-2-kuba@kernel.org \
    --to=kuba@kernel.org \
    --cc=GR-Linux-NIC-Dev@marvell.com \
    --cc=GR-everest-linux-l2@marvell.com \
    --cc=aelior@marvell.com \
    --cc=bh74.an@samsung.com \
    --cc=christopher.lee@cspi.com \
    --cc=cooldavid@cooldavid.org \
    --cc=davem@davemloft.net \
    --cc=gakula@marvell.com \
    --cc=hkallweit1@gmail.com \
    --cc=hkelam@marvell.com \
    --cc=kernel-team@fb.com \
    --cc=manishc@marvell.com \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mcroce@redhat.com \
    --cc=mlindner@marvell.com \
    --cc=netdev@vger.kernel.org \
    --cc=nic_swsd@realtek.com \
    --cc=rahulv@marvell.com \
    --cc=rmk+kernel@armlinux.org.uk \
    --cc=romieu@fr.zoreil.com \
    --cc=sbhatta@marvell.com \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=sgoutham@marvell.com \
    --cc=shshaikh@marvell.com \
    --cc=stephen@networkplumber.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.