From patchwork Wed Jul 31 13:15:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wei X-Patchwork-Id: 13748795 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 739461AD419 for ; Wed, 31 Jul 2024 13:15:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722431750; cv=none; b=Twl4iDVl7MZlu9RSgecCtSFlRfjqDzwxHxj7w+4fFdmx4TZAn8Sg/zbANmLtc7WEimcS7B7w6PKNXXXJOxkE1BKtBiZIeR0i6JpIJzvRUFxi/mdmYCVpD0KbfzBDzX/lh5KT52IChxtpobFALCSUEmJXQGFckWCI2W+i/oVp62A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722431750; c=relaxed/simple; bh=nV4ki4QhBStX81MtSCM80aOZNRBMYokwFEBdu4cHtMA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Gt5k9lawjUOE4sM29LmOhDR1YuqbhG8ipS/bdDd0NR4cvtJLM96+BOgO6C8PgqaHLN/RL9X57gLcNSJAZCPc7CM7cA9dd2+hJxp0X/PtrIwV+4FIKtxYAmqeBMJ+yucvCuUuVBsSFKerr+4UzLfXMMkfkNkodHmi0TXFQYsO/Ec= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=davidwei.uk; spf=none smtp.mailfrom=davidwei.uk; dkim=pass (2048-bit key) header.d=davidwei-uk.20230601.gappssmtp.com header.i=@davidwei-uk.20230601.gappssmtp.com header.b=tva6NSVy; arc=none smtp.client-ip=209.85.216.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=davidwei.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=davidwei.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=davidwei-uk.20230601.gappssmtp.com header.i=@davidwei-uk.20230601.gappssmtp.com header.b="tva6NSVy" Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2cf78366187so3655093a91.3 for ; Wed, 31 Jul 2024 06:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davidwei-uk.20230601.gappssmtp.com; s=20230601; t=1722431748; x=1723036548; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=o/oKIVixDcENB/ht6EYBvQyg9lE3Ljw+hngvqeYpDhc=; b=tva6NSVygn/Y3kGRGpEhgAoFBKw08x26gf/xL5YqPSRFUKZYUNtciqTgQv97Y9oamb F3FfUS8LeVOlzOVFGZfKF7EjQ7D2ZSJ/zGOgNAstzLGcsPzcA5Bdlg1q66uBNch99WI1 Ee7Lo+GQ1AzJNLJEJie2U1CkVWWFiEumxlJfPzY3LAD2d77xZzAsxuASdVlc6PP6obwa BmTz7fk7atjCiskQNyP8yzd01TAaKspDhpykBS7kRFxZEMjdRI8GL2fQdPCoXTMjyTAx Nz9WHg064n/XGxfe/O1A1XcXBOJyj0v+kgA9oS9J4Hnf0fa2etCllxq17YsIR+Z4XUjs Sr0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722431748; x=1723036548; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o/oKIVixDcENB/ht6EYBvQyg9lE3Ljw+hngvqeYpDhc=; b=IxYduZYCHsrtsd4qPYXQ/XUU9GM/I4fWY/SM8HoTxWFtARB4uQWQXsuDvZveapSGR7 P9q1e4hx7jMfB2TUaIDlFEwHNyQ1XwusWb/yRpJ4S2uemrqiEKbrG44fQRdZ4doFSFDV sTjYnzqJGvVdoi0fxTbTYo9Q5CVnQzuHWLLWKgFXz2qio0FBf4XrC6SrOSWbwf6YoS9w 2Hu+vpos3EU0dpZ/gKk8V/IeYcoU6TgkOWNKrSeAJuWew6RaK/Zl/r+ac/c35H+PiBy8 0A6j+bL+tckTol3vlzAAy0w9XEFfvnaKLSkBTiwnrs3FWyASV6dj1+mY9+N82GxA86Nq pjRg== X-Gm-Message-State: AOJu0YxfWCWWQZZQHEodPCc3tSFR2lIq05N7D0RXRy94WH5q6VretkPX Y9e8xBIww5KKuRFsAYHG+LbXBsFH6VH5e6No6/Q+lwKe5DdXC+3XU0cM31RwgIAPaToI60jBw1f RxZY= X-Google-Smtp-Source: AGHT+IFxfTTOBKfxnWbbHyuN+30WJE01HYq86IpscL4Dls32Mv4RRCg71kANjgBp1X+Y/nsc6D/zRA== X-Received: by 2002:a17:90a:eb07:b0:2c2:f6a2:a5f7 with SMTP id 98e67ed59e1d1-2cf7e1df038mr18906014a91.13.1722431748498; Wed, 31 Jul 2024 06:15:48 -0700 (PDT) Received: from localhost (fwdproxy-prn-009.fbsv.net. [2a03:2880:ff:9::face:b00c]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2cfdc4cf655sm1272905a91.38.2024.07.31.06.15.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 06:15:48 -0700 (PDT) From: David Wei To: netdev@vger.kernel.org Cc: Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Michael Chan , Somnath Kotur , David Wei Subject: [PATCH net-next v2 2/4] bnxt_en: set vnic->mru in bnxt_hwrm_vnic_cfg() Date: Wed, 31 Jul 2024 06:15:40 -0700 Message-ID: <20240731131542.3359733-3-dw@davidwei.uk> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240731131542.3359733-1-dw@davidwei.uk> References: <20240731131542.3359733-1-dw@davidwei.uk> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Set the newly added vnic->mru field in bnxt_hwrm_vnic_cfg(). Signed-off-by: David Wei --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 52998065956e..8822d7a17fbf 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -6579,7 +6579,8 @@ int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic) req->dflt_ring_grp = cpu_to_le16(bp->grp_info[grp_idx].fw_grp_id); req->lb_rule = cpu_to_le16(0xffff); vnic_mru: - req->mru = cpu_to_le16(bp->dev->mtu + ETH_HLEN + VLAN_HLEN); + vnic->mru = bp->dev->mtu + ETH_HLEN + VLAN_HLEN; + req->mru = cpu_to_le16(vnic->mru); req->vnic_id = cpu_to_le16(vnic->fw_vnic_id); #ifdef CONFIG_BNXT_SRIOV