Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp661363rdd; Tue, 9 Jan 2024 16:15:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7n1yTFYIOjL0DdkIns6X86ioWHtqVcU+M++6SJoXUrmueAXNtTsiR+Ao1pi2/axgZC4Wg X-Received: by 2002:a17:903:2805:b0:1d4:389a:925e with SMTP id kp5-20020a170903280500b001d4389a925emr152478plb.84.1704845730414; Tue, 09 Jan 2024 16:15:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704845730; cv=none; d=google.com; s=arc-20160816; b=Xm78ITKTP0UVnkVMtDlcGn2OQMW0BOEZ6NM44mSZgi3ItnfDFVV3ofeCN1ycMpOvQI Gh+/lAOFnNd+6Xivw+vAntrbn6Un4YL7ksCq8/YixVkPhUENjvo2n+FxJu2s/fwG12Bu v7eEUNnpJLKjdHfO7PGwArMWzbL2Q+YTNWKrGp3hMV61ydB+l6FXRN8AGavJ2QxBSWHJ jtIrcyOr8u8Y9k2YQM5tkNAPjTdUrw0MCivM7h5qI5BJpBGnt8aE3v+CE95ifmrOXq40 EUSKyieWOzJGQJSA/ok8o2bIFSJctP0GCb2wGM5t4+mc/BmUjrCnrm97W3DhReMAXzaH e/6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:dkim-signature:message-id; bh=ffxVLH87KRr6B9kcKIEQq8DyZSXe/NjqG0PIapgXwSI=; fh=Fgf/6YsPSXoj9Obkdl+C/SAXnj8YQah1rqeZ5bahV+0=; b=jw9NwdaBCgWPnyRHh19NZc7v4xKGw6XfSDB0q3xIjWaea6CGYLiMuPNiiKaxl81z+w egSLQ3hNfJRMzsVBtdpRAFbj/Ta3ZPXA5XZeISPr8feEtJWP/MxiOgdARMndOoIIDms8 Agp2Za1S6scCO4Mt5W1mUm/qS4F4Zu4zA5ETKz4y7pyOkQcxUfXa2YLKigQU6NS0fW1S z2Lm4G4JP5zNNYt9z2WfW5F1+eBQ6C2RyYT/E1SywRZ9oReOiSKtgeGwZDaIWqZh0r6X wZ8DCoJ3LtYG2h88LNzGlgq9/sH42qNyC3aBs6UW9qTxAI1fbyEd9nd48SWlxkcDspbA 5nvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="J/T643ap"; spf=pass (google.com: domain of linux-kernel+bounces-21563-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c9-20020a170902d48900b001d483d5a0b6si2521576plg.157.2024.01.09.16.15.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 16:15:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21563-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="J/T643ap"; spf=pass (google.com: domain of linux-kernel+bounces-21563-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 15B8F288B56 for ; Wed, 10 Jan 2024 00:15:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 302E7396; Wed, 10 Jan 2024 00:15:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="J/T643ap" Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (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 502FC18A for ; Wed, 10 Jan 2024 00:15:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1704845717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ffxVLH87KRr6B9kcKIEQq8DyZSXe/NjqG0PIapgXwSI=; b=J/T643apHZ0O7XaCKwpiXS4UTBm8Ys7Tet0z5SPcZXq5k3Z5LgiRMg4yMV4i7401tANG/y vzTrnwvZsE4NjmgH3zvN6xC/zsxaAuq6valDtlIvZxRsrjl2t+69jUU3kUUNdxTJBtjkvy r3BfZfL3H5vqKYOjrJxNqibjfbUXjl4= Date: Wed, 10 Jan 2024 08:15:12 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH for-next v4 2/2] RDMA/rxe: Remove rxe_info from rxe_set_mtu To: Li Zhijian , linux-rdma@vger.kernel.org Cc: zyjzyj2000@gmail.com, jgg@ziepe.ca, leon@kernel.org, linux-kernel@vger.kernel.org, rpearsonhpe@gmail.com References: <20240109083253.3629967-1-lizhijian@fujitsu.com> <20240109083253.3629967-2-lizhijian@fujitsu.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Zhu Yanjun In-Reply-To: <20240109083253.3629967-2-lizhijian@fujitsu.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 在 2024/1/9 16:32, Li Zhijian 写道: > commit 9ac01f434a1e ("RDMA/rxe: Extend dbg log messages to err and info") Thanks. Maybe move this "commit 9ac01f434a1e ("RDMA/rxe: Extend dbg log messages to err and info")" to Fixes tag, is it better? Reviewed-by: Zhu Yanjun Zhu Yanjun > newly added this info. But it did only show null device when > the rdma_rxe is being loaded because dev_name(rxe->ib_dev->dev) > has not yet been assigned at the moment: > > "(null): rxe_set_mtu: Set mtu to 1024" > > Remove it to silent this message, check the mtu from it backend link > instead if needed. > > CC: Bob Pearson > Signed-off-by: Li Zhijian > --- > V4: Remove it rather than re-order rxe_set_mtu() and rxe_register_device() > --- > drivers/infiniband/sw/rxe/rxe.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/infiniband/sw/rxe/rxe.c b/drivers/infiniband/sw/rxe/rxe.c > index a086d588e159..ae466e72fc43 100644 > --- a/drivers/infiniband/sw/rxe/rxe.c > +++ b/drivers/infiniband/sw/rxe/rxe.c > @@ -160,8 +160,6 @@ void rxe_set_mtu(struct rxe_dev *rxe, unsigned int ndev_mtu) > > port->attr.active_mtu = mtu; > port->mtu_cap = ib_mtu_enum_to_int(mtu); > - > - rxe_info_dev(rxe, "Set mtu to %d\n", port->mtu_cap); > } > > /* called by ifc layer to create new rxe device.