Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3136dcb3cd6e5b4ed4bd34d422f8cdeec4da6836 Commit: 3136dcb3cd6e5b4ed4bd34d422f8cdeec4da6836 Parent: a7ec3f5289681e9d63b65db5f56857f998812b4b Author: dean gaudet <[EMAIL PROTECTED]> AuthorDate: Mon Jan 1 19:39:09 2007 -0800 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Wed Jan 3 18:38:08 2007 -0800
[NET]: ifb double-counts packets Signed-off-by: dean gaudet <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- drivers/net/ifb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c index c26a4b8..ca2b21f 100644 --- a/drivers/net/ifb.c +++ b/drivers/net/ifb.c @@ -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: - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html