From patchwork Tue Dec 19 14:26:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wen Gu X-Patchwork-Id: 180984 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1976961dyi; Tue, 19 Dec 2023 06:30:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjinXwUkqjOUnTOEIDRFFk8sRU4IRGtuuNY4J9UqN3ysl4nLR0MEXKkQdO9DeUv8JFYzm4 X-Received: by 2002:a17:90a:2f41:b0:28b:9f38:22b2 with SMTP id s59-20020a17090a2f4100b0028b9f3822b2mr1492003pjd.71.1702996246880; Tue, 19 Dec 2023 06:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702996246; cv=none; d=google.com; s=arc-20160816; b=GwuQpf/M82rsjJU4grk1Vh2SBsGnQ1netC3jd0mI3FRW5qdGuzMQKQCmCSEmSdUI6S G2/UbhYxQ1oxO/Ykmn+V8XE6cMAcXN+AROf/GkZE82hyd1lVhl2uv1V8atGtGtXuDC9/ X+EOontS3/1jiuZjwdtG5n/4o0iAsEfrMGa8hmBtnrp9ZhE1odyj/9JgYNDH774cWULc Va+skU2Tzw2K/oNlyxBIwVk1wGibItVo9Y0QW1pocBR8vsCe6+POdkC1HDpp0ITGF2M2 tjKtJilEj1dSBnDK1l8xqNgYhkCJY+nKSExV4ILg91CJsshHcFYt+W2o0Ye7r8ExtY+r WYHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=MIwmbO395E+/tmx7duEs0PmFs1qqbpMJ2/ig9BUZQOg=; fh=uTJ0crBczByYIhxgrQpYUSGkMqtgvc9XI1pgPEVZjxY=; b=X71a3zB3L3vJAjWaLVsmT0ZyzRAuIBG9EX1A+eyfdbQ5ktBi+ppkMwRq/me43o6yN/ v6g1j65Z4wahcOgkFdf9taGh2Ksx+uXfoSkFzefpWQOyRHDeLXwTmfk/G1kh4V2Nj5Z1 ckhadV/Yz31Nh3SLlH88NtlIbY2HxWyBocqsmvKDgqI7lcNmVK7AdONsB0GRul59dRBa HTN9KWkYFAvpbNGi9jv2ZJ2lyvqM1AqrRTfzlzlFZMo8Ui5jBhK/3TpGwjB3qpTcJLnU 0IrUt3fhtOOaNG3TGFmFv53MYIdPn260iEGQA9fXRTf9YmTz/jml2gqyoWKXh1JC8Wvv LAIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5360-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5360-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f3-20020a17090ac28300b0028b67e6539dsi1285594pjt.27.2023.12.19.06.30.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:30:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5360-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5360-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5360-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DC3CCB25458 for ; Tue, 19 Dec 2023 14:28:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2B0F1EA7D; Tue, 19 Dec 2023 14:26:41 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (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 6242D1D140; Tue, 19 Dec 2023 14:26:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=guwen@linux.alibaba.com;NM=1;PH=DS;RN=22;SR=0;TI=SMTPD_---0Vyr9-M0_1702995993; Received: from localhost(mailfrom:guwen@linux.alibaba.com fp:SMTPD_---0Vyr9-M0_1702995993) by smtp.aliyun-inc.com; Tue, 19 Dec 2023 22:26:34 +0800 From: Wen Gu To: wintera@linux.ibm.com, wenjia@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, kgraul@linux.ibm.com, jaka@linux.ibm.com Cc: borntraeger@linux.ibm.com, svens@linux.ibm.com, alibuda@linux.alibaba.com, tonylu@linux.alibaba.com, guwen@linux.alibaba.com, raspl@linux.ibm.com, schnelle@linux.ibm.com, guangguan.wang@linux.alibaba.com, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v8 05/10] net/smc: introduce virtual ISM device support feature Date: Tue, 19 Dec 2023 22:26:11 +0800 Message-ID: <20231219142616.80697-6-guwen@linux.alibaba.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231219142616.80697-1-guwen@linux.alibaba.com> References: <20231219142616.80697-1-guwen@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785720992284079110 X-GMAIL-MSGID: 1785720992284079110 This introduces virtual ISM device support feature to SMCv2.1 as the first supplemental feature. Signed-off-by: Wen Gu --- net/smc/smc.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/net/smc/smc.h b/net/smc/smc.h index 95f56c712b0a..0dc722bf6055 100644 --- a/net/smc/smc.h +++ b/net/smc/smc.h @@ -58,9 +58,12 @@ enum smc_state { /* possible states of an SMC socket */ SMC_PROCESSABORT = 27, }; -#define SMC_FEATURE_MASK 0 /* bitmask of - * supported supplemental features - */ +enum smc_supplemental_features { + SMC_SPF_VIRT_ISM_DEV = 0, +}; + +#define SMC_FEATURE_MASK \ + (BIT(SMC_SPF_VIRT_ISM_DEV)) struct smc_link_group;