1. 08 May, 2011 2 commits
    • Hans Schillstrom's avatar
      IPVS: init and cleanup restructuring · 74973f6f
      Hans Schillstrom authored
      DESCRIPTION
      This patch tries to restore the initial init and cleanup
      sequences that was before namspace patch.
      Netns also requires action when net devices unregister
      which has never been implemented. I.e this patch also
      covers when a device moves into a network namespace,
      and has to be released.
      
      IMPLEMENTATION
      The number of calls to register_pernet_device have been
      reduced to one for the ip_vs.ko
      Schedulers still have their own calls.
      
      This patch adds a function __ip_vs_service_cleanup()
      and an enable flag for the netfilter hooks.
      
      The nf hooks will be enabled when the first service is loaded
      and never disabled again, except when a namespace exit starts.
      Signed-off-by: default avatarHans Schillstrom <hans@schillstrom.com>
      Acked-by: default avatarJulian Anastasov <ja@ssi.bg>
      [horms@verge.net.au: minor edit to changelog]
      Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
      74973f6f
    • Hans Schillstrom's avatar
      IPVS: Change of socket usage to enable name space exit. · 421eab4c
      Hans Schillstrom authored
      If the sync daemons run in a name space while it crashes
      or get killed, there is no way to stop them except for a reboot.
      When all patches are there, ip_vs_core will handle register_pernet_(),
      i.e. ip_vs_sync_init() and ip_vs_sync_cleanup() will be removed.
      
      Kernel threads should not increment the use count of a socket.
      By calling sk_change_net() after creating a socket this is avoided.
      sock_release cant be used intead sk_release_kernel() should be used.
      
      Thanks Eric W Biederman for your advices.
      Signed-off-by: default avatarHans Schillstrom <hans@schillstrom.com>
      [horms@verge.net.au: minor edit to changelog]
      Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
      421eab4c
  2. 21 Apr, 2011 3 commits
  3. 19 Apr, 2011 1 commit
  4. 13 Apr, 2011 3 commits
  5. 04 Apr, 2011 8 commits
  6. 02 Apr, 2011 4 commits
  7. 01 Apr, 2011 1 commit
  8. 31 Mar, 2011 5 commits
  9. 30 Mar, 2011 13 commits