datapath: Add compat support for nla_type().
authorBen Pfaff <blp@nicira.com>
Fri, 10 Dec 2010 22:42:17 +0000 (14:42 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 13 Dec 2010 18:20:29 +0000 (10:20 -0800)
commitf307eeb37640adb92cf92eb61ec26ac9ac30ac97
tree896176e140ca6aaef10af825f017cf599a6ae583
parent9f94f8fa2fe53e241b6417056e04d45ca7b577f5
datapath: Add compat support for nla_type().

The datapath code uses nla_type() but it was only introduced in 2.6.24.

The NLA_TYPE_MASK definition has to go above the #include <net/netlink.h>
because <net/netlink.h> recursively #include <linux/netlink.h>.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux-2.6/compat-2.6/include/linux/netlink.h
datapath/linux-2.6/compat-2.6/include/net/netlink.h