mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
net: ipmr/ip6mr: update lastuse on entry change
Currently lastuse is updated on entry creation and cache hit, but it should also be updated on entry change. Since both on add and update the ttl array is updated we can simply update the lastuse in ipmr_update_thresholds. Signed-off-by: Nikolay Aleksandrov <[email protected]> CC: Roopa Prabhu <[email protected]> CC: Donald Sharp <[email protected]> CC: David S. Miller <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
e3a3b62601
commit
90b5ca1766
2 changed files with 2 additions and 2 deletions
|
|
@ -722,6 +722,7 @@ static void ipmr_update_thresholds(struct mr_table *mrt, struct mfc_cache *cache
|
|||
cache->mfc_un.res.maxvif = vifi + 1;
|
||||
}
|
||||
}
|
||||
cache->mfc_un.res.lastuse = jiffies;
|
||||
}
|
||||
|
||||
static int vif_add(struct net *net, struct mr_table *mrt,
|
||||
|
|
@ -1150,7 +1151,6 @@ static int ipmr_mfc_add(struct net *net, struct mr_table *mrt,
|
|||
c->mfc_origin = mfc->mfcc_origin.s_addr;
|
||||
c->mfc_mcastgrp = mfc->mfcc_mcastgrp.s_addr;
|
||||
c->mfc_parent = mfc->mfcc_parent;
|
||||
c->mfc_un.res.lastuse = jiffies;
|
||||
ipmr_update_thresholds(mrt, c, mfc->mfcc_ttls);
|
||||
if (!mrtsock)
|
||||
c->mfc_flags |= MFC_STATIC;
|
||||
|
|
|
|||
Loading…
Reference in a new issue