[ofa-general] Re: IPOIB CM (NOSRQ)[PATCH V4] patch for review

Pradeep Satyanarayana pradeeps at linux.vnet.ibm.com
Wed May 9 10:50:51 PDT 2007


Michael S. Tsirkin wrote:
>> +void ipoib_cm_handle_rx_wc(struct net_device *dev, struct ib_wc *wc)
>> +{
>> +	struct ipoib_dev_priv *priv = netdev_priv(dev);
>> +
>> +	if (priv->cm.srq)
>> +		handle_rx_wc_srq(dev, wc);
>> +	else
>> +		handle_rx_wc_nosrq(dev, wc);
>>  }
> 
> I still think this conditional branch on datapath should be avoided
> by using separate RX handlers for SRQ/non SRQ cases.
> And same for the one on alloc_rx_skb.
> 

I attempted implementing this. With NAPI now included, the code looked 
real ugly and so decided not do so.

Pradeep




More information about the general mailing list