Some of code is backported from following commit.
commit
13dd4a9738e99684a56b10ce2f1a5ee2d2ec2f9f
Author: Joe Stringer <joestringer@nicira.com>
Date: Tue Mar 24 16:16:18 2015 -0700
compat: Fix RHEL7 build.
Tested against 3.10.0-229.el7.x86_64.
----------8<--------
Reported-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Flavio Leitner <fbl@redhat.com>