]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: add and use message type for tunnel info reply
authorMichal Kubecek <mkubecek@suse.cz>
Wed, 16 Sep 2020 23:04:10 +0000 (01:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Sep 2020 23:43:20 +0000 (16:43 -0700)
commit6251975cc6033bc0df185f79b641afb302736bfd
treec4a0d261409447e73c59f40160e5807b00d9ab79
parent11fbd5a2ff55352fc037d9e3e7e3842f11c185ea
ethtool: add and use message type for tunnel info reply

Tunnel offload info code uses ETHTOOL_MSG_TUNNEL_INFO_GET message type (cmd
field in genetlink header) for replies to tunnel info netlink request, i.e.
the same value as the request have. This is a problem because we are using
two separate enums for userspace to kernel and kernel to userspace message
types so that this ETHTOOL_MSG_TUNNEL_INFO_GET (28) collides with
ETHTOOL_MSG_CABLE_TEST_TDR_NTF which is what message type 28 means for
kernel to userspace messages.

As the tunnel info request reached mainline in 5.9 merge window, we should
still be able to fix the reply message type without breaking backward
compatibility.

Fixes: 618f144f32d2 ("ethtool: add tunnel info interface")
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ethtool-netlink.rst
include/uapi/linux/ethtool_netlink.h
net/ethtool/tunnels.c