aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-04-22 10:31:34 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-25 01:38:25 -0400
commite12472dc574ca91be4cb87b14fb8cf90bee02c60 (patch)
treeead11107d95415784ec3de211428ddc021280b7c /net/core
parentee80fbf301adac644d0c9465194a7ec87bcd4a07 (diff)
net: remove redundant code in dev_hard_start_xmit()
This reverts commit 068a2de57ddf4f4 (net: release dst entry while cache-hot for GSO case too) Before GSO packet segmentation, we already take care of skb->dst if it can be released. There is no point adding extra test for every segment in the gso loop. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Krishna Kumar <krkumar2@in.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 9e26b8d9eafe..7c30dcecee1d 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2546,13 +2546,6 @@ gso:
2546 skb->next = nskb->next; 2546 skb->next = nskb->next;
2547 nskb->next = NULL; 2547 nskb->next = NULL;
2548 2548
2549 /*
2550 * If device doesn't need nskb->dst, release it right now while
2551 * its hot in this cpu cache
2552 */
2553 if (dev->priv_flags & IFF_XMIT_DST_RELEASE)
2554 skb_dst_drop(nskb);
2555
2556 if (!list_empty(&ptype_all)) 2549 if (!list_empty(&ptype_all))
2557 dev_queue_xmit_nit(nskb, dev); 2550 dev_queue_xmit_nit(nskb, dev);
2558 2551