From: Yan Burman Date: Thu, 7 Mar 2013 03:46:55 +0000 (+0000) Subject: net/mlx4_en: Fix race when setting the device MAC address X-Git-Tag: v3.9-rc3~36^2~24^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfa8ab47415a87c6c93a9e54e16f2f8cc6de79af;p=pandora-kernel.git net/mlx4_en: Fix race when setting the device MAC address Remove unnecessary use of workqueue for the device MAC address setting flow, and fix a race when setting MAC address which was introduced by commit c07cb4b0a "net/mlx4_en: Manage hash of MAC addresses per port" The race happened when mlx4_en_replace_mac was being executed in parallel with a successive call to ndo_set_mac_address, e.g witn an A/B/A MAC setting configuration test, the third set fails. With this change we also properly report an error if set MAC fails. Signed-off-by: Yan Burman Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed