Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1458942rdb; Mon, 19 Feb 2024 17:20:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV4hiifDfVrBIql7hMaL3AMyxWwScYvDErpdW2Ir/QHIyaV7VDembuSZaD5X+vE/pzfNOoPDtyh/5pvd/67HiBbV6++cYekzK2Oz66XKg== X-Google-Smtp-Source: AGHT+IGIF6zrw+PsWhp1GYfP5dgd/me4rd9BJSPTvtw2a94gA4q1ifCNGntw5AVr2kefaA+Lhav8 X-Received: by 2002:a17:906:5619:b0:a3e:77d2:9e04 with SMTP id f25-20020a170906561900b00a3e77d29e04mr3211627ejq.24.1708392056417; Mon, 19 Feb 2024 17:20:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708392056; cv=pass; d=google.com; s=arc-20160816; b=upV6HrnUF907ONX7iER3P7427jEdNjY9Dp6I1gRJuPLD+u0ufSwGxOKTmOlTDLR/4X n0e+BZMk5lndmCzJtWqCGCPGLaAHTQso1SVmJMUSaL7cF4xRgB5Q3z6YR/p/a7KWCfgf lb9WC+PsaU3YrJeV7o6NPd00UH4ksK3q1RXvxN3ktGu/6nzv1pQXzBOfr789Ib6sfeZv 2lVlRcpKuv4xF36fCZ0VAgYpmfycgym4GX2JEMdzeYBc1+a4ZcoJu5LW/w1FUirMK+B9 p3w0cVUbp6UFHI79+p1CGlamG/tsUqE0wg3nmnrmLAJ/Khem7b9pCAdZrJ8v1a1DgWYG EmGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=P8a2KvIDAcw/ShinP4C6CMkfEvY7pIx3fK2igf/0yLQ=; fh=R2LJav7NUBRX2CoWPDckhn3zRz8dtV6E4Qed6PygHq8=; b=hKGYx8/gtP8ngrrJLdF8sht7N3IzwHFFxZRkQgizzvs1Nim3vt01HNrhbDhDnRuvYh h17/Z+qaEoz+HGNUA0UqGP7vaUZFqAWMtNGd26rKuqo3A582LSyU1dFWJtYoOr3B3cZb fBM7eTGgWVQ+V/al7cXPH9sFZhD868DN7c+sMtnwQfsL3VBc5qdxO83iBw3MVQYTk7HE oo5UDMXZVFAGSw6gOqAA6pZZow1U7+IAfS4YmGpJK+oIMAj5pk5A6efX/ieoDIH+vcLG yrsiwdLpypz9h54Vy2Tkt1Q5EQ+r/AtRNsihQl5eeKKPyUC3xsebDPe3l49p32CnHXL2 wc4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=pIS3n9ge; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-72175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id fi12-20020a170906da0c00b00a3e7d270e2fsi1667648ejb.839.2024.02.19.17.20.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 17:20:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=pIS3n9ge; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-72175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 10ED41F2277E for ; Tue, 20 Feb 2024 01:20:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DE441DFCF; Tue, 20 Feb 2024 01:20:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="pIS3n9ge" Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) (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 B9D5B10785; Tue, 20 Feb 2024 01:20:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708392045; cv=none; b=JkruFHhTsU2BGm1k18FmqBw2JnD95rDQCQEi5xajTrK9kUC6CHrWykp55PvySqG6hONr8o/TU3ekLmpsiyTqmlS+wUz+0wj1LlzHqEEq2R4ZZHGm0PDNM949XOM5QA3pgwjnXrt9aIj16ruiddDb+Voli7HH7C0DAzoJvK/uA+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708392045; c=relaxed/simple; bh=YhnbEJ7jin2iVNo4/mthW0jds5uM2TXHowDul2uC1vE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VxqNjuSU7uAvsBKJ5ZQiAxQBn+YFpPz8DDXqqsKL4mWh5cuj/GehiHNkQj23DuFU9Pv5yWcQAImYdW5Dk+CjEnvvwx9aKqvlRPaQYIUokmQjmPTXdO/Pk0mjV8ZKmEklHr0VX++mHG9J7aeJyNmIGwy/t4iZIf6o08yqyfxArEA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=pIS3n9ge; arc=none smtp.client-ip=115.124.30.113 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 DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1708392040; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=P8a2KvIDAcw/ShinP4C6CMkfEvY7pIx3fK2igf/0yLQ=; b=pIS3n9ge38ON6xk6rHCC688tbxdt+oKg07XcJPL+EGuM5VO4BYfeXlcRjiYyIQTb4ngknLLOfKG83xL4SlEeEN6+HSl7ODj7vRUKWwTCXynF5Sh6MVes6u7noscVISdvnS8nP+BMzbpQSDLTN5TbqpMwL2JAw0nQprKFjbBXF2M= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=guwen@linux.alibaba.com;NM=1;PH=DS;RN=18;SR=0;TI=SMTPD_---0W0upqYR_1708392038; Received: from 30.221.128.233(mailfrom:guwen@linux.alibaba.com fp:SMTPD_---0W0upqYR_1708392038) by smtp.aliyun-inc.com; Tue, 20 Feb 2024 09:20:39 +0800 Message-ID: <15d7f21d-c4b9-45e3-8608-4a7b929865f7@linux.alibaba.com> Date: Tue, 20 Feb 2024 09:20:37 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 03/15] net/smc: introduce virtual ISM device loopback-ism To: Wenjia Zhang , wintera@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, jaka@linux.ibm.com, Gerd Bayer Cc: borntraeger@linux.ibm.com, svens@linux.ibm.com, alibuda@linux.alibaba.com, tonylu@linux.alibaba.com, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240111120036.109903-1-guwen@linux.alibaba.com> <20240111120036.109903-4-guwen@linux.alibaba.com> <0be9c41b-19f9-437a-9a3a-8ed15cbbd155@linux.ibm.com> From: Wen Gu In-Reply-To: <0be9c41b-19f9-437a-9a3a-8ed15cbbd155@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024/2/16 22:11, Wenjia Zhang wrote: > > > On 11.01.24 13:00, Wen Gu wrote: >> This introduces a kind of virtual ISM device loopback-ism for SMCDv2.1. >> loopback-ism is implemented by software and serves inter-process or >> inter-container SMC communication in the same OS instance. It is created >> during SMC module loading and destroyed upon unloading. The support for >> loopback-ism can be configured via CONFIG_SMC_LO. >> >> Signed-off-by: Wen Gu >> --- >>   net/smc/Kconfig        |  13 +++ >>   net/smc/Makefile       |   2 +- >>   net/smc/af_smc.c       |  12 ++- >>   net/smc/smc_loopback.c | 181 +++++++++++++++++++++++++++++++++++++++++ >>   net/smc/smc_loopback.h |  33 ++++++++ >>   5 files changed, 239 insertions(+), 2 deletions(-) >>   create mode 100644 net/smc/smc_loopback.c >>   create mode 100644 net/smc/smc_loopback.h >> >> diff --git a/net/smc/Kconfig b/net/smc/Kconfig >> index 746be3996768..e191f78551f4 100644 >> --- a/net/smc/Kconfig >> +++ b/net/smc/Kconfig >> @@ -20,3 +20,16 @@ config SMC_DIAG >>         smcss. >>         if unsure, say Y. >> + >> +config SMC_LO >> +    bool "SMC_LO: virtual ISM loopback-ism for SMC" >> +    depends on SMC >> +    default n >> +    help >> +      SMC_LO provides a kind of virtual ISM device called loopback-ism > Don't forget to update "s/virtual/emulated/" later. ;-) > > <...> Yes, new version will change all virtual ISM to Emulated-ISM. Thank you.