200053c2ee7c7191ed35d154e647a2af8796841d
[dpdk.git] / doc / guides / rel_notes / release_16_04.rst
1 DPDK Release 16.04
2 ==================
3
4
5 New Features
6 ------------
7
8 * **Added function to check primary process state.**
9
10   A new function ``rte_eal_primary_proc_alive()`` has been added
11   to allow the user to detect if a primary process is running.
12   Use cases for this feature include fault detection, and monitoring
13   using secondary processes.
14
15 * **Enabled bulk allocation of mbufs.**
16
17   A new function ``rte_pktmbuf_alloc_bulk()`` has been added to allow the user
18   to bulk allocate mbufs.
19
20 * **Added device link speed capabilities.**
21
22   The structure ``rte_eth_dev_info`` now has a ``speed_capa`` bitmap, which
23   allows the application to determine the supported speeds of each device.
24
25 * **Added bitmap of link speeds to advertise.**
26
27   Added a feature to allow the definition of a set of advertised speeds for auto-negotiation,
28   explicitly disabling link auto-negotiation (single speed)
29   and full auto-negotiation.
30
31 * **Added new poll-mode driver for Amazon Elastic Network Adapters (ENA).**
32
33   The driver operates for a variety of ENA adapters through feature negotiation
34   with the adapter and upgradable commands set.
35   The ENA driver handles PCI Physical and Virtual ENA functions.
36
37 * **Restored vmxnet3 TX data ring.**
38
39   TX data ring has been shown to improve small packet forwarding performance
40   on the vSphere environment.
41
42 * **Added vmxnet3 TX L4 checksum offload.**
43
44   Added support for TCP/UDP checksum offload to vmxnet3.
45
46 * **Added vmxnet3 TSO support.**
47
48   Added support for TSO to vmxnet3.
49
50 * **Added vmxnet3 support for jumbo frames.**
51
52   Added support for linking multi-segment buffers together to
53   handle Jumbo packets.
54
55 * **Enabled Virtio 1.0 support.**
56
57   Enabled Virtio 1.0 support for Virtio pmd driver.
58
59 * **Supported Virtio for ARM.**
60
61   Enabled Virtio support for ARMv7/v8. Tested for ARM64.
62   Virtio for ARM supports VFIO-noiommu mode only.
63   Virtio can work with other non-x86 architectures as well, like PowerPC.
64
65 * **Supported Virtio offload in vhost-user.**
66
67   Added the offload and negotiation of checksum and TSO between vhost-user and
68   vanilla Linux Virtio guest.
69
70 * **Added vhost-user live migration support.**
71
72 * **Added vhost driver.**
73
74   Added a virtual PMD that wraps ``librte_vhost``.
75
76 * **Added multicast promiscuous mode support on VF for ixgbe.**
77
78   Added multicast promiscuous mode support for the ixgbe VF driver so all VFs
79   can receive the multicast packets.
80
81   Please note if you want to use this promiscuous mode, you need both PF and VF
82   driver to support it. The reason is that this VF feature is configured in the PF.
83   If you use kernel PF driver and the dpdk VF driver, make sure the kernel PF driver supports
84   VF multicast promiscuous mode. If you use dpdk PF and  dpdk VF ensure the PF
85   driver is the same version as the VF.
86
87 * **Added support for E-tag on X550.**
88
89   E-tag is defined in `802.1BR - Bridge Port Extension <http://www.ieee802.org/1/pages/802.1br.html>`_.
90
91   This feature is for the VF, but the settings are on the PF. It means
92   the CLIs should be used on the PF, but some of their effects will be shown on the VF.
93   The forwarding of E-tag packets based on GRP and E-CID_base will have an effect
94   on the PF. Theoretically, the E-tag packets can be forwarded to any pool/queue
95   but normally we'd like to forward the packets to the pools/queues belonging
96   to the VFs. And E-tag insertion and stripping will have an effect on VFs. When
97   a VF receives E-tag packets it should strip the E-tag. When the VF transmits
98   packets, it should insert the E-tag. Both actions can be offloaded.
99
100   When we want to use this E-tag support feature, the forwarding should be
101   enabled to forward the packets received by the PF to the indicated VFs. And insertion
102   and stripping should be enabled for VFs to offload the effort to hardware.
103
104   Features added:
105
106   * Support E-tag offloading of insertion and stripping.
107   * Support Forwarding E-tag packets to pools based on
108     GRP and E-CID_base.
109
110 * **Added support for VxLAN and NVGRE checksum off-load on X550.**
111
112   * Added support for VxLAN and NVGRE RX/TX checksum off-load on
113     X550. RX/TX checksum off-load is provided on both inner and
114     outer IP header and TCP header.
115   * Added functions to support VxLAN port configuration. The
116     default VxLAN port number is 4789 but this can be updated
117     programmatically.
118
119 * **Added support for new X550EM_a devices.**
120
121   Added support for new X550EM_a devices and their MAC types, X550EM_a and X550EM_a_vf.
122   Updated the relevant PMD to use the new devices and MAC types.
123
124 * **Added x550em_x V2 device support.**
125
126   Added support for x550em_x V2 device. Only x550em_x V1 was supported before.
127   A mask for V1 and V2 is defined and used to support both.
128
129 * **Supported link speed auto-negotiation on X550EM_X**
130
131   Normally the auto-negotiation is supported by firmware and software doesn't care about
132   it. But on x550em_x, firmware doesn't support auto-negotiation. As the ports of x550em_x
133   are 10GbE, if we connect the port with a peer which is 1GbE, the link will always
134   be down.
135   We added the support for auto-negotiation by software to avoid this link down issue.
136
137 * **Added software-firmware sync on X550EM_a.**
138
139   Added support for software-firmware sync for resource sharing.
140   Use the PHY token, shared between software-firmware for PHY access on X550EM_a.
141
142 * **Updated the i40e base driver.**
143
144   The i40e base driver was updated with changes including the
145   following:
146
147   * Use RX control AQ commands to read/write RX control registers.
148   * Add new X722 device IDs, and removed X710 one was never used.
149   * Expose registers for HASH/FD input set configuring.
150
151 * **Enabled PCI extended tag for i40e.**
152
153   Enabled extended tag for i40e by checking and writing corresponding PCI config
154   space bytes, to boost the performance.
155   The legacy method of reading/writing sysfile supported by kernel module igb_uio
156   is now deprecated.
157
158 * **Added i40e support for setting mac addresses.**
159
160 * **Added dump of i40e registers and EEPROM.**
161
162 * **Supported ether type setting of single and double VLAN for i40e**
163
164 * **Added VMDQ DCB mode in i40e.**
165
166   Added support for DCB in VMDQ mode to i40e driver.
167
168 * **Added i40e VEB switching support.**
169
170 * **Added Flow director enhancements in i40e.**
171
172 * **Added PF reset event reporting in i40e VF driver.**
173
174 * **Added fm10k RX interrupt support.**
175
176 * **Optimized fm10k TX.**
177
178   Optimized fm10k TX by freeing multiple mbufs at a time.
179
180 * **Handled error flags in fm10k vector RX.**
181
182   Parse error flags in RX descriptor and set error bits in mbuf with vector instructions.
183
184 * **Added fm10k FTAG based forwarding support.**
185
186 * **Added mlx5 flow director support.**
187
188   Added flow director support (``RTE_FDIR_MODE_PERFECT`` and
189   ``RTE_FDIR_MODE_PERFECT_MAC_VLAN``).
190
191   Only available with Mellanox OFED >= 3.2.
192
193 * **Added mlx5 RX VLAN stripping support.**
194
195   Added support for RX VLAN stripping.
196
197   Only available with Mellanox OFED >= 3.2.
198
199 * **Added mlx5 link up/down callbacks.**
200
201   Implemented callbacks to bring link up and down.
202
203 * **Added mlx5 support for operation in secondary processes.**
204
205   Implemented TX support in secondary processes (like mlx4).
206
207 * **Added mlx5 RX CRC stripping configuration.**
208
209   Until now, CRC was always stripped. It can now be configured.
210
211   Only available with Mellanox OFED >= 3.2.
212
213 * **Added mlx5 optional packet padding by HW.**
214
215   Added an option to make PCI bus transactions rounded to a multiple of a
216   cache line size for better alignment.
217
218   Only available with Mellanox OFED >= 3.2.
219
220 * **Added mlx5 TX VLAN insertion support.**
221
222   Added support for TX VLAN insertion.
223
224   Only available with Mellanox OFED >= 3.2.
225
226 * **Changed szedata2 driver type from vdev to pdev.**
227
228   Previously szedata2 device had to be added by ``--vdev`` option.
229   Now szedata2 PMD recognizes the device automatically during EAL
230   initialization.
231
232 * **Added szedata2 functions for setting link up/down.**
233
234 * **Added szedata2 promiscuous and allmulticast modes.**
235
236 * **Added af_packet dynamic removal function.**
237
238   An af_packet device can now be detached using the API, like other PMD devices.
239
240 * **Increased number of next hops for LPM IPv4 to 2^24.**
241
242   The ``next_hop`` field has been extended from 8 bits to 24 bits for IPv4.
243
244 * **Added support of SNOW 3G (UEA2 and UIA2) for Intel Quick Assist devices.**
245
246   Enabled support for the SNOW 3G wireless algorithm for Intel Quick Assist devices.
247   Support for cipher-only and  hash-only is also provided
248   along with algorithm-chaining operations.
249
250 * **Added SNOW3G SW PMD.**
251
252   A new Crypto PMD has been added, which provides SNOW 3G UEA2 ciphering
253   and SNOW3G UIA2 hashing.
254
255 * **Added AES GCM PMD.**
256
257   Added new Crypto PMD to support AES-GCM authenticated encryption and
258   authenticated decryption in software.
259
260 * **Added NULL Crypto PMD**
261
262   Added new Crypto PMD to support null crypto operations in software.
263
264 * **Improved IP Pipeline Application.**
265
266   The following features have been added to ip_pipeline application;
267
268   * Added CPU utilization measurement and idle cycle rate computation.
269   * Added link identification support through existing port-mask option or by
270     specifying PCI device in every LINK section in the configuration file.
271   * Added load balancing support in passthrough pipeline.
272
273 * **Added IPsec security gateway example.**
274
275   Added a new application implementing an IPsec Security Gateway.
276
277
278 Resolved Issues
279 ---------------
280
281 * **code/section: Fixed issue in the past tense with a full stop.**
282
283   Add a short 1-2 sentence description of the resolved issue in the past tense.
284   The title should contain the code/lib section like a commit message.
285   Add the entries in alphabetic order in the relevant sections below.
286
287
288 Drivers
289 ~~~~~~~
290
291 * **ethdev: Fixed overflow for 100Gbps.**
292
293   100Gbps in Mbps (100000) was exceeding the 16-bit max value of ``link_speed``
294   in ``rte_eth_link``.
295
296 * **ethdev: Fixed byte order consistency between fdir flow and mask.**
297
298   Fixed issue in ethdev library where the structure for setting
299   fdir's mask and flow entry was not consistent in byte ordering.
300
301 * **cxgbe: Fixed crash due to incorrect size allocated for RSS table.**
302
303   Fixed a segfault that occurs when accessing part of port 0's RSS
304   table that gets overwritten by subsequent port 1's part of the RSS
305   table due to incorrect size allocated for each entry in the table.
306
307 * **cxgbe: Fixed setting wrong device MTU.**
308
309   Fixed an incorrect device MTU being set due to the Ethernet header and
310   CRC lengths being added twice.
311
312 * **ixgbe: Fixed zeroed VF mac address.**
313
314   Resolved an issue where the VF MAC address is zeroed out in cases where the VF
315   driver is loaded while the PF interface is down.
316   The solution is to only set it when we get an ACK from the PF.
317
318 * **ixgbe: Fixed setting flow director flag twice.**
319
320   Resolved an issue where packets were being dropped when switching to perfect
321   filters mode.
322
323 * **ixgbe: Set MDIO speed after MAC reset.**
324
325   The MDIO clock speed must be reconfigured after the MAC reset. The MDIO clock
326   speed becomes invalid, therefore the driver reads invalid PHY register values.
327   The driver now set the MDIO clock speed prior to initializing PHY ops and
328   again after the MAC reset.
329
330 * **ixgbe: Fixed maximum number of available TX queues.**
331
332   In IXGBE, the maximum number of TX queues varies depending on the NIC operating
333   mode. This was not being updated in the device information, providing
334   an incorrect number in some cases.
335
336 * **i40e: Generated MAC address for each VFs.**
337
338   It generates a MAC address for each VFs during PF host initialization,
339   and keeps the VF MAC address the same among different VF launch.
340
341 * **i40e: Fixed failure of reading/writing RX control registers.**
342
343   Fixed i40e issue of failing to read/write rx control registers when
344   under stress with traffic, which might result in application launch
345   failure.
346
347 * **i40e: Enabled vector driver by default.**
348
349   Previously, vector driver was disabled by default as it couldn't fill packet type
350   info for l3fwd to work well. Now there is an option for l3fwd to analyze
351   the packet type so the vector driver is enabled by default.
352
353 * **i40e: Fixed link info of VF.**
354
355   Previously, the VF's link speed stayed at 10GbE and status always was up.
356   It did not change even when the physical link's status changed.
357   Now this issue is fixed to make VF's link info consistent with physical link.
358
359 * **mlx5: Fixed possible crash during initialization.**
360
361   A crash could occur when failing to allocate private device context.
362
363 * **mlx5: Added port type check.**
364
365   Added port type check to prevent port initialization on non-Ethernet link layers and
366   to report an error.
367
368 * **mlx5: Applied VLAN filtering to broadcast and IPv6 multicast flows.**
369
370   Prevented reception of multicast frames outside of configured VLANs.
371
372 * **mlx5: Fixed RX checksum offload in non L3/L4 packets.**
373
374   Fixed report of bad checksum for packets of unknown type.
375
376 * **aesni_mb: Fixed wrong return value when creating a device.**
377
378   The ``cryptodev_aesni_mb_init()`` function was returning the device id of the device created,
379   instead of 0 (on success) that ``rte_eal_vdev_init()`` expects.
380   This made it impossible to create more than one aesni_mb device
381   from the command line.
382
383 * **qat: Fixed AES GCM decryption.**
384
385   Allowed AES GCM on the cryptodev API, but in some cases gave invalid results
386   due to incorrect IV setting.
387
388
389 Libraries
390 ~~~~~~~~~
391
392 * **hash: Fixed CRC32c hash computation for non multiple of 4 bytes sizes.**
393
394   Fix crc32c hash functions to return a valid crc32c value for data lengths
395   not a multiple of 4 bytes.
396
397 * **hash: Fixed hash library to support multi-process mode.**
398
399   Fix hash library to support multi-process mode, using a jump table,
400   instead of storing a function pointer to the key compare function.
401   Multi-process mode only works with the built-in compare functions,
402   however a custom compare function (not in the jump table) can only
403   be used in single-process mode.
404
405 * **hash: Fixed return value when allocating an existing hash table.**
406
407   Changed the ``rte_hash*_create()`` functions to return ``NULL`` and set
408   ``rte_errno`` to ``EEXIST`` when the object name already exists. This is
409   the behavior described in the API documentation in the header file.
410   The previous behavior was to return a pointer to the existing object in
411   that case, preventing the caller from knowing if the object had to be freed
412   or not.
413
414 * **lpm: Fixed return value when allocating an existing object.**
415
416   Changed the ``rte_lpm*_create()`` functions to return ``NULL`` and set
417   ``rte_errno`` to ``EEXIST`` when the object name already exists. This is
418   the behavior described in the API documentation in the header file.
419   The previous behavior was to return a pointer to the existing object in
420   that case, preventing the caller from knowing if the object had to be freed
421   or not.
422
423 * **librte_port: Fixed segmentation fault for ring and ethdev writer nodrop.**
424
425   Fixed core dump issue on txq and swq when dropless is set to yes.
426
427
428 Examples
429 ~~~~~~~~
430
431 * **l3fwd-power: Fixed memory leak for non-IP packet.**
432
433   Fixed issue in l3fwd-power where, on receiving packets of types
434   other than IPv4 or IPv6, the mbuf was not released, and caused
435   a memory leak.
436
437 * **l3fwd: Fixed using packet type blindly.**
438
439   l3fwd makes use of packet type information without querying if devices or PMDs
440   really set it. For those devices that don't set ptypes, add an option to parse it.
441
442 * **examples/vhost: Fixed frequent mbuf allocation failure.**
443
444   The vhost-switch often fails to allocate mbuf when dequeue from vring because it
445   wrongly calculates the number of mbufs needed.
446
447
448 API Changes
449 -----------
450
451 * The ethdev statistics counter ``imissed`` is considered to be independent of ``ierrors``.
452   All drivers are now counting the missed packets only once, i.e. drivers will
453   not increment ierrors anymore for missed packets.
454
455 * The ethdev structure ``rte_eth_dev_info`` was changed to support device
456   speed capabilities.
457
458 * The ethdev structures ``rte_eth_link`` and ``rte_eth_conf`` were changed to
459   support the new link API.
460
461 * The functions ``rte_eth_dev_udp_tunnel_add`` and ``rte_eth_dev_udp_tunnel_delete``
462   have been renamed into ``rte_eth_dev_udp_tunnel_port_add`` and
463   ``rte_eth_dev_udp_tunnel_port_delete``.
464
465 * The ``outer_mac`` and ``inner_mac`` fields in structure
466   ``rte_eth_tunnel_filter_conf`` are changed from pointer to struct in order
467   to keep code's readability.
468
469 * The fields in ethdev structure ``rte_eth_fdir_masks`` were changed
470   to be in big endian.
471
472 * A parameter ``vlan_type`` has been added to the function
473   ``rte_eth_dev_set_vlan_ether_type``.
474
475 * The af_packet device init function is no longer public. The device should be attached
476   via the API.
477
478 * The LPM ``next_hop`` field is extended from 8 bits to 24 bits for IPv4
479   while keeping ABI compatibility.
480
481 * A new ``rte_lpm_config`` structure is used so the LPM library will allocate
482   exactly the amount of memory which is necessary to hold application’s rules.
483   The previous ABI is kept for compatibility.
484
485 * The prototype for the pipeline input port, output port and table action
486   handlers are updated: the pipeline parameter is added,
487   the packets mask parameter has been either removed or made input-only.
488
489
490 ABI Changes
491 -----------
492
493 * The RETA entry size in ``rte_eth_rss_reta_entry64`` has been increased
494   from 8-bit to 16-bit.
495
496 * The ethdev flow director structure ``rte_eth_fdir_flow`` structure was
497   changed. New fields were added to extend flow director's input set.
498
499 * The cmdline buffer size has been increase from 256 to 512.
500
501
502 Shared Library Versions
503 -----------------------
504
505 The libraries prepended with a plus sign were incremented in this version.
506
507 .. code-block:: diff
508
509    + libethdev.so.3
510      librte_acl.so.2
511      librte_cfgfile.so.2
512    + librte_cmdline.so.2
513      librte_distributor.so.1
514      librte_eal.so.2
515      librte_hash.so.2
516      librte_ip_frag.so.1
517      librte_ivshmem.so.1
518      librte_jobstats.so.1
519      librte_kni.so.2
520      librte_kvargs.so.1
521      librte_lpm.so.2
522      librte_mbuf.so.2
523      librte_mempool.so.1
524      librte_meter.so.1
525    + librte_pipeline.so.3
526      librte_pmd_bond.so.1
527      librte_pmd_ring.so.2
528      librte_port.so.2
529      librte_power.so.1
530      librte_reorder.so.1
531      librte_ring.so.1
532      librte_sched.so.1
533      librte_table.so.2
534      librte_timer.so.1
535      librte_vhost.so.2