]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ethtool: fix missing NLM_F_MULTI flag when dumping
authorFernando Fernandez Mancera <ffmancera@riseup.net>
Tue, 4 May 2021 22:47:14 +0000 (00:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:46 +0000 (10:29 +0200)
commit7c7feca231a2320c7a9030f116827781c64d5c96
tree6c72cc0da54446648cb88fb572d47fd6af42e0db
parent76094e1b4ef0df8b7e36e290498873837c0fec2d
ethtool: fix missing NLM_F_MULTI flag when dumping

[ Upstream commit cf754ae331be7cc192b951756a1dd031e9ed978a ]

When dumping the ethtool information from all the interfaces, the
netlink reply should contain the NLM_F_MULTI flag. This flag allows
userspace tools to identify that multiple messages are expected.

Link: https://bugzilla.redhat.com/1953847
Fixes: 365f9ae4ee36 ("ethtool: fix genlmsg_put() failure handling in ethnl_default_dumpit()")
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ethtool/netlink.c