[ovs-git] [openvswitch/ovs] 8db2f8: ovs-numa: Add support for cpu-mask configuration.

GitHub noreply at github.com
Fri Sep 19 22:59:55 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 8db2f898d515b78e0fabf1c0837f9b3064c768e5
      https://github.com/openvswitch/ovs/commit/8db2f898d515b78e0fabf1c0837f9b3064c768e5
  Author: Alex Wang <alexw at nicira.com>
  Date:   2014-09-19 (Fri, 19 Sep 2014)

  Changed paths:
    M lib/ovs-numa.c
    M lib/ovs-numa.h

  Log Message:
  -----------
  ovs-numa: Add support for cpu-mask configuration.

This commit adds support in ovs-numa module for reading a user
specified cpu mask, which configures the availability of the cores.

The cpu mask has the format of a hex string similar to the EAL '-c
COREMASK' option input or the 'taskset' mask input.  The lowest order
bit corresponds to the first CPU core.  Bit value '1' means the
corresponding core is available.

An upcoming patch will allow user to configure the mask via OVSDB.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>


  Commit: f2eee189118139995d61468cecb85654dd45bb36
      https://github.com/openvswitch/ovs/commit/f2eee189118139995d61468cecb85654dd45bb36
  Author: Alex Wang <alexw at nicira.com>
  Date:   2014-09-19 (Fri, 19 Sep 2014)

  Changed paths:
    M lib/dpif-netdev.c
    M lib/dpif-netlink.c
    M lib/dpif-provider.h
    M lib/dpif.c
    M lib/dpif.h
    M ofproto/ofproto-dpif.c
    M ofproto/ofproto-provider.h
    M ofproto/ofproto.c
    M ofproto/ofproto.h
    M vswitchd/bridge.c
    M vswitchd/vswitch.xml

  Log Message:
  -----------
  dpif-netdev: Allow multi-rx-queue, multi-pmd-thread configuration.

This commits adds the multithreading functionality to OVS dpdk
module.  Users are able to create multiple pmd threads and set
their cpu affinity via specifying the cpu mask string similar
to the EAL '-c COREMASK' option.

Also, the number of rx queues for each dpdk interface is made
configurable to help distribution of rx packets among multiple
pmd threads.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>


Compare: https://github.com/openvswitch/ovs/compare/7fe9859822be...f2eee1891181


More information about the git mailing list