-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathREADME
2146 lines (1398 loc) · 68.5 KB
/
README
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
ixgbe Linux* Base Driver for Intel(R) Ethernet Network Connections
******************************************************************
February 13, 2025
Contents
^^^^^^^^
* ixgbe Linux* Base Driver for Intel(R) Ethernet Network Connections
* Overview
* Related Documentation
* Identifying Your Adapter
* Important Notes
* Building and Installation
* Command Line Parameters
* Additional Features and Configurations
* Known Issues/Troubleshooting
* Support
* License
* Trademarks
Overview
========
This driver supports Linux* kernel versions 2.6.x and newer. However,
some features may require a newer kernel version. The associated
Virtual Function (VF) driver for this driver is ixgbevf.
Driver information can be obtained using ethtool, lspci, and ip.
Instructions on updating ethtool can be found in the section
Additional Configurations later in this document.
This driver is only supported as a loadable module at this time. Intel
is not supplying patches against the kernel source to allow for static
linking of the drivers.
For questions related to hardware requirements, refer to the
documentation supplied with your Intel adapter. All hardware
requirements listed apply to use with Linux.
This driver supports XDP (Express Data Path) on kernel 4.14 and later
and AF_XDP zero-copy on kernel 4.18 and later. Note that XDP is
blocked for frame sizes larger than 3KB.
Note:
Devices based on the Intel(R) Ethernet Connection X552 and Intel(R)
Ethernet Connection X553 do not support the following features:
* Energy Efficient Ethernet (EEE)
* Intel PROSet for Windows Device Manager
* Intel ANS teams or VLANs (LBFO is supported)
* Fibre Channel over Ethernet (FCoE)
* Data Center Bridging (DCB)
* IPSec Offloading
* MACSec Offloading
In addition, SFP+ devices based on the Intel(R) Ethernet Connection
X552 and Intel(R) Ethernet Connection X553 do not support the
following features:
* Speed and duplex auto-negotiation
* Wake on LAN
* 1000BASE-T SFP Modules
Related Documentation
=====================
See the "Intel(R) Ethernet Adapters and Devices User Guide" for
additional information on features. It is available on the Intel
website at https://cdrdv2.intel.com/v1/dl/getContent/705831.
Identifying Your Adapter
========================
The driver is compatible with devices based on the following:
* Intel(R) Ethernet Controller 82598
* Intel(R) Ethernet Controller 82599
* Intel(R) Ethernet Controller X520
* Intel(R) Ethernet Controller X540
* Intel(R) Ethernet Controller x550
* Intel(R) Ethernet Controller X552
* Intel(R) Ethernet Controller X553
* Intel(R) Ethernet Controller E610
For information on how to identify your adapter, and for the latest
Intel network drivers, refer to the Intel Support website at
https://www.intel.com/support.
SFP+ Devices with Pluggable Optics
----------------------------------
82599-Based Adapters
~~~~~~~~~~~~~~~~~~~~
Note:
* If your 82599-based Intel(R) Network Adapter came with Intel
optics or is an Intel(R) Ethernet Server Adapter X520-2, then it
only supports Intel optics and/or the direct attach cables listed
below.
* When 82599-based SFP+ devices are connected back to back, they
should be set to the same Speed setting via ethtool. Results may
vary if you mix speed settings.
+-----------------------------------+-----------------------------------+-----------------------------------+
| Supplier | Type | Part Numbers |
|===================================|===================================|===================================|
| **SR Modules:** | | |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Intel | DUAL RATE 1G/10G SFP+ SR (bailed) | FTLX8571D3BCV-IT |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Intel | DUAL RATE 1G/10G SFP+ SR (bailed) | AFBR-703SDZ-IN2 |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Intel | DUAL RATE 1G/10G SFP+ SR (bailed) | AFBR-703SDDZ-IN1 |
+-----------------------------------+-----------------------------------+-----------------------------------+
| **LR Modules:** | | |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Intel | DUAL RATE 1G/10G SFP+ LR (bailed) | FTLX1471D3BCV-IT |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Intel | DUAL RATE 1G/10G SFP+ LR (bailed) | AFCT-701SDZ-IN2 |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Intel | DUAL RATE 1G/10G SFP+ LR (bailed) | AFCT-701SDDZ-IN1 |
+-----------------------------------+-----------------------------------+-----------------------------------+
The following is a list of third-party SFP+ modules that have received
some testing. Not all modules are applicable to all devices.
+-----------------------------------+-----------------------------------+-----------------------------------+
| Supplier | Type | Part Numbers |
|===================================|===================================|===================================|
| Finisar | SFP+ SR bailed, 10g single rate | FTLX8571D3BCL |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Avago | SFP+ SR bailed, 10g single rate | AFBR-700SDZ |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Finisar | SFP+ LR bailed, 10g single rate | FTLX1471D3BCL |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Finisar | DUAL RATE 1G/10G SFP+ SR (No | FTLX8571D3QCV-IT |
| | Bail) | |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Avago | DUAL RATE 1G/10G SFP+ SR (No | AFBR-703SDZ-IN1 |
| | Bail) | |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Finisar | DUAL RATE 1G/10G SFP+ LR (No | FTLX1471D3QCV-IT |
| | Bail) | |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Avago | DUAL RATE 1G/10G SFP+ LR (No | AFCT-701SDZ-IN1 |
| | Bail) | |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Finisar | 1000BASE-T SFP | FCLF8522P2BTL |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Avago | 1000BASE-T | ABCU-5710RZ |
+-----------------------------------+-----------------------------------+-----------------------------------+
| HP | 1000BASE-SX SFP | 453153-001 |
+-----------------------------------+-----------------------------------+-----------------------------------+
82599-based adapters support all passive and active limiting direct
attach cables that comply with SFF-8431 v4.1 and SFF-8472 v10.4
specifications.
Turning the laser off or on for SFP+
""""""""""""""""""""""""""""""""""""
Use the following to turn the laser off and on:
ip link set [down|up] dev <ethX>
82599-Based QSFP+ Adapters
--------------------------
Note:
* If your 82599-based Intel(R) Network Adapter came with Intel
optics, it only supports Intel optics.
* 82599-based QSFP+ adapters only support 4x10 Gbps connections.
1x40 Gbps connections are not supported. QSFP+ link partners must
be configured for 4x10 Gbps.
* 82599-based QSFP+ adapters do not support automatic link speed
detection. The link speed must be configured to either 10 Gbps or
1 Gbps to match the link partners speed capabilities. Incorrect
speed configurations will result in failure to link.
* Intel(R) Ethernet Converged Network Adapter X520-Q1 only supports
the optics and direct attach cables listed below.
+-----------------------------------+-----------------------------------+-----------------------------------+
| Supplier | Type | Part Numbers |
|===================================|===================================|===================================|
| Intel | DUAL RATE 1G/10G QSFP+ SRL | E10GQSFPSR |
| | (bailed) | |
+-----------------------------------+-----------------------------------+-----------------------------------+
82599-based QSFP+ adapters support all passive and active limiting
QSFP+ direct attach cables that comply with SFF-8436 v4.1
specifications.
82598-Based Adapters
--------------------
Note:
* Intel(R) Ethernet Network Adapters that support removable optical
modules only support their original module type (for example, the
Intel(R) 10 Gigabit SR Dual Port Express Module only supports SR
optical modules). If you plug in a different type of module, the
driver will not load.
* Hot Swapping/hot plugging optical modules is not supported.
* Only single speed, 10 gigabit modules are supported.
* LAN on Motherboard (LOMs) may support DA, SR, or LR modules. Other
module types are not supported. Please see your system
documentation for details.
The following is a list of SFP+ modules and direct attach cables that
have received some testing. Not all modules are applicable to all
devices.
+-----------------------------------+-----------------------------------+-----------------------------------+
| Supplier | Type | Part Numbers |
|===================================|===================================|===================================|
| Finisar | SFP+ SR bailed, 10g single rate | FTLX8571D3BCL |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Avago | SFP+ SR bailed, 10g single rate | AFBR-700SDZ |
+-----------------------------------+-----------------------------------+-----------------------------------+
| Finisar | SFP+ LR bailed, 10g single rate | FTLX1471D3BCL |
+-----------------------------------+-----------------------------------+-----------------------------------+
82598-based adapters support all passive direct attach cables that
comply with SFF-8431 v4.1 and SFF-8472 v10.4 specifications. Active
direct attach cables are not supported.
Third-party optic modules and cables referred to above are listed only
for the purpose of highlighting third party specifications and
potential compatibility, and are not recommendations or endorsements
or sponsorship of any third party's product by Intel. Intel is not
endorsing or promoting products made by any third party and the third
party reference is provided only to share information regarding
certain optic modules and cables with the above specifications. There
may be other manufacturers or suppliers, producing or supplying optic
modules and cables with similar or matching descriptions. Customers
must use their own discretion and diligence to purchase optic modules
and cables from any third party of their choice. Customers are solely
responsible for assessing the suitability of the product and/or
devices and for the selection of the vendor for purchasing any
product. THE OPTIC MODULES AND CABLES REFERRED TO ABOVE ARE NOT
WARRANTED OR SUPPORTED BY INTEL. INTEL ASSUMES NO LIABILITY
WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY,
RELATING TO SALE AND/OR USE OF SUCH THIRD PARTY PRODUCTS OR SELECTION
OF VENDOR BY CUSTOMERS.
Important Notes
===============
Do not unload port driver if VF with active VM is bound to it
-------------------------------------------------------------
Do not unload a port's driver if a Virtual Function (VF) with an
active Virtual Machine (VM) is bound to it. Doing so will cause the
port to appear to hang. Once the VM shuts down, or otherwise releases
the VF, the command will complete.
Configuring SR-IOV for improved network security
------------------------------------------------
In a virtualized environment, on Intel(R) Ethernet Network Adapters
that support SR-IOV, the virtual function (VF) may be subject to
malicious behavior. Software-generated layer two frames, like IEEE
802.3x (link flow control), IEEE 802.1Qbb (priority based flow-
control), and others of this type, are not expected and can throttle
traffic between the host and the virtual switch, reducing performance.
To resolve this issue, and to ensure isolation from unintended traffic
streams, configure all SR-IOV enabled ports for VLAN tagging from the
administrative interface on the PF. This configuration allows
unexpected, and potentially malicious, frames to be dropped.
Building and Installation
=========================
To manually build the driver
----------------------------
1. Move the base driver tar file to the directory of your choice. For
example, use "/home/username/ixgbe" or "/usr/local/src/ixgbe".
2. Untar/unzip the archive, where "<x.x.x>" is the version number for
the driver tar file:
tar zxf ixgbe-<x.x.x>.tar.gz
3. Change to the driver src directory, where "<x.x.x>" is the version
number for the driver tar:
cd ixgbe-<x.x.x>/src/
4. Compile the driver module:
make install
The binary will be installed as:
/lib/modules/<KERNEL VER>/updates/drivers/net/ethernet/intel/ixgbe/ixgbe.ko
The install location listed above is the default location. This may
differ for various Linux distributions.
5. Load the module using the modprobe command.
To check the version of the driver and then load it:
modinfo ixgbe
modprobe ixgbe [parameter=port1_value,port2_value]
Alternately, make sure that any older ixgbe drivers are removed
from the kernel before loading the new module:
rmmod ixgbe; modprobe ixgbe
6. Assign an IP address to the interface by entering the following,
where "<ethX>" is the interface name that was shown in dmesg after
modprobe:
ip address add <IP_address>/<netmask bits> dev <ethX>
7. Verify that the interface works. Enter the following, where
"IP_address" is the IP address for another machine on the same
subnet as the interface that is being tested:
ping <IP_address>
Note:
For certain distributions like (but not limited to) Red Hat
Enterprise Linux 7 and Ubuntu, once the driver is installed, you may
need to update the initrd/initramfs file to prevent the OS loading
old versions of the ixgbe driver.For Red Hat distributions:
dracut --force
For Ubuntu:
update-initramfs -u
To build a binary RPM package of this driver
--------------------------------------------
Note:
RPM functionality has only been tested in Red Hat distributions.
1. Run the following command, where "<x.x.x>" is the version number
for the driver tar file:
rpmbuild -tb ixgbe-<x.x.x>.tar.gz
Note:
For the build to work properly, the currently running kernel MUST
match the version and configuration of the installed kernel
sources. If you have just recompiled the kernel, reboot the
system before building.
2. After building the RPM, the last few lines of the tool output
contain the location of the RPM file that was built. Install the
RPM with one of the following commands, where "<RPM>" is the
location of the RPM file:
rpm -Uvh <RPM>
or:
dnf/yum localinstall <RPM>
Note:
* To compile the driver on some kernel/arch combinations, you may
need to install a package with the development version of libelf
(e.g. libelf-dev, libelf-devel, elfutils-libelf-devel).
* When compiling an out-of-tree driver, details will vary by
distribution. However, you will usually need a kernel-devel RPM or
some RPM that provides the kernel headers at a minimum. The RPM
kernel-devel will usually fill in the link at "/lib/modules/'uname
-r'/build".
To build ixgbe driver with DCA
------------------------------
If your kernel supports Direct Cache Access (DCA), the driver will
build by default with DCA enabled.
Note:
DCA is not supported on X550-based and E610-based adapters.
Command Line Parameters
=======================
If the driver is built as a module, enter optional parameters on the
command line with the following syntax:
modprobe ixgbe [<option>=<VAL1>,<VAL2>,...]
There needs to be a "<VAL#>" for each network port in the system
supported by this driver. The values will be applied to each instance,
in function order. For example:
modprobe ixgbe InterruptThrottleRate=16000,16000
In this case, there are two network ports supported by ixgbe in the
system.
* The default value for each parameter is generally the recommended
setting, unless otherwise noted.
RSS
---
Valid Range: 0-16
* 0 = Assign up to the lesser value of the number of CPUs or the
number of queues
* X = Assign X queues, where X is less than or equal to the maximum
number of queues (16 queues).
RSS also affects the number of transmit queues allocated on 2.6.23 and
newer kernels with "CONFIG_NETDEVICES_MULTIQUEUE" set in the kernel
".config" file. "CONFIG_NETDEVICES_MULTIQUEUE" only exists from 2.6.23
to 2.6.26. Other options enable multiqueue in 2.6.27 and newer
kernels.
Multiqueue
----------
Valid Range: 0, 1
* 0 = Disables Multiple Queue support
* 1 = Enabled Multiple Queue support (a prerequisite for RSS)
Direct Cache Access (DCA)
-------------------------
Valid Range: 0, 1
* 0 = Disables DCA support in the driver
* 1 = Enables DCA support in the driver
If the driver is enabled for DCA, this parameter allows load-time
control of the feature.
Note:
DCA is not supported on X550-based and E610-based adapters.
IntMode
-------
Valid Range: 0-2
* 0 = Legacy Int
* 1 = MSI
* 2 = MSI-X
IntMode controls the allowed load time control over the type of
interrupt registered for by the driver. MSI-X is required for multiple
queue support, and some kernels and combinations of kernel ".config"
options will force a lower level of interrupt support. "cat
/proc/interrupts" will show different values for each type of
interrupt.
InterruptThrottleRate
---------------------
Valid Range:
* 0=off
* 1=dynamic
* "<min_ITR>-<max_ITR>"
Interrupt Throttle Rate controls the number of interrupts each
interrupt vector can generate per second. Increasing ITR lowers
latency at the cost of increased CPU utilization, though it may help
throughput in some circumstances.
* 0 = Setting "InterruptThrottleRate" to 0 turns off any interrupt
moderation and may improve small packet latency. However, this is
generally not suitable for bulk throughput traffic due to the
increased CPU utilization of the higher interrupt rate.
Note:
* On 82599, and X540, X550-based and E610-based adapters,
disabling "InterruptThrottleRate" will also result in the driver
disabling HW RSC.
* On 82598-based adapters, disabling "InterruptThrottleRate" will
also result in disabling LRO (Large Receive Offloads).
* 1 = Setting "InterruptThrottleRate" to Dynamic mode attempts to
moderate interrupts per vector while maintaining very low latency.
This can sometimes cause extra CPU utilization. If planning on
deploying ixgbe in a latency sensitive environment, this parameter
should be considered.
* "<min_ITR>-<max_ITR>" = 956-488281
Setting "InterruptThrottleRate" to a value greater or equal to
"<min_ITR>" will program the adapter to send at most that many
interrupts per second, even if more packets have come in. This
reduces interrupt load on the system and can lower CPU utilization
under heavy load, but will increase latency as packets are not
processed as quickly.
LLI (Low Latency Interrupts)
----------------------------
Low Latency Interrupts (LLI) allow for immediate generation of an
interrupt upon processing receive packets that match certain criteria
as set by the parameters described below. LLI parameters are not
enabled when Legacy interrupts are used. You must be using MSI or
MSI-X (see "cat /proc/interrupts") to successfully use LLI.
Note:
LLI is not supported on X550-based and E610-based adapters.
LLIPort
-------
Valid Range: 0-65535
LLI is configured with the "LLIPort" command line parameter, which
specifies which TCP port should generate Low Latency Interrupts.
For example, using "LLIPort=80" would cause the board to generate an
immediate interrupt upon receipt of any packet sent to TCP port 80 on
the local machine.
Warning:
Enabling LLI can result in an excessive number of interrupts/second
that may cause problems with the system and in some cases may cause
a kernel panic.
Note:
LLI is not supported on X550-based and E610-based adapters.
LLIPush
-------
Valid Range: 0-1
"LLIPush" can be set to be enabled or disabled (default). It is most
effective in an environment with many small transactions.
Note:
* Enabling LLIPush may allow a denial of service attack.
* LLI is not supported on X550-based and E610-based adapters.
LLISize
-------
Valid Range: 0-1500
"LLISize" causes an immediate interrupt if the board receives a packet
smaller than the specified size.
Note:
LLI is not supported on X550-based and E610-based adapters.
LLIEType
--------
Valid Range: 0-0x8FFF
This parameter specifies the Low Latency Interrupt (LLI) Ethernet
protocol type.
Note:
LLI is not supported on X550-based and E610-based adapters.
LLIVLANP
--------
Valid Range: 0-7
This parameter specifies the LLI on VLAN priority threshold.
Note:
LLI is not supported on X550-based and E610-based adapters.
FdirPballoc
-----------
Valid Range: 1-3
Specifies the Intel(R) Ethernet Flow Director allocated packet buffer
size.
* 1 = 64k
* 2 = 128k
* 3 = 256k
AtrSampleRate
-------------
Valid Range: 0-255
This parameter is used with the Intel Ethernet Flow Director and is
the software ATR transmit packet sample rate. For example, when
"AtrSampleRate" is set to 20, every 20th packet looks to see if the
packet will create a new flow. A value of 0 indicates that ATR should
be disabled and no samples will be taken.
max_vfs
-------
Valid Range: 1-63
This parameter adds support for SR-IOV. It causes the driver to spawn
up to "max_vfs" worth of virtual functions.
If the value is greater than 0 it will also force the "VMDq" parameter
to be 1 or more.
Note:
This parameter is only used on kernel 3.7.x and below. On kernel
3.8.x and above, use sysfs to enable VFs. Use sysfs for Red Hat
distributions.
For example, you can create 4 VFs as follows:
echo 4 > /sys/class/net/<ethX>/device/sriov_numvfs
To disable VFs, write 0 to the same file:
echo 0 > /sys/class/net/<ethX>/device/sriov_numvfs
The parameters for the driver are referenced by position. Thus, if you
have a dual port adapter, or more than one adapter in your system, and
want N virtual functions per port, you must specify a number for each
port with each parameter separated by a comma. For example, the
following will spawn 4 VFs on the first port:
modprobe ixgbe max_vfs=4
The following will spawn 2 VFs on the first port and 4 VFs on the
second port:
modprobe ixgbe max_vfs=2,4
Note:
* Use caution when loading the driver with these parameters.
Depending on your system configuration, number of slots, etc., it
is impossible to predict in all cases where the positions would be
on the command line.
* Neither the device nor the driver control how VFs are mapped into
config space. Bus layout will vary by operating system. On
operating systems that support it, you can check sysfs to find the
mapping.
* When either SR-IOV mode or VMDq mode is enabled, hardware VLAN
filtering and VLAN tag stripping/insertion will remain enabled.
Please remove the old VLAN filter before the new VLAN filter is
added. For example:
ip link set eth0 vf 0 vlan 100 // set vlan 100 for VF 0
ip link set eth0 vf 0 vlan 0 // Delete vlan 100
ip link set eth0 vf 0 vlan 200 // set a new vlan 200 for VF 0
With kernel 3.6, the driver supports the simultaneous usage of
"max_vfs" and DCB features, subject to the constraints described
below. Prior to kernel 3.6, the driver did not support the
simultaneous operation of "max_vfs" greater than 0 and the DCB
features (multiple traffic classes utilizing Priority Flow Control and
Extended Transmission Selection).
When DCB is enabled, network traffic is transmitted and received
through multiple traffic classes (packet buffers in the NIC). The
traffic is associated with a specific class based on priority, which
has a value of 0 through 7 used in the VLAN tag. When SR-IOV is not
enabled, each traffic class is associated with a set of
receive/transmit descriptor queue pairs. The number of queue pairs for
a given traffic class depends on the hardware configuration. When SR-
IOV is enabled, the descriptor queue pairs are grouped into pools. The
Physical Function (PF) and each Virtual Function (VF) is allocated a
pool of receive/transmit descriptor queue pairs. When multiple traffic
classes are configured (for example, DCB is enabled), each pool
contains a queue pair from each traffic class. When a single traffic
class is configured in the hardware, the pools contain multiple queue
pairs from the single traffic class.
The number of VFs that can be allocated depends on the number of
traffic classes that can be enabled. The configurable number of
traffic classes for each enabled VF is as follows:
* 0 - 15 VFs = Up to 8 traffic classes, depending on device support
* 16 - 31 VFs = Up to 4 traffic classes
* 32 - 63 VFs = 1 traffic class
When VFs are configured, the PF is allocated one pool as well. The PF
supports the DCB features with the constraint that each traffic class
will only use a single queue pair. When zero VFs are configured, the
PF can support multiple queue pairs per traffic class.
LRO
---
Valid Range: 0 (off), 1 (on)
Large Receive Offload (LRO) is a technique for increasing inbound
throughput of high-bandwidth network connections by reducing CPU
overhead. It works by aggregating multiple incoming packets from a
single stream into a larger buffer before they are passed higher up
the networking stack, thus reducing the number of packets that have to
be processed. LRO combines multiple Ethernet frames into a single
receive in the stack, thereby potentially decreasing CPU utilization
for receives.
This technique is also referred to as Hardware Receive Side Coalescing
(HW RSC). 82599, X540, X550-based and E610-based adapters support HW
RSC. The LRO parameter controls HW RSC enablement.
You can verify that the driver is using LRO by looking at these
counters in ethtool:
hw_rsc_aggregated:
Counts total packets that were combined
hw_rsc_flushed:
Counts the number of packets flushed out of LRO
Note:
IPv6 and UDP are not supported by LRO.
EEE (Energy Efficient Ethernet)
-------------------------------
Valid Range: 0-1
* 0 = Disables EEE
* 1 = Enables EEE
A link between two EEE-compliant devices will result in periodic
bursts of data followed by periods where the link is in an idle state.
This Low Power Idle (LPI) state is supported at 1Gbps and 10Gbps link
speeds.
Note:
* EEE support requires auto-negotiation.
* Both link partners must support EEE.
* EEE is not supported on all Intel(R) Ethernet Network devices or
at all link speeds.
Example:
ethtool --show-eee <ethX>
ethtool --set-eee <ethX> [eee on|off]
DMAC
----
Valid Range: 0, 41-10000
This parameter enables or disables DMA Coalescing (DMAC) feature.
Values are in microseconds and set the internal DMA Coalescing
internal timer.
DMAC is available on Intel(R) X550 (and later) and E610-based based
adapters.
DMA (Direct Memory Access) allows the network device to move packet
data directly to the system's memory, reducing CPU utilization.
However, the frequency and random intervals at which packets arrive do
not allow the system to enter a lower power state. DMA Coalescing
allows the adapter to collect packets before it initiates a DMA event.
This may increase network latency but also increases the chances that
the system will enter a lower power state. Turning on DMA Coalescing
may save energy with kernel 2.6.32 and newer. DMA Coalescing must be
enabled across all active ports in order to save platform power.
InterruptThrottleRate (ITR) should be set to dynamic. When "ITR=0",
DMA Coalescing is automatically disabled.
MDD (Malicious Driver Detection)
--------------------------------
Valid Range: 0-1
* 0 = Disabled
* 1 = Enabled
This parameter is only relevant for devices operating in SR-IOV mode.
When this parameter is set, the driver detects malicious VF driver and
disables its Tx/Rx queues until a VF driver reset occurs.
Additional Features and Configurations
======================================
ethtool
-------
The driver utilizes the ethtool interface for driver configuration and
diagnostics, as well as displaying statistical information. The latest
ethtool version is required for this functionality. Download it at
https://kernel.org/pub/software/network/ethtool/.
Configuring the Driver on Different Distributions
-------------------------------------------------
Configuring a network driver to load properly when the system is
started is distribution dependent. Typically, the configuration
process involves adding an alias line to "/etc/modules.conf" or
"/etc/modprobe.conf" as well as editing other system startup scripts
and/or configuration files. Many popular Linux distributions ship with
tools to make these changes for you. To learn the proper way to
configure a network device for your system, refer to your distribution
documentation. If during this process you are asked for the driver or
module name, the name for the Base Driver is ixgbe.
For example, if you install the ixgbe driver for two adapters (eth0
and eth1) and want to set the interrupt mode to MSI-X and MSI,
respectively, add the following to "modules.conf" or
"/etc/modprobe.conf":
alias eth0 ixgbe
alias eth1 ixgbe
options ixgbe IntMode=2,1
Viewing Link Messages
---------------------
Link messages will not be displayed to the console if the distribution
is restricting system messages. In order to see network driver link
messages on your console, set dmesg to eight by entering the
following:
dmesg -n 8
Note:
This setting is not saved across reboots.
Jumbo Frames
------------
Jumbo Frames support is enabled by changing the Maximum Transmission
Unit (MTU) to a value larger than the default value of 1500.
Use the ip command to increase the MTU size. For example, enter the
following where "<ethX>" is the interface number:
ip link set mtu 9000 dev <ethX>
ip link set up dev <ethX>
This setting is not saved across reboots.
Add "MTU=9000" to the following file to make the setting change
permanent:
* For RHEL: "/etc/sysconfig/network-scripts/ifcfg-<ethX>"
* For SLES: "/etc/sysconfig/network/<config_file>"
Note:
* The maximum MTU setting for jumbo frames is 9710. This corresponds
to the maximum jumbo frame size of 9728 bytes.
* This driver will attempt to use multiple page sized buffers to
receive each jumbo packet. This should help to avoid buffer
starvation issues when allocating receive packets.
* Packet loss may have a greater impact on throughput when you use
jumbo frames. If you observe a drop in performance after enabling
jumbo frames, enabling flow control may mitigate the issue.
* For 82599-based network connections, if you are enabling jumbo
frames in a virtual function (VF), jumbo frames must first be
enabled in the physical function (PF). The VF MTU setting cannot
be larger than the PF MTU.
Speed and Duplex Configuration
------------------------------
In addressing speed and duplex configuration issues, you need to
distinguish between copper-based adapters and fiber-based adapters.
In the default mode, an Intel(R) Ethernet Network Adapter using copper
connections will attempt to auto-negotiate with its link partner to
determine the best setting. If the adapter cannot establish link with
the link partner using auto-negotiation, you may need to manually
configure the adapter and link partner to identical settings to
establish link and pass packets. This should only be needed when
attempting to link with an older switch that does not support auto-
negotiation or one that has been forced to a specific speed or duplex
mode. Your link partner must match the setting you choose. 1Gbps
speeds and higher cannot be forced. Use the autonegotiation
advertising setting to manually set devices for 1Gbps and higher.
Speed, duplex, and autonegotiation advertising are configured through
the ethtool utility.