Skip to content

Commit ddefb2d

Browse files
Wen Gudavem330
authored andcommitted
net/smc: Extend SMC-R link group netlink attribute
Extend SMC-R link group netlink attribute SMC_GEN_LGR_SMCR. Introduce SMC_NLA_LGR_R_BUF_TYPE to show the buffer type of SMC-R link group. Signed-off-by: Wen Gu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b8d1994 commit ddefb2d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/uapi/linux/smc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ enum {
124124
SMC_NLA_LGR_R_V2, /* nest */
125125
SMC_NLA_LGR_R_NET_COOKIE, /* u64 */
126126
SMC_NLA_LGR_R_PAD, /* flag */
127+
SMC_NLA_LGR_R_BUF_TYPE, /* u8 */
127128
__SMC_NLA_LGR_R_MAX,
128129
SMC_NLA_LGR_R_MAX = __SMC_NLA_LGR_R_MAX - 1
129130
};

net/smc/smc_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ static int smc_nl_fill_lgr(struct smc_link_group *lgr,
347347
goto errattr;
348348
if (nla_put_u8(skb, SMC_NLA_LGR_R_TYPE, lgr->type))
349349
goto errattr;
350+
if (nla_put_u8(skb, SMC_NLA_LGR_R_BUF_TYPE, lgr->buf_type))
351+
goto errattr;
350352
if (nla_put_u8(skb, SMC_NLA_LGR_R_VLAN_ID, lgr->vlan_id))
351353
goto errattr;
352354
if (nla_put_u64_64bit(skb, SMC_NLA_LGR_R_NET_COOKIE,

0 commit comments

Comments
 (0)