Skip to content

Commit

Permalink
net_sched: always clone skbs
Browse files Browse the repository at this point in the history
Pawel reported a panic related to handling shared skbs in ixgbe
incorrectly. So we need to revert my previous patch to work around
this bug. Instead of reverting the patch completely, I just revert
the essential lines, so we can add the previous optimization
back more easily in future.

    commit 3511c91
    Author: Changli Gao <[email protected]>
    Date:   Sat Oct 16 13:04:08 2010 +0000

        net_sched: remove the unused parameter of qdisc_create_dflt()

Reported-by: Pawel Staszewski <[email protected]>
Signed-off-by: Changli Gao <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
xiaosuo authored and davem330 committed Dec 20, 2010
1 parent ad0081e commit 1730210
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/net/sch_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -610,11 +610,7 @@ static inline struct sk_buff *skb_act_clone(struct sk_buff *skb, gfp_t gfp_mask,
{
struct sk_buff *n;

if ((action == TC_ACT_STOLEN || action == TC_ACT_QUEUED) &&
!skb_shared(skb))
n = skb_get(skb);
else
n = skb_clone(skb, gfp_mask);
n = skb_clone(skb, gfp_mask);

if (n) {
n->tc_verd = SET_TC_VERD(n->tc_verd, 0);
Expand Down

0 comments on commit 1730210

Please sign in to comment.