[ofa-general] Re: [PATCH] ipoib: don't enable napi when it's already enabled

Roland Dreier rdreier at cisco.com
Sun Oct 19 22:34:55 PDT 2008


 > -	napi_enable(&priv->napi);
 > -	set_bit(IPOIB_FLAG_ADMIN_UP, &priv->flags);
 > +	if (!test_and_set_bit(IPOIB_FLAG_ADMIN_UP, &priv->flags))
 > +		napi_enable(&priv->napi);
 > 
 > 	if (ipoib_pkey_dev_delay_open(dev))
 > 		return 0;

Does it work just to move the napi_enable() to after the
ipoib_pkey_dev_delay_open() test?

 - R.



More information about the general mailing list