datapath: Handle duplicate netdev in netdev_rx_handler_register()
authorSimon Horman <horms@verge.net.au>
Mon, 23 Aug 2010 06:30:07 +0000 (15:30 +0900)
committerJesse Gross <jesse@nicira.com>
Mon, 23 Aug 2010 18:37:44 +0000 (14:37 -0400)
commit33ef7695b71a71f2d0bb0e00aab46855afb8c2a6
treecd08d5f8ebf7aada35094a0752f2940d801124d3
parent431585099e82a88a23d5dec28138b5a3a8bb11da
datapath: Handle duplicate netdev in netdev_rx_handler_register()

For kernels that have netdev_rx_handler_register() (>=2.6.35),
duplicate netdevs are detected by netdev_rx_handler_register().
So by adding duplicate detection to the netdev_rx_handler_register()
compatibility code the explicit check in netdev_create() can be removed.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/linux-2.6/compat-2.6/include/linux/netdevice.h
datapath/vport-netdev.c