openvswitch: Fix double reporting of drops in dropwatch
authorMike Pattrick <mkp@redhat.com>
Wed, 17 Aug 2022 15:06:34 +0000 (11:06 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Aug 2022 12:54:50 +0000 (13:54 +0100)
commit1100248a5c5ccd57059eb8d02ec077e839a23826
tree6bcfac735bbbb91184850d66f1db1eccf3d339fe
parent5b247d938feaa04e05ac24c2241448fad9132e26
openvswitch: Fix double reporting of drops in dropwatch

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>
net/openvswitch/datapath.c