Skip to content
Snippets Groups Projects
Commit 3136dcb3 authored by dean gaudet's avatar dean gaudet Committed by David S. Miller
Browse files

[NET]: ifb double-counts packets

parent a7ec3f52
Branches
Tags
No related merge requests found
...@@ -154,8 +154,8 @@ static int ifb_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -154,8 +154,8 @@ static int ifb_xmit(struct sk_buff *skb, struct net_device *dev)
int ret = 0; int ret = 0;
u32 from = G_TC_FROM(skb->tc_verd); u32 from = G_TC_FROM(skb->tc_verd);
stats->tx_packets++; stats->rx_packets++;
stats->tx_bytes+=skb->len; stats->rx_bytes+=skb->len;
if (!from || !skb->input_dev) { if (!from || !skb->input_dev) {
dropped: dropped:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment