1c33435a58
The check for event ring being empty needs a barrier to avoid any over aggressive optimization. This is same barrier as Linux kernel. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>