ipvs: Only call init_service, update_service and done_service for schedulers if defined
authorSven Wegener <sven.wegener@stealer.net>
Mon, 11 Aug 2008 19:36:06 +0000 (19:36 +0000)
committerSimon Horman <horms@verge.net.au>
Thu, 14 Aug 2008 23:26:14 +0000 (09:26 +1000)
commit82dfb6f32219d8e6cf6b979a520cb2b11d977d4e
tree7c21cf50a7c14e32a368a68e1518ea06589663f9
parent9a812198ae49967f239789164c55ec3e72b7e0dd
ipvs: Only call init_service, update_service and done_service for schedulers if defined

There are schedulers that only schedule based on data available in the service
or destination structures and they don't need any persistent storage or
initialization routine. These schedulers currently provide dummy functions for
the init_service, update_service and/or done_service functions. For the
init_service and done_service cases we already have code that only calls these
functions, if the scheduler provides them. Do the same for the update_service
case and remove the dummy functions from all schedulers.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/ipv4/ipvs/ip_vs_ctl.c
net/ipv4/ipvs/ip_vs_lblc.c
net/ipv4/ipvs/ip_vs_lblcr.c
net/ipv4/ipvs/ip_vs_lc.c
net/ipv4/ipvs/ip_vs_nq.c
net/ipv4/ipvs/ip_vs_rr.c
net/ipv4/ipvs/ip_vs_sed.c
net/ipv4/ipvs/ip_vs_wlc.c