]> git.proxmox.com Git - mirror_ovs.git/commit - NEWS
netdev-dpdk: Reset queue number for vhost devices on vm shutdown.
authorDavid Marchand <david.marchand@redhat.com>
Thu, 27 Jun 2019 09:43:36 +0000 (11:43 +0200)
committerIan Stokes <ian.stokes@intel.com>
Thu, 27 Jun 2019 14:28:04 +0000 (15:28 +0100)
commit61473a0eb2564c61a1e6e1fd84435d458a6f7fec
tree9fc71b48eb5df87d15a7983a66164fedaa2e38de
parentf2c7ddef230a74ebbf42bd8ec857d70c3ad16c16
netdev-dpdk: Reset queue number for vhost devices on vm shutdown.

Rather than poll all disabled queues and waste some memory for vms that
have been shutdown, we can reconfigure when receiving a destroy
connection notification from the vhost library.

$ while true; do
  ovs-appctl dpif-netdev/pmd-rxq-show |awk '
  /port: / {
    tot++;
    if ($5 == "(enabled)") {
      en++;
    }
  }
  END {
    print "total: " tot ", enabled: " en
  }'
  sleep 1
done

total: 66, enabled: 66
total: 6, enabled: 2

This change requires a fix in the DPDK vhost library, so bump the minimal
required version to 18.11.2.

Co-authored-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
NEWS
lib/netdev-dpdk.c