Usage

In this section, it is assumed that Virtual Accelerator has been properly installed and configured. See Getting Started for more details.

Fast path

You can manage MACVLAN devices via the fp-cli commands below.

Displaying MACVLAN devices

Synopsis

macvlan

Example

<fp-0> macvlan
ntfp2-vr0:
        macvlan3-vr0: mode: private
        macvlan1-vr0: mode: private
ntfp3-vr0:
        macvlan2-vr0: mode: passthru

Displaying MACVLAN information

Synopsis

iface

Example

<fp-0> iface
...
10:macvlan1 [VR-0] ifid=10 (virtual) <FWD4|FWD6> (0x18)
        type=macvlan mac=26:ff:f5:17:53:6d mtu=1500 tcp4mss=0 tcp6mss=0
        IPv4 routes=0  IPv6 routes=0
        if_ops: rx_dev=none rx_early=none tx_dev=macvlan ip_output=none
        mode private, link ntfp2
11:macvlan2 [VR-0] ifid=11 (virtual) <FWD4|FWD6> (0x18)
        type=macvlan mac=de:ed:03:d6:ff:33 mtu=1500 tcp4mss=0 tcp6mss=0
        IPv4 routes=0  IPv6 routes=0
        if_ops: rx_dev=none rx_early=none tx_dev=macvlan ip_output=none
        mode passthru, link ntfp3
12:macvlan3 [VR-0] ifid=12 (virtual) <FWD4|FWD6> (0x18)
        type=macvlan mac=a6:09:fe:65:09:c7 mtu=1500 tcp4mss=0 tcp6mss=0
        IPv4 routes=0  IPv6 routes=0
        if_ops: rx_dev=none rx_early=none tx_dev=macvlan ip_output=none
        mode private, link ntfp2
...

Providing options

Some capabilities can be tuned for this module.

--ifaces

Maximum number of MACVLAN interfaces

Default value

127

Memory footprint per MACVLAN interfaces

50 B

Range

0 .. 5000

Example

FP_OPTIONS="--mod-opt=macvlan:--ifaces=256"

Then fast path can manage up to 256 MACVLAN interfaces.

--hash-order

Size order of MACVLAN interfaces hash table. Value automatically updated if --ifaces is changed.

Default value

8

Range

1 .. 31

Example

FP_OPTIONS="--mod-opt=macvlan:--hash-order=9"

Tip

To get optimal performance, apply the following ratios to the two parameters:

Parameter

Value

–hash-order

N

–ifaces

2 ** N

Note

See Fast Path Capabilities documentation for impact of the available memory on the default value of configurable capabilities