Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183235
b: refs/heads/master
c: 068a2de
h: refs/heads/master
i:
  183233: 1df2c54
  183231: b4508de
v: v3
  • Loading branch information
Krishna Kumar authored and David S. Miller committed Dec 23, 2009
1 parent b44aad3 commit 7184a60
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: def87cf42069a6d4fd42a2ede8f19c620a292568
refs/heads/master: 068a2de57ddf4f472e32e7af868613c574ad1d88
8 changes: 8 additions & 0 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,14 @@ int dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,

skb->next = nskb->next;
nskb->next = NULL;

/*
* If device doesnt need nskb->dst, release it right now while
* its hot in this cpu cache
*/
if (dev->priv_flags & IFF_XMIT_DST_RELEASE)
skb_dst_drop(nskb);

rc = ops->ndo_start_xmit(nskb, dev);
if (unlikely(rc != NETDEV_TX_OK)) {
if (rc & ~NETDEV_TX_MASK)
Expand Down

0 comments on commit 7184a60

Please sign in to comment.