• Julian Anastasov's avatar
    ipvs: preparations for using rcu in schedulers · 6b6df466
    Julian Anastasov authored
    Allow schedulers to use rcu_dereference when
    returning destination on lookup. The RCU read-side critical
    section will allow ip_vs_bind_dest to get dest refcnt as
    preparation for the step where destinations will be
    deleted without an IP_VS_WAIT_WHILE guard that holds the
    packet processing during update.
    
    	Add new optional scheduler methods add_dest,
    del_dest and upd_dest. For now the methods are called
    together with update_service but update_service will be
    removed in a following change.
    Signed-off-by: default avatarJulian Anastasov <ja@ssi.bg>
    Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
    6b6df466
ip_vs.h 46.2 KB