diff options
author | Eric Dumazet <edumazet@google.com> | 2013-04-22 14:31:34 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-25 01:38:25 -0400 |
commit | e12472dc574ca91be4cb87b14fb8cf90bee02c60 (patch) | |
tree | ead11107d95415784ec3de211428ddc021280b7c /net | |
parent | ee80fbf301adac644d0c9465194a7ec87bcd4a07 (diff) | |
download | linux-e12472dc574ca91be4cb87b14fb8cf90bee02c60.tar.gz linux-e12472dc574ca91be4cb87b14fb8cf90bee02c60.tar.bz2 linux-e12472dc574ca91be4cb87b14fb8cf90bee02c60.zip |
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')
-rw-r--r-- | net/core/dev.c | 7 |
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: skb->next = nskb->next; nskb->next = NULL; - /* - * If device doesn't 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); - if (!list_empty(&ptype_all)) dev_queue_xmit_nit(nskb, dev); |