User Manual

Driver FeaturesRev 2.2-1.0.1
Mellanox Technologies
72
vNic Support
To verify the vNIC is configured to All-VLAN mode. Run:
mlx4_vnic_info -i <interface>
Example:
# mlx4_vnic_info -i eth204
NETDEV_NAME eth204
NETDEV_LINK up
NETDEV_OPEN yes
GW_TYPE LEGACY
ALL_VLAN yes
For further information on mlx4_vnic_info script, please see Section 4.3.3.1, “mlx4_vnic_info”,
on page 68.
4.3.4 Advanced EoIB Settings
4.3.4.1 Module Parameters
The mlx4_vnic driver supports the following module parameters. These parameters are intended
to enable more specific configuration of the mlx4_vnic driver to customer needs.
The mlx4_vnic
is also effected by module parameters of other modules such as set_4k_mtu of mlx4_core. This
modules are not addressed in this section.
The available module parameters include:
tx_rings_num: Number of TX rings, use 0 for #cpus [default 0, max 32]
tx_rings_len: Length of TX rings, must be power of two [default 1024, max 8K]
rx_rings_num: Number of RX rings, use 0 for #cpus [default 0, max 32]
rx_rings_len: Length of RX rings, must be power of two [default 2048, max 8K]
vnic_net_admin: Network administration enabled [default 1]
lro_num: Number of LRO sessions per ring, use 0 to disable LRO [default 32, max 32]
eport_state_enforce: Bring vNic up only when corresponding External Port is up
[default 0]
discovery_pkeys: Vector of up to 24 PKEYs to be used for discovery [default 0xFFFF]
(array of int)
For all module parameters list and description, run:
mlx4_vnic_info -I
To check the current module parameters, run:
mlx4_vnic_info -P
Default RX/TX rings number is the number of logical CPUs (threads). To set non-default values
to module parameters, the following line should be added to modprobe configuration file (e.g. /
etc/modprobe.conf file):
options mlx4_vnic <param_name>=<value> <param_name>=<value> ...
For additional information about discovery_pkeys please refer to Section 4.3.3.5, “Discovery
Partitions Configuration”, on page 69