datapath: rhel: Move RHEL OVS hook registration to netdev_rx_handler_register() backport
authorThomas Graf <tgraf@redhat.com>
Tue, 9 Jul 2013 18:36:57 +0000 (20:36 +0200)
committerJesse Gross <jesse@nicira.com>
Tue, 9 Jul 2013 19:07:29 +0000 (12:07 -0700)
commit3e35fe33b6b877cd215c732f379e2f9dc4698de8
tree6347536a7cb29bb237acf315ac5e8ca00c001d67
parent752378e1cd1f133a8366fbacec3b281a45ff8268
datapath: rhel: Move RHEL OVS hook registration to netdev_rx_handler_register() backport

Moves the registration of the RHEL specific OVS hook to the compat
backport of netdev_rx_handler_register(). This moves the hook
unregistration from the RCU callback to the netdev_destroy()
callback directly.

This is purely cosmetic though, the RHEL hook is only used if the
IFF_OVS_DATAPATH flag is present which was removed under RTNL
protection before the RCU callback.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/include/linux/netdevice.h
datapath/linux/compat/netdevice.c
datapath/vport-netdev.c