Message ID | 20110705.234930.2282002049899864045.davem@davemloft.net |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
On Tue, 05 Jul 2011 23:49:30 -0700, David Miller wrote: > > -tx_drop: > - kfree_skb(skb); > - u64_stats_update_begin(&stats->syncp); - stats->tx_dropped++; > - u64_stats_update_end(&stats->syncp); - return NETDEV_TX_OK; > - Ahh, yeah, we have removed the goto tx_drop... Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 9eb92bf..19e0b0c 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -148,13 +148,6 @@ static netdev_tx_t veth_xmit(struct sk_buff *skb, struct net_device *dev) return NETDEV_TX_OK; -tx_drop: - kfree_skb(skb); - u64_stats_update_begin(&stats->syncp); - stats->tx_dropped++; - u64_stats_update_end(&stats->syncp); - return NETDEV_TX_OK; - rx_drop: u64_stats_update_begin(&rcv_stats->syncp); rcv_stats->rx_dropped++;
Signed-off-by: David S. Miller <davem@davemloft.net> --- drivers/net/veth.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-)