netlink: specs: mptcp: fix if-idx attribute type
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Mon, 8 Sep 2025 21:27:27 +0000 (23:27 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 Sep 2025 01:39:52 +0000 (18:39 -0700)
commit7094b84863e5832cb1cd9c4b9d648904775b6bd9
tree8fffd933b7023a1a5ee1f731f0ed72fff9d0b177
parent648de37416b301f046f62f1b65715c7fa8ebaa67
netlink: specs: mptcp: fix if-idx attribute type

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")
Cc: stable@vger.kernel.org
Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250908-net-mptcp-misc-fixes-6-17-rc5-v1-1-5f2168a66079@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/mptcp_pm.yaml