[ofa-general] RE: [PATCH 13/13] RDMA/nes: Enhanced PFT management scheme

Chien Tung ctung at NetEffect.com
Fri Oct 3 13:00:35 PDT 2008


> This patch seems broken:

It is broken.

> 
>  > @@ -842,7 +845,12 @@ static void 
> nes_netdev_set_multicast_list(struct net_device *netdev)  >  
>  > +	spin_lock_irqsave(&nesadapter->resource_lock, flags);
> 
> nes_netdev_set_multicast_list() takes resource lock 
> unconditionally here, but...
> 
>  >  	if (!mc_all_on) {
> 
>  ...
> 
>  > +		
> spin_unlock_irqrestore(&nesadapter->resource_lock, flags);
>  >  	}
>  >  }

spin_unlock_irqrestore should be outside of the if(...).



+  if (!mc_all_on) {
+  ...
+			nes_write_indexed(nesdev,
NES_IDX_NIC_UNICAST_ALL,
+
nic_active);
+		}
 	}
+	spin_unlock_irqrestore(&nesadapter->resource_lock, flags);
}


If you can fix it again that would be great but let me know if you want
a v2 patch.

Chien



More information about the general mailing list