Skip to content

Commit

Permalink
[NET]: ifb double-counts packets
Browse files Browse the repository at this point in the history
Signed-off-by: dean gaudet <dean@arctic.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
dean gaudet authored and David S. Miller committed Jan 4, 2007
1 parent a7ec3f5 commit 3136dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ static int ifb_xmit(struct sk_buff *skb, struct net_device *dev)
int ret = 0;
u32 from = G_TC_FROM(skb->tc_verd);

stats->tx_packets++;
stats->tx_bytes+=skb->len;
stats->rx_packets++;
stats->rx_bytes+=skb->len;

if (!from || !skb->input_dev) {
dropped:
Expand Down

0 comments on commit 3136dcb

Please sign in to comment.