aboutsummaryrefslogtreecommitdiffstats
path: root/etc/os-net-config/samples/ovs_dpdk_bond.yaml
blob: 17a73a3f55655f9a68b42bc2b94d458a6e191b61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# ovs_user_bridge type refers to the OVSUserBridge OVS ifup type, which will
# have the datapath type set as 'netdev' for DPDK processing.
# ovs_dpdk_port type refers to the OVSDPDKPort OVS ifup type, which will
# add the port to the bridge with the interface type as 'dpdk'.
# ovs_dpdk_bond type refers to the OVSDPDKBond OVS ifup type, which will
# create the bond with dpdk interface type for dpdk ports

network_config:
  -
    type: ovs_user_bridge
    name: br-link
    members:
      -
        type: ovs_dpdk_bond
        name: dpdkbond0
        # MTU is optional, e.g. for jumbo frames
        mtu: 9000
        # rx_queue is optional, used for multi-queue option. It configures the
        # maximum number of queues for each interface associated with the
        # ovs_dpdk_bond. If not defined, the physical interfaces will have
        # single queue.
        # (rx_queue) x (Number of members in the ovs_dpdk_bond) should be less
        # than the number of PMD cores, as each queue will have one PMD thread
        # (CPU) associated with it.
        rx_queue: 4
        members:
            -
              type: ovs_dpdk_port
              name: dpdk0
              members:
                  -
                    type: interface
                    name: nic2
            -
              type: ovs_dpdk_port
              name: dpdk1
              members:
                  -
                    type: interface
                    name: nic3