
Chapter III. Virtual Function Network (vNIC)
Chelsio Unified Wire for Linux
77
4.2.
Bonding
The VF network interfaces (assigned to a VM) can be aggregated into a single logical bonded
interface effectively combining the bandwidth into a single connection. It also provides
redundancy in case one of the link fails. Execute the following steps in the VM (attached with
more than 1 VF interface):
i. Load the Virtual Function network driver using
force_link_up
module parameter.
[root@host~]# modprobe cxgb4vf force_link_up=0
ii. Create a bonded interface:
[root@host~]# modprobe bonding mode=<bonding mode> <optional paramters>
iii. Bring up the bonded interface and enslave the VF interfaces to the bond:
[root@host~]# ifconfig bond0 up
[root@host~]# ifenslave bond0 ethX ethY
iv. Assign IPv4/IPv6 address to the bonded interface:
[root@host~]# ifconfig bond0 X.X.X.X/Y
[root@host~]# ifconfig bond0 inet6 add <128-bit IPv6 Address> up
Example
:
i. 2 VFs are instantiated each on PF0 (Port 0) and PF1 (Port 1) on the host.
[root@host~]# modprobe cxgb4
[root@host~]# echo 2 >
/sys/class/net/eth4/device/driver/0000\:01\:00.0/sriov_numvfs
[root@host~]# echo 2 >
/sys/class/net/eth4/device/driver/0000\:01\:00.1/sriov_numvfs
ethX and ethY are the VF interfaces attached to the same VM. It is recommended
to use VFs of different Ports to achieve redundancy in case of link failures.
Note
Summary of Contents for Terminator 6
Page 1: ...Chelsio Unified Wire for Linux i...
Page 15: ...Chapter I Chelsio Unified Wire Chelsio Unified Wire for Linux 15 I Chelsio Unified Wire...
Page 51: ...Chapter II Network NIC TOE Chelsio Unified Wire for Linux 51 II Network NIC TOE...
Page 82: ...Chapter IV iWARP RDMA Chelsio Unified Wire for Linux 82 IV iWARP RDMA...
Page 99: ...Chapter V iSER Chelsio Unified Wire for Linux 99 V iSER...
Page 107: ...Chapter VI WD UDP Chelsio Unified Wire for Linux 107 VI WD UDP...
Page 119: ...Chapter VII WD TOE Chelsio Unified Wire for Linux 119 VII WD TOE...
Page 125: ...Chapter VIII NVMe oF Chelsio Unified Wire for Linux 125 VIII NVMe oF...
Page 198: ...Chapter XII Crypto Offload Chelsio Unified Wire for Linux 198 XII Crypto Offload...
Page 230: ...Chapter XIV FCoE Full Offload Initiator Chelsio Unified Wire for Linux 230...
Page 235: ...Chapter XV Offload Bonding Chelsio Unified Wire for Linux 235 XV Offload Bonding...
Page 258: ...Chapter XVIII Offload IPv6 Chelsio Unified Wire for Linux 258 XVIII Offload IPv6...
Page 311: ...Chapter XXII Ring Backbone Chelsio Unified Wire for Linux 311 XXII Ring Backbone...
Page 317: ...Chapter XXIII Traffic Management Chelsio Unified Wire for Linux 317 XXIII Traffic Management...
Page 329: ...Chapter XXIV DPDK Driver Chelsio Unified Wire for Linux 329 XXIV DPDK Driver...
Page 347: ...Chapter XXV Unified Boot Chelsio Unified Wire for Linux 347 XXV Unified Boot...
Page 357: ...Chapter XXV Unified Boot Chelsio Unified Wire for Linux 357 iv Boot to EFI Shell...
Page 427: ...Chapter XXVI Appendix A Chelsio Unified Wire for Linux 427 XXVI Appendix A...