diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-04-04 14:03:28 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-04 17:22:26 -0700 |
commit | 7cd8861ab0d907430bbea0af93bc41aee0437efc (patch) | |
tree | ed6f9689447b01dc81212705d015186f17774f23 /net/bridge/br_input.c | |
parent | 03e9b64b89243ccc6f8f48f5955a5a78a8ca1431 (diff) |
bridge: track last used time in forwarding table
Adds tracking the last used time in forwarding table.
Rename ageing_timer to updated to better describe it.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_input.c')
-rw-r--r-- | net/bridge/br_input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c index e2160792e1b..785932d7ad3 100644 --- a/net/bridge/br_input.c +++ b/net/bridge/br_input.c @@ -98,9 +98,10 @@ int br_handle_frame_finish(struct sk_buff *skb) } if (skb) { - if (dst) + if (dst) { + dst->used = jiffies; br_forward(dst->dst, skb, skb2); - else + } else br_flood_forward(br, skb, skb2); } |