[ovs-git] [openvswitch/ovs] 61473a: netdev-dpdk: Reset queue number for vhost devices ...

David Marchand noreply at github.com
Thu Jun 27 14:55:46 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 61473a0eb2564c61a1e6e1fd84435d458a6f7fec
      https://github.com/openvswitch/ovs/commit/61473a0eb2564c61a1e6e1fd84435d458a6f7fec
  Author: David Marchand <david.marchand at redhat.com>
  Date:   2019-06-27 (Thu, 27 Jun 2019)

  Changed paths:
    M NEWS
    M lib/netdev-dpdk.c

  Log Message:
  -----------
  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 at samsung.com>
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
Signed-off-by: David Marchand <david.marchand at redhat.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>




More information about the git mailing list