Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp536188rdh; Tue, 19 Dec 2023 06:30:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVAH5GSSWH8ADxk3G6b0T/f9BKQ49Y6l/OZ4gCcTwgKDOuf2C6ZJ+xwBhP4C7dl6aOEAvn X-Received: by 2002:a05:6a21:3398:b0:18f:d2a9:da50 with SMTP id yy24-20020a056a21339800b0018fd2a9da50mr10359766pzb.30.1702996224210; Tue, 19 Dec 2023 06:30:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702996224; cv=none; d=google.com; s=arc-20160816; b=FDrpJ8qo0Cz5DKpAYAuqyqkYK0/BA5Z9hr+y56A4XVDLxShharZV6FZpj2GiEGyiBt VHuLbzYY8Rzr0G1Dnen/i5PrORKK9eXWUiTpejAuEvsJQRENxXeGg5htEUb84Z67fqJG SPEKGSPPnU/8AQwipvKOMiu2eArLqrLw/sKk6Dg3rDjg+XTFTVwcifatXhvHJooTCB9a NFO1bjG+c85jLL5QjCbaXloMDAU9nwiAs0rGMejB6xl4W7EarPeg5dbqYyYNdD8P7s8/ vzb1TRAZWigKAHCHkep1T9VXMsiP3sovecTJD+s6AkVoTpPkusqO1I2UCP6FsGEqftYo RmHQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b27-20020a63715b000000b005cda5e4a862si3030205pgn.258.2023.12.19.06.30.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:30:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5360-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5360-linux.lists.archive=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 7C044B252AF for ; Tue, 19 Dec 2023 14:28:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F2BE1D55B; Tue, 19 Dec 2023 14:26:40 +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 Content-Transfer-Encoding: 8bit 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; -- 2.43.0