Skip to content
Commit 1b844afe authored by Roland Dreier's avatar Roland Dreier
Browse files

IPoIB: Recycle loopback skbs instead of freeing and reallocating



InfiniBand HCAs replicate multicast packets back to the QP that sent
them if that QP is attached to the destination multicast group.  This
means that IPoIB multicasts are often replicated back to the receive
queue of the interface that generated them.  To avoid confusing the
network stack, we drop these duplicates within the IPoIB driver.

However, there's no reason to free the skb that received the duplicate
and then immediately allocate a new skb to post to the receive queue.
We can be more efficient and just repost the same skb.

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 8909c571
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment