From patchwork Thu Aug 22 06:52:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhenwei pi X-Patchwork-Id: 13772750 X-Patchwork-Delegate: jgg@ziepe.ca Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 56FBF1531E1 for ; Thu, 22 Aug 2024 06:52:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724309555; cv=none; b=BPx5ZSUO+L7WtA1YlyfJ4woqawlWJrkork1+n5vMibhNbBPOYP9tShDpF+wrh70d71Xztj7oiz8JdSOplhdlK82fwk9edOMiSV+zPM9tJWMOrBtmKSAfWB8MF0IaVayuyqg2CjDRC5T07DY/16q1SBojWE6hI0Q2fVn9aIywmbw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724309555; c=relaxed/simple; bh=TukisUcZbsaqnUyQbHFmvX+q4tnh8Zwf4JnTxsNfl0E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OkfC8Vc25NZJfc5PymvXfEIZ0jPhHIRQKEw5pH5MzgMsiCzBMjhbTHxJJe9XcSsXO1kCrNZzdYlSNeAlRZnC2dOxiMm81eKTd8p9fLVnhqgokcD6Hx2MTUkVix4y5a0i8RnmPsI3YnJP9FZOd77RNjLajhHED0ZqGtIj3vbFCYw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=OIVknDTG; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="OIVknDTG" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-201d5af11a4so3838075ad.3 for ; Wed, 21 Aug 2024 23:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1724309553; x=1724914353; 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=nQFqWerFHqQW32XLucYPT25yaWxIWGQBA+zkA6La3Mw=; b=OIVknDTGLc/zjr00pPcsgA8czet3u4OYxphuTKjD4CjD0gNwnQMKZxhVynU3+06Qof GLo6qBCVPB11+6qM16VbhuphOQkdVzKb48IaRflNSZAR99QuOvs1Ct7a1eT4Z0dXjIX9 CXDGoatP3+zdLTKH+9+P9gTvO5paquim+lvt5GkvWad+wTNB7TnAqBPfURzAss3P9w5B wRjKhfK4HS/ETPZLIRtYeXP9JLLumuCw0Iu6slJG7ECfy6++Ouv4JDf75/MPHC60Nsd4 BApolAKqkZa92mbRZg69k8PYyw8tFxgGjIcUx4nm0sOZ2KKDznImDh6NWrv6qPCzpRvq sLNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724309553; x=1724914353; 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=nQFqWerFHqQW32XLucYPT25yaWxIWGQBA+zkA6La3Mw=; b=tBeJRkE2+8ZT16+S5YLOnhumapY17I/wlNNmafCeFwo8FhIPtn7ZfVjHfOL6CTYbuS JUm7A38Rw11BGOuwcYoQj1cjLLkNBC6J8BTDmddH08Xl29dOh3YhCJJLx0E0y+ucYH90 0ECXVoFzkyz1+L+jWgWzagaxCjdoqnLkvszbT100KKazTwhA7CV1cp61D6w97rjlyH96 Rtbi0tFTWy5FriELfXNu2RAGoDBcUBTgBtMPadyhn5jXbIs1rh7Hdh8HDDPpmX8jGHCE jtsfR/9tRmJ0Kd4OE/yGE25oryB5u3URVZaR/lhJpdcbxNxaeR3O9OIBlw9uxrj6xIWP Z9zQ== X-Gm-Message-State: AOJu0YwU7mRiPTBBLS0XXrKe0BQFc/OAMJlo1oxgm8afZ0zReFptuhUE ILTwnwEGG2NIlOfCkUulqJs6v/TMAsym7BPjJbHrCSson7HdGNtSiG2uTa3gyZMf9/1pjRLWbm7 W X-Google-Smtp-Source: AGHT+IE/bBwaY3/ihXg1+7sSGeF1aevL3H+a7yRXHNu93YQRdLaI38OoIcbKhNtUJ9ynRdtqxwJ/Cg== X-Received: by 2002:a17:902:db0e:b0:202:671:e5bd with SMTP id d9443c01a7336-20368090376mr53522775ad.42.1724309553443; Wed, 21 Aug 2024 23:52:33 -0700 (PDT) Received: from libai.bytedance.net ([61.213.176.12]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20385581165sm6150645ad.88.2024.08.21.23.52.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 23:52:33 -0700 (PDT) From: zhenwei pi To: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Cc: zyjzyj2000@gmail.com, jgg@nvidia.com, leonro@nvidia.com, zhenwei pi Subject: [PATCH 1/3] RDMA/rxe: Use sizeof instead of hard code number Date: Thu, 22 Aug 2024 14:52:21 +0800 Message-Id: <20240822065223.1117056-2-pizhenwei@bytedance.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240822065223.1117056-1-pizhenwei@bytedance.com> References: <20240822065223.1117056-1-pizhenwei@bytedance.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Use 'sizeof(union rdma_network_hdr)' instead of hard code GRH length for GSI and UD. Signed-off-by: zhenwei pi Reviewed-by: Zhu Yanjun --- drivers/infiniband/sw/rxe/rxe_resp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c index 6596a85723c9..bf8f4bc8c5c8 100644 --- a/drivers/infiniband/sw/rxe/rxe_resp.c +++ b/drivers/infiniband/sw/rxe/rxe_resp.c @@ -351,7 +351,7 @@ static enum resp_states rxe_resp_check_length(struct rxe_qp *qp, for (i = 0; i < qp->resp.wqe->dma.num_sge; i++) recv_buffer_len += qp->resp.wqe->dma.sge[i].length; - if (payload + 40 > recv_buffer_len) { + if (payload + sizeof(union rdma_network_hdr) > recv_buffer_len) { rxe_dbg_qp(qp, "The receive buffer is too small for this UD packet.\n"); return RESPST_ERR_LENGTH; } From patchwork Thu Aug 22 06:52:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhenwei pi X-Patchwork-Id: 13772751 X-Patchwork-Delegate: jgg@ziepe.ca Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 8CEC1170A22 for ; Thu, 22 Aug 2024 06:52:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724309558; cv=none; b=imIw8UUWPFoRTeTWTQT2cHYuDfa+Vro55Nsnh2TM1VdAvOcVRHOACcQxACfW12W7AJORLi+Q/KWUNdcifGVmx9gjPzPU+sTWSbBA8KvTh7/g4WFshz4o0jpslPtzyGszb1FXoispt+a/ZJ60ksNZJCso0Bboss9FGS3CMe43mfE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724309558; c=relaxed/simple; bh=HcNuhaMR5GFVKKfyDwml6/5AnDgXrYlzbwXlSe/GI6M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=s8IWzVFlNyoTvWNibcjiphv7yiP+PLkr6R5MY05xwkkseuQ35mJI/6xrHB2MUzsWZkJe1uzlEeKNjn/Goudtgy7nk27FIqLSD9y2xP4olvdYU1shFvVyPc1qwsQf0+N2PpVMsiK7yE7RTgfKUgFNFS/KT/BT/3X+UJXhsoaWz50= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=dsPouiyb; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="dsPouiyb" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-201e52ca0caso3539675ad.3 for ; Wed, 21 Aug 2024 23:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1724309556; x=1724914356; 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=snoV1iTL8bPhsSIyEH1EhK1+rRvIHObyd7ozZ6RtJgM=; b=dsPouiyblBiIxo/vC7BGFhMugUZSfcMMiTIhLp5bZhIdarW9a9qMEwzhNp/qASjgBL bfCy3+acVJjt2UWsYcPItq6WURPUovH8/DKcXysyWMwhNmQkW8c2I1IbB8IWiui1S+Du 7GXMzJk+Yr3rxI4DUc/QmvrVj36dMQFOXr2vzzSNaOfsCgdcCmCL/KZbGf0bs6BkqRyw cH9ETTv0NgqrSponX/oWuvbVvl8NIqS8R2/R4Xo+p9aHAqZZqi573EUa4z3vbPe4N9rR 3uKga0FKVpls5e2O1qknXd77n3gYoytwTzcpcSKDXp2ozLk5jGyD2yW7mBJBonwhmofl sVgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724309556; x=1724914356; 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=snoV1iTL8bPhsSIyEH1EhK1+rRvIHObyd7ozZ6RtJgM=; b=WFO0vxB3Ywu2fnoLcanGZV4Q5llOfyJnMxYcB1g68e21pXHytpnYQzN40kW10eoLUZ jdt3s40+Hf0odfvkJW/tTyDDwKdaduHIruD6HeW2ibghi8vW8whhfpvArhWT43Y4F0Cy i1fHrjhPzGP4Qs2bYsEWpcI7dyOG8y7TjygD0qtJOKgo7sWJB/G1FtPQ0CdPDDsAfstX NNqK/4XdyDaA8RBaHEgRBK1J5aJUynN4tYJzpmQyAknRTHSqZamXY2HucObkeJzeKBTB Nzy6QqthXiJUDleqVJyCOGbcdj1o9pQO/5ZUOMyn7yZZS8+1vNFbWBjcwz8Jq6vhMpCw Nr3g== X-Gm-Message-State: AOJu0YxLC6p9iVL3VGOTtD2MhWxlrXXnALM5YMVu3IKqNkoKtIll24Mm kvqNylWzoT+mfbS42SZ9/RU//Ja0rt+cKyUCySocXdktSBhh5rUuc41PSng+ZDT0P6TrUF7yKN5 O X-Google-Smtp-Source: AGHT+IGRh+LUc+DWLwZpWgmFamLq4T3hY6/bi7pybwa1EurEAQq3/LLWDaltr/gcMPtSfBCtUlG/8Q== X-Received: by 2002:a17:903:41c6:b0:202:3296:eec1 with SMTP id d9443c01a7336-20368199110mr48684385ad.36.1724309555919; Wed, 21 Aug 2024 23:52:35 -0700 (PDT) Received: from libai.bytedance.net ([61.213.176.12]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20385581165sm6150645ad.88.2024.08.21.23.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 23:52:35 -0700 (PDT) From: zhenwei pi To: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Cc: zyjzyj2000@gmail.com, jgg@nvidia.com, leonro@nvidia.com, zhenwei pi Subject: [PATCH 2/3] RDMA/rxe: Typo fix Date: Thu, 22 Aug 2024 14:52:22 +0800 Message-Id: <20240822065223.1117056-3-pizhenwei@bytedance.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240822065223.1117056-1-pizhenwei@bytedance.com> References: <20240822065223.1117056-1-pizhenwei@bytedance.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Fix 'rmda' into 'RDMA'. Signed-off-by: zhenwei pi Reviewed-by: Zhu Yanjun --- drivers/infiniband/sw/rxe/rxe_resp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c index bf8f4bc8c5c8..c11ab280551a 100644 --- a/drivers/infiniband/sw/rxe/rxe_resp.c +++ b/drivers/infiniband/sw/rxe/rxe_resp.c @@ -341,7 +341,7 @@ static enum resp_states rxe_resp_check_length(struct rxe_qp *qp, /* * See IBA C9-92 * For UD QPs we only check if the packet will fit in the - * receive buffer later. For rmda operations additional + * receive buffer later. For RDMA operations additional * length checks are performed in check_rkey. */ if ((qp_type(qp) == IB_QPT_GSI) || (qp_type(qp) == IB_QPT_UD)) { From patchwork Thu Aug 22 06:52:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhenwei pi X-Patchwork-Id: 13772752 X-Patchwork-Delegate: jgg@ziepe.ca Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 4663617C230 for ; Thu, 22 Aug 2024 06:52:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724309560; cv=none; b=Wrmj89EYlLj90xE7GlKBEAzvmtn80tZFM0A0kMQDQX4nEcjPvTWx+r1k6k3HD0k5XXL+MBjmM9t4U1gXJIa2ENbd4YL/QNTSi4YKV6c6InW9+9DaHDOPXEjk+lrCzderAUH/wY7ACHVB3j4bXHcAf2ILV5hVyvJMmmUkxvPBUK8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724309560; c=relaxed/simple; bh=Kz0RL/3q+stKWuxF5Fp9HxLiFrGykJcq/tGPmXfB0W0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fdF4fjV4SZwUts51mCCIU7PF6NcWalykzZnnC5C04t9Y264Yr+6CE5lDjX36m7BaLq2IMe97JcaUmeIYTUob/lJXsLDBCBQ8BGwqakuH4BF2cf45PJ0uZkgHdR1BLHhAvmgbc46kvQ5MCWkLbCkd8m1Mejbzz5KpVcqPzqnS1LM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=H4DMIfxx; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="H4DMIfxx" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1fc47abc040so4039545ad.0 for ; Wed, 21 Aug 2024 23:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1724309558; x=1724914358; 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=kobmIypLhy6KaTQHdYtXSfesiRM34LhpRCRqHumkiI8=; b=H4DMIfxxp9COsfd4dI1WZlDk/hH4Qf5tB+Bgfg9F2HLGgHOK4Ix7K7sCRZuFSyzHgQ b1mhAyB/5tVmnPQXiH3GjV2HlYWjBfJo5U7pAzntKtsEeleW3ukIdU9Al9Vz0hEmxk+m jyXeITz+qqEfIQjJg0jYyo20vy9ircq8SDbwoLmYSHLvbvnCBjAmeiTs6Da2olsJ2S5O vUsBtjLYm5ZnufQLORMqaXdI2aMDt8oEOLByKovIG0FYrruNdgdWHSACXguVx6IWE4oF Guo1DFleHZB5KM+AmHwRGE8naawZYa2qjm8x8VZZV2HoKm6wTKOhRccdyze3lkyvS7ZV m/Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724309558; x=1724914358; 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=kobmIypLhy6KaTQHdYtXSfesiRM34LhpRCRqHumkiI8=; b=R89UhaVj9wobEkx+qglWwZuHNP7EybiWRWUa9t/6VFwONeReJ5vLqdG8qZzLh7xeQq BKqWcJHTIY3N8+7ZMFHwvRTxfWSBA7eegV4Z/I/zMbhBOBF+6wXhkE1XQcTRjqDlW9OL MdC669JcY6mfOftjxYQbcoscewbw0g7jpyQ18KQAZNLJogRgze+zU05HLH0kgoFDoVUG H0z9jI2yZJv2hVJLaXbTc8FtvF1jFX9dBj1kp84MQ2Cxyv8dR7lXqQ6D6O8pBLnOmGB6 NWQ0jePD+274hs1Hu0Ev5RgYm8B31bbAAz7TfIUCjTFFRw6kvJzbylazn0UZOQLEwr1h nDrw== X-Gm-Message-State: AOJu0YwKIGw6Qcr6X2KT/XoVHuTQvHZpz1Gx0ebOKyUFOiCjrO9clBAs G2ktSuU0ovNOhCJRN6420Un/hkGghr5M4N6vaLsVL1wfdx83QUga0ljN8ZB4RS0eC8xHpHYHdjZ + X-Google-Smtp-Source: AGHT+IFr/jcphA0vIj3rv9to3TFxE9S9TejtS8sH68WR7W7lbaS3xbLfWvsOX6YKSbjIlyekbbDEow== X-Received: by 2002:a17:902:e88d:b0:1fb:4a57:7cba with SMTP id d9443c01a7336-20367d3685dmr49271095ad.34.1724309558376; Wed, 21 Aug 2024 23:52:38 -0700 (PDT) Received: from libai.bytedance.net ([61.213.176.12]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20385581165sm6150645ad.88.2024.08.21.23.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 23:52:38 -0700 (PDT) From: zhenwei pi To: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Cc: zyjzyj2000@gmail.com, jgg@nvidia.com, leonro@nvidia.com, zhenwei pi Subject: [PATCH 3/3] RDMA/rxe: Fix __bth_set_resv6a Date: Thu, 22 Aug 2024 14:52:23 +0800 Message-Id: <20240822065223.1117056-4-pizhenwei@bytedance.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240822065223.1117056-1-pizhenwei@bytedance.com> References: <20240822065223.1117056-1-pizhenwei@bytedance.com> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 __bth_set_resv6a is used to clear BIT [24, 29] of rxe_bth::qpn, the wrong expression leads other BITs into 1. Signed-off-by: zhenwei pi Reviewed-by: Zhu Yanjun --- drivers/infiniband/sw/rxe/rxe_hdr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/sw/rxe/rxe_hdr.h b/drivers/infiniband/sw/rxe/rxe_hdr.h index 46f82b27fcd2..1f0322491d8c 100644 --- a/drivers/infiniband/sw/rxe/rxe_hdr.h +++ b/drivers/infiniband/sw/rxe/rxe_hdr.h @@ -234,7 +234,7 @@ static inline void __bth_set_resv6a(void *arg) { struct rxe_bth *bth = arg; - bth->qpn = cpu_to_be32(~BTH_RESV6A_MASK); + bth->qpn &= cpu_to_be32(~BTH_RESV6A_MASK); } static inline int __bth_ack(void *arg)