[openib-general] [PATCHv4] IPoIB CM Experimental support

Michael S. Tsirkin mst at mellanox.co.il
Wed Jan 10 10:11:58 PST 2007


> Quoting Roland Dreier <rdreier at cisco.com>:
> Subject: Re: [PATCHv4] IPoIB CM Experimental support
> 
> Also, I haven't really looked yet, but how does the connected mode
> patch interact with the NAPI patches?

The latest version uses prov->cq for all RX packets, so
it's trivial to merge it with NAPI if we want: the relevant part
of the patch is:

 static void ipoib_ib_handle_wc(struct net_device *dev, struct ib_wc *wc)
 {
-       if (wc->wr_id & IPOIB_OP_RECV)
+       if (wc->wr_id & IPOIB_CM_OP_SRQ)
+               ipoib_cm_handle_rx_wc(dev, wc);
+       else if (wc->wr_id & IPOIB_OP_RECV)
                ipoib_ib_handle_rx_wc(dev, wc);
        else
                ipoib_ib_handle_tx_wc(dev, wc);


I haven't tested this combination yet.

-- 
MST




More information about the general mailing list