diff options
author | Guangguan Wang <guangguan.wang@linux.alibaba.com> | 2023-08-17 15:20:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-19 13:46:53 +0200 |
commit | bbed596c74a527e0d0d30bc56732f26407f12d6e (patch) | |
tree | 64a156c57d6fa5097c31fe437277bac8da200a25 /net/smc | |
parent | net/smc: support max links per lgr negotiation in clc handshake (diff) | |
download | linux-bbed596c74a527e0d0d30bc56732f26407f12d6e.tar.xz linux-bbed596c74a527e0d0d30bc56732f26407f12d6e.zip |
net/smc: Extend SMCR v2 linkgroup netlink attribute
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>
Reviewed-by: Jan Karcher <jaka@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
-rw-r--r-- | net/smc/smc_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/smc/smc_core.c b/net/smc/smc_core.c index aae8d3f5c3cf..bd01dd31e4bd 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; |