]> git.proxmox.com Git - mirror_ovs.git/commit
dpif-netdev: Fix unsafe access to pmd polling lists.
authorIlya Maximets <i.maximets@samsung.com>
Mon, 11 Feb 2019 17:34:06 +0000 (20:34 +0300)
committerIlya Maximets <i.maximets@samsung.com>
Wed, 29 May 2019 11:31:54 +0000 (14:31 +0300)
commiteef85380810ab428a193f4874477a6dde5999ab7
tree0d692a9d005ae019c4509f9d4118905bd8cc5e29
parent7095b9036c63ef05d1062a4e574a597e17636ce3
dpif-netdev: Fix unsafe access to pmd polling lists.

All accesses to 'pmd->poll_list' should be guarded by
'pmd->port_mutex'. Additionally fixed inappropriate usage
of 'HMAP_FOR_EACH_SAFE' (hmap doesn't change in a loop)
and dropped not needed local variable 'proc_cycles'.

CC: Nitin Katiyar <nitin.katiyar@ericsson.com>
Fixes: 5bf84282482a ("Adding support for PMD auto load balancing")
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Aaron Conole <aconole@redhat.com>
lib/dpif-netdev.c