From patchwork Wed Mar 11 22:32:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 222669 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 69432C2BB1D for ; Wed, 11 Mar 2020 22:33:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49E642074B for ; Wed, 11 Mar 2020 22:33:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583966002; bh=IZjE32cNPfrCsA261hM6rUQzaWjmB0wOkaX8g0K06oY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=A4Dl12i5Q8xkIKVdDXlTF7iSLpTUBTx7TWqhw2/oygMey9/yGqHu+6M/+Z6VskgZH dVqNGrDGBSA7JTCc2+Aq5qKPnfnCLnmtX/uiY9ZbU/oTiUfZO2GRQt959nima8kwHP Au5cV5X34ZJpPruQIzNA6WeJlqY8e/af3HxY7G8Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387484AbgCKWdV (ORCPT ); Wed, 11 Mar 2020 18:33:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:38158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387476AbgCKWdU (ORCPT ); Wed, 11 Mar 2020 18:33:20 -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 875CC20754; Wed, 11 Mar 2020 22:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583966000; bh=IZjE32cNPfrCsA261hM6rUQzaWjmB0wOkaX8g0K06oY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vo5LMHFP85w8yvrwET0DAxYkrYVnHBviG0JORjGBR0MzN4BEFsxizK0azZ4FI9sGk j9P5s0VWI4/1+r09PojPZJl+wjpV3KO1otf6nMNVcYqGv78j52FgUIF4dE7rAoHtcB fdxDgFRKToXxiW5e/zeSeSqYeU47AADBkD1qU99Q= 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 12/15] net: igbvf: reject unsupported coalescing params Date: Wed, 11 Mar 2020 15:32:59 -0700 Message-Id: <20200311223302.2171564-13-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/igbvf/ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/igbvf/ethtool.c b/drivers/net/ethernet/intel/igbvf/ethtool.c index 3ae358b35227..9217d150e286 100644 --- a/drivers/net/ethernet/intel/igbvf/ethtool.c +++ b/drivers/net/ethernet/intel/igbvf/ethtool.c @@ -424,6 +424,7 @@ static void igbvf_get_strings(struct net_device *netdev, u32 stringset, } static const struct ethtool_ops igbvf_ethtool_ops = { + .supported_coalesce_params = ETHTOOL_COALESCE_RX_USECS, .get_drvinfo = igbvf_get_drvinfo, .get_regs_len = igbvf_get_regs_len, .get_regs = igbvf_get_regs,