[ovs-git] [openvswitch/ovs] 3bcc10: dpif-netdev: Fix non-pmd thread queue id.

GitHub noreply at github.com
Wed Jun 3 22:35:16 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 3bcc10c0701c241ef62bdb32c5d21c060ad7590b
      https://github.com/openvswitch/ovs/commit/3bcc10c0701c241ef62bdb32c5d21c060ad7590b
  Author: Daniele Di Proietto <diproiettod at vmware.com>
  Date:   2015-06-03 (Wed, 03 Jun 2015)

  Changed paths:
    M lib/dpif-netdev.c

  Log Message:
  -----------
  dpif-netdev: Fix non-pmd thread queue id.

Non pmd threads have a core_id == UINT32_MAX, while queue ids used by
netdevs range from 0 to the number of CPUs.  Therefore core ids cannot
be used directly to select a queue.

This commit introduces a simple mapping to fix the problem: pmd threads
continue using queues 0 to N (where N is the number of CPUs in the
system), while non pmd threads use queue N+1.

Fixes: d5c199ea7ff7 ("netdev-dpdk: Properly support non pmd threads.")

Reported-by: 차은호 <eunho.cha at atto-research.com
Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>
Signed-off-by: Mark D. Gray <mark.d.gray at intel.com>
Signed-off-by: Ethan Jackson <ethan at nicira.com>
Acked-by: Flavio Leitner <fbl at redhat.com>
Acked-by: Ethan Jackson <ethan at nicira.com>




More information about the git mailing list