public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Karcher <jaka@linux.ibm.com>
To: Guangguan Wang <guangguan.wang@linux.alibaba.com>,
	wenjia@linux.ibm.com, kgraul@linux.ibm.com,
	tonylu@linux.alibaba.com, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com
Cc: horms@kernel.org, alibuda@linux.alibaba.com,
	guwen@linux.alibaba.com, linux-s390@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 6/6] net/smc: Extend SMCR v2 linkgroup netlink attribute
Date: Fri, 18 Aug 2023 21:41:15 +0200	[thread overview]
Message-ID: <714beaf2-929f-f0ad-f16b-00ca4b2bb2b6@linux.ibm.com> (raw)
In-Reply-To: <20230817132032.23397-7-guangguan.wang@linux.alibaba.com>



On 17/08/2023 15:20, Guangguan Wang wrote:
> Add SMC_NLA_LGR_R_V2_MAX_CONNS and SMC_NLA_LGR_R_V2_MAX_LINKS
> to SMCR v2 linkgroup netlink attribute SMC_NLA_LGR_R_V2 for
> linkgroup's detail info showing.
> 
> Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com>

Thank you for your contribution, Guangguan.

Reviewed-by: Jan Karcher <jaka@linux.ibm.com>

> ---
>   include/uapi/linux/smc.h | 2 ++
>   net/smc/smc_core.c       | 4 ++++
>   2 files changed, 6 insertions(+)
> 
> diff --git a/include/uapi/linux/smc.h b/include/uapi/linux/smc.h
> index bb4dacca31e7..837fcd4b0abc 100644
> --- a/include/uapi/linux/smc.h
> +++ b/include/uapi/linux/smc.h
> @@ -107,6 +107,8 @@ enum {
>   enum {
>   	SMC_NLA_LGR_R_V2_UNSPEC,
>   	SMC_NLA_LGR_R_V2_DIRECT,	/* u8 */
> +	SMC_NLA_LGR_R_V2_MAX_CONNS,	/* u8 */
> +	SMC_NLA_LGR_R_V2_MAX_LINKS,	/* u8 */
>   	__SMC_NLA_LGR_R_V2_MAX,
>   	SMC_NLA_LGR_R_V2_MAX = __SMC_NLA_LGR_R_V2_MAX - 1
>   };
> diff --git a/net/smc/smc_core.c b/net/smc/smc_core.c
> index 1e1475084bb4..ef5336df3b09 100644
> --- a/net/smc/smc_core.c
> +++ b/net/smc/smc_core.c
> @@ -319,6 +319,10 @@ static int smc_nl_fill_smcr_lgr_v2(struct smc_link_group *lgr,
>   		goto errattr;
>   	if (nla_put_u8(skb, SMC_NLA_LGR_R_V2_DIRECT, !lgr->uses_gateway))
>   		goto errv2attr;
> +	if (nla_put_u8(skb, SMC_NLA_LGR_R_V2_MAX_CONNS, lgr->max_conns))
> +		goto errv2attr;
> +	if (nla_put_u8(skb, SMC_NLA_LGR_R_V2_MAX_LINKS, lgr->max_links))
> +		goto errv2attr;
>   
>   	nla_nest_end(skb, v2_attrs);
>   	return 0;

  reply	other threads:[~2023-08-18 19:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-17 13:20 [PATCH net-next v2 0/6] net/smc: several features's implementation for smc v2.1 Guangguan Wang
2023-08-17 13:20 ` [PATCH net-next v2 1/6] net/smc: support smc release version negotiation in clc handshake Guangguan Wang
2023-08-18 19:41   ` Jan Karcher
2023-08-17 13:20 ` [PATCH net-next v2 2/6] net/smc: add vendor unique experimental options area " Guangguan Wang
2023-08-18 19:41   ` Jan Karcher
2023-08-17 13:20 ` [PATCH net-next v2 3/6] net/smc: support smc v2.x features validate Guangguan Wang
2023-08-18 19:41   ` Jan Karcher
2023-08-17 13:20 ` [PATCH net-next v2 4/6] net/smc: support max connections per lgr negotiation Guangguan Wang
2023-08-18 19:41   ` Jan Karcher
2023-08-17 13:20 ` [PATCH net-next v2 5/6] net/smc: support max links per lgr negotiation in clc handshake Guangguan Wang
2023-08-18 19:41   ` Jan Karcher
2023-08-17 13:20 ` [PATCH net-next v2 6/6] net/smc: Extend SMCR v2 linkgroup netlink attribute Guangguan Wang
2023-08-18 19:41   ` Jan Karcher [this message]
2023-08-19 11:51 ` [PATCH net-next v2 0/6] net/smc: several features's implementation for smc v2.1 patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=714beaf2-929f-f0ad-f16b-00ca4b2bb2b6@linux.ibm.com \
    --to=jaka@linux.ibm.com \
    --cc=alibuda@linux.alibaba.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=guangguan.wang@linux.alibaba.com \
    --cc=guwen@linux.alibaba.com \
    --cc=horms@kernel.org \
    --cc=kgraul@linux.ibm.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=tonylu@linux.alibaba.com \
    --cc=wenjia@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox