diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-04-04 16:03:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-05 02:22:26 +0200 |
commit | 7cd8861ab0d907430bbea0af93bc41aee0437efc (patch) | |
tree | ed6f9689447b01dc81212705d015186f17774f23 /net/bridge/br_input.c | |
parent | bridge: change arguments to fdb_create (diff) | |
download | linux-7cd8861ab0d907430bbea0af93bc41aee0437efc.tar.xz linux-7cd8861ab0d907430bbea0af93bc41aee0437efc.zip |
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 e2160792e1bc..785932d7ad32 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); } |