From patchwork Mon Mar 16 20:47:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 222444 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C134AC18E5B for ; Mon, 16 Mar 2020 20:47:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8B0372076F for ; Mon, 16 Mar 2020 20:47:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584391651; bh=fjHT+vXaGTkmgjflYBJF3oq9Wf1OCHxqOoCcMIvTVuY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=BzdXuzU7q7njB1nx+fNE16nIjp5vYhQqwKQnyr8M+BcHUFv33QVcBa9EMpdiEdafR DSY1spNU0knvMMGFllFpqyvkKm2CGO37sj8BgdD5J2cs6zZFzKHwJrkS0560YOt/7Z b+celCbKRSbr5+JYADgHsjNTOHDgbJWSCHxO2+jo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732618AbgCPUra (ORCPT ); Mon, 16 Mar 2020 16:47:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:58482 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732606AbgCPUr1 (ORCPT ); Mon, 16 Mar 2020 16:47:27 -0400 Received: from kicinski-fedora-PC1C0HJN.thefacebook.com (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BAF7C20738; Mon, 16 Mar 2020 20:47:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584391647; bh=fjHT+vXaGTkmgjflYBJF3oq9Wf1OCHxqOoCcMIvTVuY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gMyCe00HorkAkiTkqfcj7nUSVRiWiua0H7UuSBulNUTgQcTm5lF4mQEIqtyRN1TPo R9j3SNS89T7JqS9A5Xs1PHUtRn7kLvyBFNystTohvZoQloYxPdfzt9cAQkUsokHTAJ u5qxs/jj6Y5WsQwqk8emfaCWwmVT0AwjLtoIW7+A= From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, linux-net-drivers@solarflare.com, ecree@solarflare.com, mhabets@solarflare.com, jaswinder.singh@linaro.org, ilias.apalodimas@linaro.org, Jose.Abreu@synopsys.com, andy@greyhouse.net, grygorii.strashko@ti.com, andrew@lunn.ch, michal.simek@xilinx.com, radhey.shyam.pandey@xilinx.com, mkubecek@suse.cz, Jakub Kicinski Subject: [PATCH net-next 6/9] net: davinci_emac: reject unsupported coalescing params Date: Mon, 16 Mar 2020 13:47:09 -0700 Message-Id: <20200316204712.3098382-7-kuba@kernel.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200316204712.3098382-1-kuba@kernel.org> References: <20200316204712.3098382-1-kuba@kernel.org> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.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 --- drivers/net/ethernet/ti/davinci_emac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c index 75d4e16c692b..de282531f68b 100644 --- a/drivers/net/ethernet/ti/davinci_emac.c +++ b/drivers/net/ethernet/ti/davinci_emac.c @@ -481,6 +481,7 @@ static int emac_set_coalesce(struct net_device *ndev, * Ethtool support for EMAC adapter */ static const struct ethtool_ops ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS, .get_drvinfo = emac_get_drvinfo, .get_link = ethtool_op_get_link, .get_coalesce = emac_get_coalesce,