]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Fix double reporting of drops in dropwatch
authorMike Pattrick <mkp@redhat.com>
Wed, 17 Aug 2022 15:06:34 +0000 (11:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:48 +0000 (13:22 +0200)
commit99ffb14c1f3a96a869b9ebc5f1b065cd32e23973
tree003f4780634340be1a2bc0aad168ed1ca397e268
parentac718f9a46353c686e4c9161929437293a479351
openvswitch: Fix double reporting of drops in dropwatch

[ Upstream commit 3378f634c0ac9497fb7067a015924fcba91ecdbf ]

Frames sent to userspace can be reported as dropped in
ovs_dp_process_packet, however, if they are dropped in the netlink code
then netlink_attachskb will report the same frame as dropped.

This patch checks for error codes which indicate that the frame has
already been freed.

Signed-off-by: Mike Pattrick <mkp@redhat.com>
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2109946
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/openvswitch/datapath.c