On Mon, Apr 8, 2013 at 12:03 PM, Markus Stockhausen
<[email protected]> wrote:
> First I thought perfect memory allocation inside ipoib_alloc_rx_skb()
> could be realized by passing the received packet size from function
> ipoib_ib_handle_rx_wc(). But I'm unable to estimate the requirements
> of the similar call inside ipoib_ib_post_receives().

The problem is that we have to allocate the receive buffer before we
know how big the packet we're going to receive is.

Anyway, see my latest patch.  I'm pretty sure it should work -- and I
hope the performance is reasonable.  Your approach of hacking the max
mtu avoids the fragmented skb completely, whereas I'm just making sure
the TCP/IP headers are in the linear part.

 - R.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to