datapath: Add version check for struct netdev_ops.
authorJesse Gross <jesse@nicira.com>
Wed, 21 Sep 2011 02:12:32 +0000 (19:12 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 18 Oct 2011 16:24:26 +0000 (09:24 -0700)
commit4bfff3c8b608bf174e2accd39f7c56d8f827bf2b
treea67fc4a895409946fe0f36e57ec7702f5ffc62ce
parentcb4ef1ea12789af09fe9a6634012cf0f3797a56a
datapath: Add version check for struct netdev_ops.

Linux 3.1 drops the symbol HAVE_NET_DEVICE_OPS that lets us know
whether struct netdev_ops is present.  As a result, we need to
replace it with an explicit version check.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-internal_dev.c