1. 27 9月, 2013 2 次提交
    • O
      Tools: hv: use single send+recv buffer · 269ce62b
      Olaf Hering 提交于
      send_buffer is used only once during registration. To reduce runtime
      memory usage reuse the recv_buffer for registration. Also use
      NLMSG_LENGTH instead of NLMSG_HDRLEN to take alignment into account.
      Signed-off-by: NOlaf Hering <olaf@aepfle.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      269ce62b
    • O
      Tools: hv: cache FQDN in kvp_daemon to avoid timeouts · 58125210
      Olaf Hering 提交于
      kvp_daemon does some operations which take an unpredicable amount of
      time. In addition the kernel driver gives the kvp_daemon a 5 second
      timeout to respond to message from the host. If an operation such as
      getaddrinfo takes a long time and the timeout triggers then netlink
      errors occour. As a result of such errors the daemon just terminates and
      the service becomes unavailable.
      
      Idendifying and fixing these shortcomings in the kernel-userland
      communication protocol will be done in separate patches. This change
      fixes just one obvious timeout bug.
      
      Update kvp_get_domain_name to not return a value, better diagnostic for
      the consumer of the hostname string, remove trailing newline in error
      case, use snprintf to not overrun output buffer, get hostname only once
      and return the cached result.
      Signed-off-by: NOlaf Hering <olaf@aepfle.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      58125210
  2. 13 8月, 2013 2 次提交
  3. 05 8月, 2013 2 次提交
  4. 02 8月, 2013 2 次提交
  5. 17 7月, 2013 1 次提交
  6. 18 6月, 2013 1 次提交
  7. 04 6月, 2013 4 次提交
  8. 16 3月, 2013 3 次提交
  9. 19 1月, 2013 1 次提交
  10. 18 1月, 2013 3 次提交
  11. 16 11月, 2012 2 次提交
  12. 31 10月, 2012 2 次提交
  13. 11 9月, 2012 8 次提交
  14. 05 9月, 2012 3 次提交
  15. 17 8月, 2012 4 次提交