This attribute is used as a signed number in the code in pm_netlink.c:
nla_put_s32(skb, MPTCP_ATTR_IF_IDX, ssk->sk_bound_dev_if))
The specs should then reflect that. Note that other 'if-idx' attributes
from the same .yaml file use a signed number as well.
Fixes: bc8aeb2045e2 ("Documentation: netlink: add a YAML spec for mptcp")
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Documentation/netlink/specs/mptcp_pm.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/netlink/specs/mptcp_pm.yaml b/Documentation/netlink/specs/mptcp_pm.yaml
index 02f1ddcfbf1cfd81a398dd03c52bb9f281c1aa08..d15335684ec3d6256505f2b3887ce5818eb57462 100644
--- a/Documentation/netlink/specs/mptcp_pm.yaml
+++ b/Documentation/netlink/specs/mptcp_pm.yaml
@@ -256,7 +256,7 @@ attribute-sets:
type: u32
-
name: if-idx
- type: u32
+ type: s32
-
name: reset-reason
type: u32
--
2.50.1
Hi Matt, On Fri, 2025-08-29 at 22:33 +0200, Matthieu Baerts (NGI0) wrote: > This attribute is used as a signed number in the code in > pm_netlink.c: > > nla_put_s32(skb, MPTCP_ATTR_IF_IDX, ssk->sk_bound_dev_if)) > > The specs should then reflect that. Note that other 'if-idx' > attributes > from the same .yaml file use a signed number as well. > > Fixes: bc8aeb2045e2 ("Documentation: netlink: add a YAML spec for > mptcp") > Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Patches 4-6 LGTM! Reviewed-by: Geliang Tang <geliang@kernel.org> [mptcp-net,4/7] netlink: specs: mptcp: fix if-idx attribute type [mptcp-net,5/7] doc: mptcp: net.mptcp.pm_type is deprecated [mptcp-net,6/7] selftests: mptcp: shellcheck: support v0.11.0 These three patches are relatively independent and can be removed from this series. They should be merged into the export branch first and do not need to be included in the v2 iteration. I changed the states of them as "Queued". WDYT? Thanks, -Geliang > --- > Documentation/netlink/specs/mptcp_pm.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/netlink/specs/mptcp_pm.yaml > b/Documentation/netlink/specs/mptcp_pm.yaml > index > 02f1ddcfbf1cfd81a398dd03c52bb9f281c1aa08..d15335684ec3d6256505f2b3887 > ce5818eb57462 100644 > --- a/Documentation/netlink/specs/mptcp_pm.yaml > +++ b/Documentation/netlink/specs/mptcp_pm.yaml > @@ -256,7 +256,7 @@ attribute-sets: > type: u32 > - > name: if-idx > - type: u32 > + type: s32 > - > name: reset-reason > type: u32
Hi Matt, On Fri, 2025-08-29 at 22:33 +0200, Matthieu Baerts (NGI0) wrote: > This attribute is used as a signed number in the code in > pm_netlink.c: > > nla_put_s32(skb, MPTCP_ATTR_IF_IDX, ssk->sk_bound_dev_if)) > > The specs should then reflect that. Note that other 'if-idx' > attributes > from the same .yaml file use a signed number as well. > > Fixes: bc8aeb2045e2 ("Documentation: netlink: add a YAML spec for > mptcp") > Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Patches 4-6 LGTM! Reviewed-by: Geliang Tang <geliang@kernel.org> [mptcp-net,4/7] netlink: specs: mptcp: fix if-idx attribute type [mptcp-net,5/7] doc: mptcp: net.mptcp.pm_type is deprecated [mptcp-net,6/7] selftests: mptcp: shellcheck: support v0.11.0 These three patches are relatively independent and can be removed from this series. They should be merged into the export branch first and do not need to be included in the v2 iteration. I changed the states of them as "Queued". WDYT? Thanks, -Geliang > --- > Documentation/netlink/specs/mptcp_pm.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/netlink/specs/mptcp_pm.yaml > b/Documentation/netlink/specs/mptcp_pm.yaml > index > 02f1ddcfbf1cfd81a398dd03c52bb9f281c1aa08..d15335684ec3d6256505f2b3887 > ce5818eb57462 100644 > --- a/Documentation/netlink/specs/mptcp_pm.yaml > +++ b/Documentation/netlink/specs/mptcp_pm.yaml > @@ -256,7 +256,7 @@ attribute-sets: > type: u32 > - > name: if-idx > - type: u32 > + type: s32 > - > name: reset-reason > type: u32
Hi Matt, On Fri, 2025-08-29 at 22:33 +0200, Matthieu Baerts (NGI0) wrote: > This attribute is used as a signed number in the code in > pm_netlink.c: > > nla_put_s32(skb, MPTCP_ATTR_IF_IDX, ssk->sk_bound_dev_if)) > > The specs should then reflect that. Note that other 'if-idx' > attributes > from the same .yaml file use a signed number as well. > > Fixes: bc8aeb2045e2 ("Documentation: netlink: add a YAML spec for > mptcp") > Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Patches 4-6 LGTM! Reviewed-by: Geliang Tang <geliang@kernel.org> [mptcp-net,4/7] netlink: specs: mptcp: fix if-idx attribute type [mptcp-net,5/7] doc: mptcp: net.mptcp.pm_type is deprecated [mptcp-net,6/7] selftests: mptcp: shellcheck: support v0.11.0 These three patches are relatively independent and can be removed from this series. They should be merged into the export branch first and do not need to be included in the v2 iteration. I changed the states of them as "Queued". WDYT? Thanks, -Geliang > --- > Documentation/netlink/specs/mptcp_pm.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/netlink/specs/mptcp_pm.yaml > b/Documentation/netlink/specs/mptcp_pm.yaml > index > 02f1ddcfbf1cfd81a398dd03c52bb9f281c1aa08..d15335684ec3d6256505f2b3887 > ce5818eb57462 100644 > --- a/Documentation/netlink/specs/mptcp_pm.yaml > +++ b/Documentation/netlink/specs/mptcp_pm.yaml > @@ -256,7 +256,7 @@ attribute-sets: > type: u32 > - > name: if-idx > - type: u32 > + type: s32 > - > name: reset-reason > type: u32
Hi Geliang, On 06/09/2025 16:16, Geliang Tang wrote: > Hi Matt, > > On Fri, 2025-08-29 at 22:33 +0200, Matthieu Baerts (NGI0) wrote: >> This attribute is used as a signed number in the code in >> pm_netlink.c: >> >> nla_put_s32(skb, MPTCP_ATTR_IF_IDX, ssk->sk_bound_dev_if)) >> >> The specs should then reflect that. Note that other 'if-idx' >> attributes >> from the same .yaml file use a signed number as well. >> >> Fixes: bc8aeb2045e2 ("Documentation: netlink: add a YAML spec for >> mptcp") >> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> > > Patches 4-6 LGTM! > > Reviewed-by: Geliang Tang <geliang@kernel.org> > > [mptcp-net,4/7] netlink: specs: mptcp: fix if-idx attribute type > [mptcp-net,5/7] doc: mptcp: net.mptcp.pm_type is deprecated > [mptcp-net,6/7] selftests: mptcp: shellcheck: support v0.11.0 > > These three patches are relatively independent and can be removed from > this series. They should be merged into the export branch first and do > not need to be included in the v2 iteration. I changed the states of > them as "Queued". These patches were ordered by kernel versions these patches should be backported to. But good idea, I can apply and send them today so it is done. Cheers, Matt -- Sponsored by the NGI0 Core fund.
© 2016 - 2025 Red Hat, Inc.