Skip to content

Commit 0006c6f

Browse files
lrq-maxkuba-moo
authored andcommitted
devlink: Fix incorrect skb socket family dumping
The devlink_fmsg_dump_skb function was incorrectly using the socket type (sk->sk_type) instead of the socket family (sk->sk_family) when filling the "family" field in the fast message dump. This patch fixes this to properly display the socket family. Fixes: 3dbfde7 ("devlink: add devlink_fmsg_dump_skb() function") Signed-off-by: Li RongQing <lirongqing@baidu.com> Link: https://patch.msgid.link/20260407022730.2393-1-lirongqing@baidu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 39897df commit 0006c6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/devlink/health.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ void devlink_fmsg_dump_skb(struct devlink_fmsg *fmsg, const struct sk_buff *skb)
13271327
if (sk) {
13281328
devlink_fmsg_pair_nest_start(fmsg, "sk");
13291329
devlink_fmsg_obj_nest_start(fmsg);
1330-
devlink_fmsg_put(fmsg, "family", sk->sk_type);
1330+
devlink_fmsg_put(fmsg, "family", sk->sk_family);
13311331
devlink_fmsg_put(fmsg, "type", sk->sk_type);
13321332
devlink_fmsg_put(fmsg, "proto", sk->sk_protocol);
13331333
devlink_fmsg_obj_nest_end(fmsg);

0 commit comments

Comments
 (0)