From patchwork Wed Mar 11 22:32:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 222666 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 69D7AC2BB1D for ; Wed, 11 Mar 2020 22:33:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C34D20746 for ; Wed, 11 Mar 2020 22:33:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583966011; bh=DrOJj7FblmzHCyeU8OeiFNaGZbNA6NVAq1m6hU7iBH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=b1mrxaJB8nDyMm6FRLDCSyGuuCOZaQtJmGa2ckH0YBf8So5DsPkLJpa7I9o84JCus E7aH4MXiS/4diD7EyBTV+HFW/2W/vY/Lsoulvsl31zsAN/w5IKEgkIQSK17anPZjk7 4Z8DrLyWGFPnxy1RsGRwe6Z0aBC58myb19GakMUY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387409AbgCKWdS (ORCPT ); Wed, 11 Mar 2020 18:33:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:37976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731349AbgCKWdR (ORCPT ); Wed, 11 Mar 2020 18:33:17 -0400 Received: from kicinski-fedora-PC1C0HJN.thefacebook.com (unknown [163.114.132.128]) (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 43A0A20752; Wed, 11 Mar 2020 22:33:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583965996; bh=DrOJj7FblmzHCyeU8OeiFNaGZbNA6NVAq1m6hU7iBH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HeGu7rj4YUUJGZCL+bsE/oyRqQiCDKJD4fCsjbixVXoeYf3etnsIdviP6Z1FIXd22 VzdqV/ZhV7CfhZDmG/zX8JNeT6P+3F79OhsihfD40Oh65XlR/HoMsjsggckBkwvXko x/3RxU5acAgXb/L9kNyDyt2ve90AYR83TUKXOA0g= From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, mkubecek@suse.cz, sathya.perla@broadcom.com, ajit.khaparde@broadcom.com, sriharsha.basavapatna@broadcom.com, somnath.kotur@broadcom.com, madalin.bucur@nxp.com, fugang.duan@nxp.com, claudiu.manoil@nxp.com, yisen.zhuang@huawei.com, salil.mehta@huawei.com, jeffrey.t.kirsher@intel.com, jacob.e.keller@intel.com, alexander.h.duyck@linux.intel.com, Jakub Kicinski Subject: [PATCH net-next 08/15] net: fm10k: reject unsupported coalescing params Date: Wed, 11 Mar 2020 15:32:55 -0700 Message-Id: <20200311223302.2171564-9-kuba@kernel.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200311223302.2171564-1-kuba@kernel.org> References: <20200311223302.2171564-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/intel/fm10k/fm10k_ethtool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c index 68edf55ac906..37fbc646deb9 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c @@ -1151,6 +1151,8 @@ static int fm10k_set_channels(struct net_device *dev, } static const struct ethtool_ops fm10k_ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_USECS | + ETHTOOL_COALESCE_USE_ADAPTIVE, .get_strings = fm10k_get_strings, .get_sset_count = fm10k_get_sset_count, .get_ethtool_stats = fm10k_get_ethtool_stats,