Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp761045lqg; Sat, 2 Mar 2024 00:20:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVDCpMRjaft/D1i4nApIcydqbWZipU3NyYFI4dXiqUPd/MJdb4j5jhk9sWs8k4v7ff6Yz69++GYCzW7a+2ZWhoggo99iBBBXgEKotrJnQ== X-Google-Smtp-Source: AGHT+IG1IbG7Z9Yd43JwXwz15/xwO4gWLeRkTlbgMnuJZn/x/NPKHuLs7LZSgW8saJbiKpvbjrOn X-Received: by 2002:a05:6a00:8805:b0:6e5:e1d6:fe9c with SMTP id ho5-20020a056a00880500b006e5e1d6fe9cmr1251452pfb.2.1709367628805; Sat, 02 Mar 2024 00:20:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709367628; cv=pass; d=google.com; s=arc-20160816; b=wRTt8PboBs2ONdwfE/ijSNXqw70VuxOojH7llqUyCS2azsCgPJYpae+/KueB1zRz93 0qgg4m9J04KBfEzdCveeqRffGeD1U6/8sdQXU8wZF3WpIgZQOQfhFP08/IS+GgVleDIl he28KJhYcXgWYStnSOw6Zd8yOwK9WuAQrNI+dwsEAbZdxo8moylovLjzyT9YCRyEUoOA Y7UzwLO2cP8yrB9B+l1HUkP4FesNH7iCvbGxk07waExmksZtpZScgsEqJVRayZbuZRbb KBzRxnccVgeeRW83uGCtL4gFSXz+rE8SMYItBG9maGD1m8AuVDEzl8uaF0vlgtICYPbQ Gqfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=Us5iaY3zrecGucIuG0sAon7Ztbk6qEAMXzpMkcxhXY4=; fh=5JQ14r5zzebtL2k8xzJah9Q8x8+r3+yPaEahHOmShPY=; b=d4ZulLEVXXZ3EkJQItJQIFFTH3Suu9SbCHEYLJqr+gZ4eabC6YRRe5YQvw1XlN0SVk DnoeiBR9ekBoYllsz4Cjq14pMKTVXdlHqXmnhTDtHho5EjDBvccC04ShowL5JvQaespc BCy4375rLmOd1r1KiHO//qKnYSGewNY9ZYrjue9aArR6tarRWGUYsEddNrCFOGnzY30Q KBXZfYBY3s4JOOXVYJLZ51Kp4mps9LVX4hXULXutHLYACOqSFzDCtm/sB07k/moWga5f QWGbooQzIz3hMqYbr2X3E4IKDDE7aF4hcO3mwOvlF+PH+1ToUGzzsnmojm//5MHXegTC lmig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-89368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89368-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w16-20020a056a0014d000b006e5eecebe46si577181pfu.322.2024.03.02.00.20.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 00:20:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-89368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89368-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 708E7284DAE for ; Sat, 2 Mar 2024 08:20:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9C7A156E4; Sat, 2 Mar 2024 08:20:12 +0000 (UTC) Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3F8B12B83; Sat, 2 Mar 2024 08:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709367612; cv=none; b=lDa4O5KNgKL6tjXXGyRdgog1bH9vhRk4hoWr441ZQ5q0P6I8EOdug99aib6QE/C+l+NFFN9agmOnaGYPDbrjiJhgHrNx02Zld3C6KSlewX/qAHLPlhVz1f20RhBpzxKF2+GRRBkKa2lLae7LGYeBkgdT61ySMm49WX+ZqOdgze4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709367612; c=relaxed/simple; bh=HlGnkN+gyjOOzDLmS5VehlLSLAGxnQMbjYYBTtTaveA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HLlQoFJ0BknlZJ8meoJylVm4FJzlk+LJOF8f0gCiIaTZmASHOwqIWd6a/a86JYqUJQ10PxLNDiLlT128RfXM5DXuG/x7oT/k6dtFCUMsIRGeLEh8FH4T2xecyzxQmwT6jCTXp+3WaQO819GzUr9BUUTfgxp79FdMfHx0HKSn0ZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [192.168.0.224] (ip5f5aeb37.dynamic.kabel-deutschland.de [95.90.235.55]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id BAD2661E5FE05; Sat, 2 Mar 2024 09:19:06 +0100 (CET) Message-ID: <51b6c48b-a33e-46cd-9b00-5568ccc529ca@molgen.mpg.de> Date: Sat, 2 Mar 2024 09:19:05 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Intel-wired-lan] [PATCH Linux-6.8-rc5 1/1] ixgbevf: start negotiate with api version 1.4 To: Yifei Liu Cc: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, lihong.yang@intel.com, harshit.m.mogalapalli@oracle.com, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, jack.vogel@oracle.com, netdev@vger.kernel.org, ramanan.govindarajan@oracle.com References: <20240301235837.3741422-1-yifei.l.liu@oracle.com> Content-Language: en-US From: Paul Menzel In-Reply-To: <20240301235837.3741422-1-yifei.l.liu@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Yifei, Thank you very much for your patch. Am 02.03.24 um 00:58 schrieb Yifei Liu: > ixgbevf updates to api version to 1.5 via > commit 339f28964147d ("ixgbevf: Add support for new mailbox > communication between PF and VF") > while the pf side is not updated to 1.5 properly. It will lead to a > failure of negotiation of api version 1.5 This commit will enforce > the negotiation to start with 1.4 which is working fine. > > Normally the pf and vf side should be updated together. Example: > commit adef9a26d6c39 ("ixgbevf: add defines for IPsec offload request") > commit 7269824046376 ("ixgbe: add VF IPsec offload request message handling") Why can’t the PF side not be updated to version 1.5 too? If you don’t mind, I’d format the commit message like below. Commit 339f28964147d ("ixgbevf: Add support for new mailbox communication between PF and VF") updates the driver ixgbevf to API version 1.5 while the pf side is not updated to 1.5 properly. This leads to a negotiation failure of api version 1.5. So, enforce the negotiation to start with 1.4 which is working fine. Normally the pf and vf side should be updated together. Example: 1. commit adef9a26d6c39 ("ixgbevf: add defines for IPsec offload request") 2. commit 7269824046376 ("ixgbe: add VF IPsec offload request message handling") > Reported-by: Manjunatha Gowda > Signed-off-by: Yifei Liu > Reviewed-by: Jack Vogel Please add a Fixes: tag. Fixes: 39f28964147d ("ixgbevf: Add support for new mailbox communication between PF and VF") Unfortunately, I am unable to find this commit hash. What archive/tree is it from? > --- > drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c > index a44e4bd56142..a1b9b789d1d4 100644 > --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c > +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c > @@ -2286,6 +2286,12 @@ static void ixgbevf_negotiate_api(struct ixgbevf_adapter *adapter) > > spin_lock_bh(&adapter->mbx_lock); > > + /* There is no corresponding drivers in pf for > + * api version 1.5. Try to negociate with version negotiate > + * 1.5 will always fail. Start to negociate with > + * version 1.4. Could you please use the fully allowed line length, so less lines are used? > + */ > + idx = 1; > while (api[idx] != ixgbe_mbox_api_unknown) { > err = hw->mac.ops.negotiate_api_version(hw, api[idx]); > if (!err) Where is `idx` set before? Unrelated to the problem at hand, but enums or macros should be used for the API version. Kind regards, Paul