Imported Upstream version 16.04
[deb_dpdk.git] / doc / guides / nics / overview.rst
1 ..  BSD LICENSE
2     Copyright 2016 6WIND S.A.
3
4     Redistribution and use in source and binary forms, with or without
5     modification, are permitted provided that the following conditions
6     are met:
7
8     * Redistributions of source code must retain the above copyright
9     notice, this list of conditions and the following disclaimer.
10     * Redistributions in binary form must reproduce the above copyright
11     notice, this list of conditions and the following disclaimer in
12     the documentation and/or other materials provided with the
13     distribution.
14     * Neither the name of 6WIND S.A. nor the names of its
15     contributors may be used to endorse or promote products derived
16     from this software without specific prior written permission.
17
18     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19     "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21     A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22     OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24     LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 Overview of Networking Drivers
31 ==============================
32
33 The networking drivers may be classified in two categories:
34
35 - physical for real devices
36 - virtual for emulated devices
37
38 Some physical devices may be shaped through a virtual layer as for
39 SR-IOV.
40 The interface seen in the virtual environment is a VF (Virtual Function).
41
42 The ethdev layer exposes an API to use the networking functions
43 of these devices.
44 The bottom half part of ethdev is implemented by the drivers.
45 Thus some features may not be implemented.
46
47 There are more differences between drivers regarding some internal properties,
48 portability or even documentation availability.
49 Most of these differences are summarized below.
50
51 .. _table_net_pmd_features:
52
53 .. raw:: html
54
55    <style>
56       table#id1 th {
57          font-size: 80%;
58          white-space: pre-wrap;
59          text-align: center;
60          vertical-align: top;
61          padding: 3px;
62       }
63       table#id1 th:first-child {
64          vertical-align: bottom;
65       }
66       table#id1 td {
67          font-size: 70%;
68          padding: 1px;
69       }
70       table#id1 td:first-child {
71          padding-left: 1em;
72       }
73    </style>
74
75 .. table:: Features availability in networking drivers
76
77    ==================== = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
78    Feature              a b b b c e e e i i i i i i i i i i f f f f m m m n n p r s v v v v x
79                         f n n o x 1 n n 4 4 4 4 g g x x x x m m m m l l p f u c i z h i i m e
80                         p x x n g 0 a i 0 0 0 0 b b g g g g 1 1 1 1 x x i p l a n e o r r x n
81                         a 2 2 d b 0   c e e e e   v b b b b 0 0 0 0 4 5 p   l p g d s t t n v
82                         c x x i e 0       . v v   f e e e e k k k k     e         a t i i e i
83                         k   v n           . f f       . v v   . v v               t   o o t r
84                         e   f g           .   .       . f f   . f f               a     . 3 t
85                         t                 v   v       v   v   v   v               2     v
86                                           e   e       e   e   e   e                     e
87                                           c   c       c   c   c   c                     c
88    ==================== = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
89    speed capabilities
90    link status            X X   X X   X X X     X   X X X X         X X           X X X X
91    link status event      X X     X     X X     X   X X             X X             X
92    queue status event                                                               X
93    Rx interrupt                   X     X X X X X X X X X X X X X X
94    queue start/stop             X   X X X X X X     X X     X X X X X X           X   X X
95    MTU update                   X X X           X   X X X X         X X
96    jumbo frame                  X X X X X X X X X   X X X X X X X X X X       X
97    scattered Rx                 X X X   X X X X X X X X X X X X X X X X           X   X
98    LRO                                              X X X X
99    TSO                          X   X   X X X X X X X X X X X X X X
100    promiscuous mode       X X   X X   X X X X X X X X X     X X     X X           X   X X
101    allmulticast mode            X X     X X X X X X X X X X X X     X X           X   X X
102    unicast MAC filter     X X     X   X X X X X X X X X X X X X     X X               X X
103    multicast MAC filter   X X         X X X X X             X X     X X               X X
104    RSS hash                     X   X X X X X X X   X X X X X X X X X X
105    RSS key update                   X   X X X X X   X X X X X X X X   X
106    RSS reta update                  X   X X X X X   X X X X X X X X   X
107    VMDq                                 X X     X   X X     X X
108    SR-IOV                   X       X   X X     X   X X             X X
109    DCB                                  X X     X   X X
110    VLAN filter                    X   X X X X X X X X X X X X X     X X               X X
111    ethertype filter                     X X     X   X X
112    n-tuple filter                               X   X X
113    SYN filter                                   X   X X
114    tunnel filter                        X X         X X
115    flexible filter                              X
116    hash filter                          X X X X
117    flow director                        X X         X X               X
118    flow control                 X X     X X     X   X X
119    rate limitation                                  X X
120    traffic mirroring                    X X         X X
121    CRC offload                  X X X X X   X   X X X   X   X X X X   X
122    VLAN offload                 X X X X X   X   X X X   X   X X X X   X
123    QinQ offload                   X     X   X   X X X   X
124    L3 checksum offload          X X X X X   X   X X X   X   X X X X X X
125    L4 checksum offload          X X X X X   X   X X X   X   X X X X X X
126    inner L3 checksum                X   X   X       X   X           X
127    inner L4 checksum                X   X   X       X   X           X
128    packet type parsing          X     X X   X   X X X   X   X X X X X X
129    timesync                             X X     X   X X
130    basic stats            X X   X X X X X X X X X X X X X X X X X X X X       X   X X X X
131    extended stats                   X   X X X X X X X X X X X X X X                   X X
132    stats per queue              X                   X X     X X X X X X           X   X X
133    EEPROM dump                                  X   X X
134    registers dump                               X X X X X X
135    multiprocess aware                   X X X X     X X X X X X X X X X       X
136    BSD nic_uio                  X X   X X X X X X X X X X X X X X X                   X X
137    Linux UIO              X X   X X X X X X X X X X X X X X X X X X                   X X
138    Linux VFIO                   X X   X X X X X X X X X X X X X X X                   X X
139    other kdrv                                                       X X           X
140    ARMv7                                                                      X       X X
141    ARMv8                                                                      X       X X
142    Power8                                                           X X       X
143    TILE-Gx                                                                    X
144    x86-32                       X X X X X X X X X X X X X X X X X X X X       X     X X X
145    x86-64                 X X   X X X X X X X X X X X X X X X X X X X X       X   X X X X
146    usage doc              X X   X     X                             X X       X   X   X
147    design doc
148    perf doc
149    ==================== = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =