[ovs-git] [openvswitch/ovs] 7235cd: netdev-dpdk: Avoid reconfiguration on VIRTIO_NET_F...

David Marchand noreply at github.com
Wed Jun 26 18:46:42 UTC 2019


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

  Changed paths:
    M lib/netdev-dpdk.c

  Log Message:
  -----------
  netdev-dpdk: Avoid reconfiguration on VIRTIO_NET_F_MQ changes.

At the moment, a malicious guest might negotiate VIRTIO_NET_F_MQ and
!VIRTIO_NET_F_MQ in a loop which would be seen as qp_num going from 1 to
n and n to 1 continuously, triggering datapath reconfigurations at each
transition.

Limit this by only reconfiguring on increased qp_num.
The previous patch reduced the observed cost of polling disabled queues,
so the only cost is memory.

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>
Acked-by: Kevin Traynor <ktraynor at redhat.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>




More information about the git mailing list