Commit 83615b9d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] PPC64: iSeries virtual ethernet transmit errors

From: Stephen Rothwell <sfr@au1.ibm.com>

This patch stops the iseries_veth driver trying to send every packet to too
many logical partitions.  Consequently, the number of transmit errors falls to
(about) zero from a very large number.  This should also improve performance a
bit as the driver is no longer doing 31 extra skb_clone()s and skb_free()s for
each packet.
parent 7495a2b5
......@@ -940,7 +940,7 @@ static HvLpIndexMap veth_transmit_to_many(struct sk_buff *skb,
for (i = 0; i < HVMAXARCHITECTEDLPS; i++) {
struct sk_buff *clone;
if (! lpmask & (1<<i))
if ((lpmask & (1 << i)) == 0)
continue;
clone = skb_clone(skb, GFP_ATOMIC);
......
Markdown is supported
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