datapath: check for rx handler register
authorFlavio Leitner <fbl@redhat.com>
Sat, 29 Aug 2015 00:52:36 +0000 (21:52 -0300)
committerJesse Gross <jesse@nicira.com>
Mon, 31 Aug 2015 19:48:16 +0000 (12:48 -0700)
commit572e54faff70760f4bfe4a7cffc9553e6743199e
tree5b3a976291f74798fd4351d17c7ca4dc00be89ae
parent1cb20095c3c933aca1e7607ad2dd6ed9933b359e
datapath: check for rx handler register

Red Hat Enterprise Linux 6 has backported the netdev RX
handler facility so use the netdev_rx_handler_register as
an indicator.

The handler prototype changed between 2.6.36 and 2.6.39
since there could be backports in any stage, don't look
at the kernel version, but at the prototype.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
acinclude.m4
datapath/linux/compat/dev-openvswitch.c
datapath/linux/compat/include/linux/netdevice.h
datapath/vport-netdev.c