Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1643891pxy; Mon, 2 Aug 2021 06:58:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1LM5hlig7EtnwpnA/yGpyfptiPWmLlGpX7HcPhCr75IhDqb1O58goP8pPmsE06dI5npUd X-Received: by 2002:a02:c491:: with SMTP id t17mr14989972jam.56.1627912720108; Mon, 02 Aug 2021 06:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912720; cv=none; d=google.com; s=arc-20160816; b=Eqn8DZL5sqYBPek9FNZkh1WDjnW4ZAQSbPnYpBLgsFJav0w4TG9uCdXudfDxTyy++S WsUyQhsmOu1CMoiN9bHcxFtA2Pwra+/9Q0AenOQhuobVIqpu4W1QxJptaQv7d4ZoDNsQ g1DkV9CKz2mJRkRIlBQ08mu7NuGNVDVqWEG7hYbAgc68f+UkQk9GRJXyNREsHcXZ/zi3 4/69IPqDT8AzLH6ZgY4juW9tfbJkp7rP8yqw5qD5UcQjW1mFrqq7yk4DPqTqg60l8gML 7WSS9Xl57HGnvnXKyvrH1FgqW58JRGJwnL3xnX3bGTJx/mjkknh4IbADTFyh+qw+nO4+ uA7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QXpVpG3MXC6ukbgnbyqrjbTvPNtKrX7sdinT1XY/7LE=; b=PgqgYJ/WXQPdzEdJ71jysaqdqKHioMQtvC0MD5DlbZEUdT0P5Ddredcb4c/YYy3Trl U6jR814Liw1Rto66CURnsvlNmibMJu/F1f76yVlEqaAHTtKlyABWrwSuyLsHnMTLpj0g UyEVRV6lRdFtwUHkmiGzNoz1uZ2TKuYSzPt5swXrIbQwupIAB7PLJRlXCoYi5d7ZBrNe nt0zPVs/XBfmFJoeoDi2YcDvXLY1Kw12EOU4m2FNPqOOBlff3G81LGo09wPOLHJa4Ahe VK2eVT2xYSw2HBQQjUSf8rJ6Jsxz8YEe0um9ykmTmNfEL1jJBoeHURBqEgvRIUSI/unl HDcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gF9sXCdk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si11041092ila.73.2021.08.02.06.58.28; Mon, 02 Aug 2021 06:58:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gF9sXCdk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235770AbhHBN57 (ORCPT + 99 others); Mon, 2 Aug 2021 09:57:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:60854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234662AbhHBNvj (ORCPT ); Mon, 2 Aug 2021 09:51:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A6DF61132; Mon, 2 Aug 2021 13:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912271; bh=RvlzaTi2SKCSZoar0AlM44q+r7STlw19hRUlkkU7cxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gF9sXCdkC8MBLY1LsHF8OU8cF87Lr9tnlGF/s1X/nFh0ysKf4ucyRUQ33bplMUL0R vKxpbqXzFlahbZ16xthAzy4ERap9+6vGDbi4aQcvaHBAYLah4ET/1dm9IYFCm6vjJt kXN5ElJA66lXJmVAGe78s9EC6LN+YvydXlezNSas= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Grzegorz Szczurek , Jedrzej Jagielski , Imam Hassan Reza Biswas , Tony Nguyen , Sasha Levin Subject: [PATCH 5.4 25/40] i40e: Fix log TC creation failure when max num of queues is exceeded Date: Mon, 2 Aug 2021 15:45:05 +0200 Message-Id: <20210802134336.192626684@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134335.408294521@linuxfoundation.org> References: <20210802134335.408294521@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jedrzej Jagielski [ Upstream commit ea52faae1d17cd3048681d86d2e8641f44de484d ] Fix missing failed message if driver does not have enough queues to complete TC command. Without this fix no message is displayed in dmesg. Fixes: a9ce82f744dc ("i40e: Enable 'channel' mode in mqprio for TC configs") Signed-off-by: Grzegorz Szczurek Signed-off-by: Jedrzej Jagielski Tested-by: Imam Hassan Reza Biswas Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/i40e/i40e_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index 7140c1386143..21ab7d2caddf 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -6878,6 +6878,8 @@ static int i40e_validate_mqprio_qopt(struct i40e_vsi *vsi, } if (vsi->num_queue_pairs < (mqprio_qopt->qopt.offset[i] + mqprio_qopt->qopt.count[i])) { + dev_err(&vsi->back->pdev->dev, + "Failed to create traffic channel, insufficient number of queues.\n"); return -EINVAL; } if (sum_max_rate > i40e_get_link_speed(vsi)) { -- 2.30.2