[ovs-dev] [patch v2 2/7] datapath: Handle duplicate netdev in netdev_rx_handler_register()

Jesse Gross jesse at nicira.com
Fri Aug 20 12:42:55 PDT 2010


On Wed, Aug 18, 2010 at 11:36 PM, Simon Horman <horms at verge.net.au> wrote:
> --- openvswitch.orig/datapath/linux-2.6/compat-2.6/include/linux/netdevice.h    2010-08-18 13:43:10.000000000 +0900
> +++ openvswitch/datapath/linux-2.6/compat-2.6/include/linux/netdevice.h 2010-08-18 13:43:37.000000000 +0900
> @@ -94,6 +94,8 @@ static inline int netdev_rx_handler_regi
>                                             rx_handler_func_t *rx_handler,
>                                             void *rx_handler_data)
>  {
> +       if (netdev_vport->dev->br_port)
> +               return -EBUSY;

This should just be dev->br_port here.




More information about the dev mailing list