1. 17 Jul, 2020 2 commits
    • Merge pull request #3487 from samboyles1/master · 8bbca3cc
      Christian Brauner authored
      Improve efficiency of lxc_ifname_alnum_case_sensitive
    • Improve efficiency of lxc_ifname_alnum_case_sensitive · 4810a7a3
      Sam Boyles authored
      To detect if a newly generated interface name is a duplicate of an existing interface lxc_ifname_alnum_case_sensitive() currently gets a list of all interfaces using netns_getifaddrs(). When the system has a small number of interfaces this works fine, however when there are thousands or tens of thousands of interfaces this quickly becomes less than optimal.
      
      As we only need to check if an interface name exists, and do not need the detailed information about the interfaces provided by netns_getifaddrs(), we can instead use the if_nametoindex() function, which is much more efficient.
      Signed-off-by: 's avatarSam Boyles <sam.boyles@alliedtelesis.co.nz>
  2. 16 Jul, 2020 2 commits
  3. 08 Jul, 2020 2 commits
  4. 06 Jul, 2020 3 commits
  5. 05 Jul, 2020 8 commits
  6. 03 Jul, 2020 8 commits
  7. 01 Jul, 2020 2 commits
  8. 30 Jun, 2020 4 commits
  9. 29 Jun, 2020 6 commits
  10. 26 Jun, 2020 3 commits