From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E28ACC00140 for ; Mon, 8 Aug 2022 04:34:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 65D5F60D4C; Mon, 8 Aug 2022 04:34:13 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 65D5F60D4C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1659933253; bh=kd23AvGmGiHFpZ3yka/PL5Pk1SxaH38hS4vdxYb3GhU=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=A9q1ZC+YGVU5Snn5BwmshoGeaDP+DdCzO9PpjvV8OTnek6/8fycc3cErUNQ6eZrG3 gyFwUhOAc8Ava1HTe2fOwRWW68Nz4U/slcgR1CrwKJxU8ZUgs+QacJCjI8fGa14hB6 sVuq4PopZAHOFZnfeQFjQKj+26WX+Yg1Ksz5TZmLCT05PxoqB6lJrFYvcAiKUM+/74 LWVbGbIR7yX7nn09q87AtGSF18mK+DX7qFOTAqVunqCFF+8RZpxeDokDf/8MHl+GMp thNFinx28JFJ+954t4IGIARA3vihhfyiNldBUSyEbY4ZK/sca7uMXq01aXAPE8GGQZ h0WIcad3bdKnA== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6DiILmfxp7ec; Mon, 8 Aug 2022 04:34:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 7216860D6E; Mon, 8 Aug 2022 04:34:12 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 7216860D6E Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9710E1BF3DB for ; Mon, 8 Aug 2022 04:34:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7311B813D6 for ; Mon, 8 Aug 2022 04:34:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 7311B813D6 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xFLLDlxluzmF for ; Mon, 8 Aug 2022 04:34:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org AC595813C3 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by smtp1.osuosl.org (Postfix) with ESMTPS id AC595813C3 for ; Mon, 8 Aug 2022 04:34:09 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6400,9594,10432"; a="291276141" X-IronPort-AV: E=Sophos;i="5.93,221,1654585200"; d="scan'208";a="291276141" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2022 21:34:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,221,1654585200"; d="scan'208";a="663764540" Received: from wasp.igk.intel.com ([10.102.20.192]) by fmsmga008.fm.intel.com with ESMTP; 07 Aug 2022 21:34:01 -0700 From: Michal Swiatkowski To: intel-wired-lan@lists.osuosl.org Date: Mon, 8 Aug 2022 06:23:39 +0200 Message-Id: <20220808042339.2979-1-michal.swiatkowski@linux.intel.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659933249; x=1691469249; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ke5eO7NX380+LtCKQ7rojfPzbWT0agTzuBFLIY43yDQ=; b=gvDU7y/XvGS5vGPzhhLtN1Zz161uM7s11pcKBkoWbBZXscub3dlmt2/4 RadJryK94VsR03PwZ0ECLdBx5VUWYVIJ0XEHo9akJNCnBMVsRnOArFizh U5AmEvkXQipjG8BiIOkD00qjm0VpgH3sIBd0d9zy2tnpkFeywxp01n6D0 ZT/pA3EjyFkBqjagYvV4nSz7NsvcGFiIy2z1VblnqHoht7eG4kvpSi0Vj VIHymUDO99LDJSBQVD0Ek/TaoSTE6BnGVkqLB7L+Q/8D5fLAgQ9/m4R14 2HXCVmrR41DeCPdJ80mWo1lJILv/GYW9Gz/jGlcp/H2JImtopvHSH6Ta6 Q==; X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gvDU7y/X Subject: [Intel-wired-lan] [PATCH net] ice: config netdev tc before setting queues number X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" After lowering number of tx queues the warning appears: "Number of in use tx queues changed invalidating tc mappings. Priority traff ic classification disabled!" Fix this by setting correct tc mapping before setting real number of queues on netdev. Fixes: 0754d65bd4be5 ("ice: Add infrastructure for mqprio support via ndo_setup_tc") Signed-off-by: Michal Swiatkowski --- drivers/net/ethernet/intel/ice/ice_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index d992321e74ba..bb17bcfd2529 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -6918,6 +6918,8 @@ int ice_vsi_open(struct ice_vsi *vsi) if (err) goto err_setup_rx; + ice_vsi_cfg_netdev_tc(vsi, vsi->tc_cfg.ena_tc); + if (vsi->type == ICE_VSI_PF) { /* Notify the stack of the actual queue counts. */ err = netif_set_real_num_tx_queues(vsi->netdev, vsi->num_txq); -- 2.36.1 _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan