diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-05-21 17:13:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-21 17:13:47 -0400 |
commit | a339f1c881fdb8092ef9b118610307e10e885fc8 (patch) | |
tree | 117feec8162165b577d7030262da66e8ac6a5e83 /net/bridge/br_forward.c | |
parent | 96e74088f1da4d9a53735a4a57a4f984f86b75c6 (diff) |
bridge: Use on-device stats instead of private ones.
Even though bridges require 6 fields from struct net_device_stats,
the on-device stats are always there, so we may just use them.
The br_dev_get_stats is no longer required after this.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_forward.c')
-rw-r--r-- | net/bridge/br_forward.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c index bdd7c35c3c7b..a4711674b3df 100644 --- a/net/bridge/br_forward.c +++ b/net/bridge/br_forward.c | |||
@@ -115,7 +115,7 @@ static void br_flood(struct net_bridge *br, struct sk_buff *skb, | |||
115 | struct sk_buff *skb2; | 115 | struct sk_buff *skb2; |
116 | 116 | ||
117 | if ((skb2 = skb_clone(skb, GFP_ATOMIC)) == NULL) { | 117 | if ((skb2 = skb_clone(skb, GFP_ATOMIC)) == NULL) { |
118 | br->statistics.tx_dropped++; | 118 | br->dev->stats.tx_dropped++; |
119 | kfree_skb(skb); | 119 | kfree_skb(skb); |
120 | return; | 120 | return; |
121 | } | 121 | } |