Netdev List
 help / color / mirror / Atom feed
* [PATCH iproute2-next] libnetlink: Fix wrong netlink header placement
@ 2022-12-08 14:38 Ido Schimmel
  2022-12-08 16:04 ` Jiri Pirko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ido Schimmel @ 2022-12-08 14:38 UTC (permalink / raw)
  To: netdev; +Cc: dsahern, stephen, mlxsw, Ido Schimmel

The netlink header must be first in the netlink message, so move it
there.

Fixes: fee4a56f0191 ("Update kernel headers")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
---
 include/libnetlink.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/libnetlink.h b/include/libnetlink.h
index 4d9696efa253..c91a22314548 100644
--- a/include/libnetlink.h
+++ b/include/libnetlink.h
@@ -38,9 +38,9 @@ struct nlmsg_chain {
 };
 
 struct ipstats_req {
+	struct nlmsghdr nlh;
 	struct if_stats_msg ifsm;
 	char buf[128];
-	struct nlmsghdr nlh;
 };
 
 extern int rcvbuf;
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH iproute2-next] libnetlink: Fix wrong netlink header placement
  2022-12-08 14:38 [PATCH iproute2-next] libnetlink: Fix wrong netlink header placement Ido Schimmel
@ 2022-12-08 16:04 ` Jiri Pirko
  2022-12-08 16:07 ` David Ahern
  2022-12-08 16:30 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: Jiri Pirko @ 2022-12-08 16:04 UTC (permalink / raw)
  To: Ido Schimmel; +Cc: netdev, dsahern, stephen, mlxsw

Thu, Dec 08, 2022 at 03:38:16PM CET, idosch@nvidia.com wrote:
>The netlink header must be first in the netlink message, so move it
>there.
>
>Fixes: fee4a56f0191 ("Update kernel headers")
>Signed-off-by: Ido Schimmel <idosch@nvidia.com>

Interesing.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH iproute2-next] libnetlink: Fix wrong netlink header placement
  2022-12-08 14:38 [PATCH iproute2-next] libnetlink: Fix wrong netlink header placement Ido Schimmel
  2022-12-08 16:04 ` Jiri Pirko
@ 2022-12-08 16:07 ` David Ahern
  2022-12-08 16:30 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: David Ahern @ 2022-12-08 16:07 UTC (permalink / raw)
  To: Ido Schimmel, netdev; +Cc: stephen, mlxsw

On 12/8/22 7:38 AM, Ido Schimmel wrote:
> The netlink header must be first in the netlink message, so move it
> there.
> 
> Fixes: fee4a56f0191 ("Update kernel headers")
> Signed-off-by: Ido Schimmel <idosch@nvidia.com>
> ---
>  include/libnetlink.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/libnetlink.h b/include/libnetlink.h
> index 4d9696efa253..c91a22314548 100644
> --- a/include/libnetlink.h
> +++ b/include/libnetlink.h
> @@ -38,9 +38,9 @@ struct nlmsg_chain {
>  };
>  
>  struct ipstats_req {
> +	struct nlmsghdr nlh;
>  	struct if_stats_msg ifsm;
>  	char buf[128];
> -	struct nlmsghdr nlh;
>  };
>  
>  extern int rcvbuf;

thanks for noticing this. Must have been stale diff on the branch when I
was looking into the flex-array problem.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH iproute2-next] libnetlink: Fix wrong netlink header placement
  2022-12-08 14:38 [PATCH iproute2-next] libnetlink: Fix wrong netlink header placement Ido Schimmel
  2022-12-08 16:04 ` Jiri Pirko
  2022-12-08 16:07 ` David Ahern
@ 2022-12-08 16:30 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-12-08 16:30 UTC (permalink / raw)
  To: Ido Schimmel; +Cc: netdev, dsahern, stephen, mlxsw

Hello:

This patch was applied to iproute2/iproute2-next.git (main)
by David Ahern <dsahern@kernel.org>:

On Thu,  8 Dec 2022 16:38:16 +0200 you wrote:
> The netlink header must be first in the netlink message, so move it
> there.
> 
> Fixes: fee4a56f0191 ("Update kernel headers")
> Signed-off-by: Ido Schimmel <idosch@nvidia.com>
> ---
>  include/libnetlink.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
  - [iproute2-next] libnetlink: Fix wrong netlink header placement
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=fa94a9792155

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-08 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-08 14:38 [PATCH iproute2-next] libnetlink: Fix wrong netlink header placement Ido Schimmel
2022-12-08 16:04 ` Jiri Pirko
2022-12-08 16:07 ` David Ahern
2022-12-08 16:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox