doc: add security library to release notes
[dpdk.git] / doc / guides / rel_notes / release_17_11.rst
1 DPDK Release 17.11
2 ==================
3
4 .. **Read this first.**
5
6    The text in the sections below explains how to update the release notes.
7
8    Use proper spelling, capitalization and punctuation in all sections.
9
10    Variable and config names should be quoted as fixed width text:
11    ``LIKE_THIS``.
12
13    Build the docs and view the output file to ensure the changes are correct::
14
15       make doc-guides-html
16
17       xdg-open build/doc/html/guides/rel_notes/release_17_11.html
18
19
20 New Features
21 ------------
22
23 .. This section should contain new features added in this release. Sample
24    format:
25
26    * **Add a title in the past tense with a full stop.**
27
28      Add a short 1-2 sentence description in the past tense. The description
29      should be enough to allow someone scanning the release notes to
30      understand the new feature.
31
32      If the feature adds a lot of sub-features you can use a bullet list like
33      this:
34
35      * Added feature foo to do something.
36      * Enhanced feature bar to do something else.
37
38      Refer to the previous release notes for examples.
39
40      This section is a comment. do not overwrite or remove it.
41      Also, make sure to start the actual text at the margin.
42      =========================================================
43
44 * **Extended port_id range from uint8_t to uint16_t.**
45
46   Increased port_id range from 8 bits to 16 bits in order to support more than
47   256 ports in dpdk. All ethdev APIs which have port_id as parameter are changed
48   in the meantime.
49
50 * **Modified the return type of rte_eth_stats_reset.**
51
52   Changed return type of ``rte_eth_stats_reset`` from ``void`` to ``int``
53   so the caller may know whether a device supports the operation or not
54   and if the operation was carried out.
55
56 * **Added a new driver for Marvell Armada 7k/8k devices.**
57
58   Added the new mrvl net driver for Marvell Armada 7k/8k devices. See the
59   "Network Interface Controller Drivers" document for more details on this new
60   driver.
61
62 * **Updated mlx5 driver.**
63
64   Updated the mlx5 driver including the following changes:
65
66    * Enabled PMD to run on top of upstream linux kernel and rdma-core libs.
67      By that removed the dependency on specific Mellanox OFED libraries.
68    * Improved PMD latency performance.
69    * Improved PMD memory footprint.
70    * Supported vectorized Rx/Tx burst for ARMv8.
71    * Supported secondary process.
72    * Supported flow counters.
73    * Supported Rx hardware timestamp offload.
74    * Supported device removal event.
75
76 * **Added SoftNIC PMD.**
77
78   Added new SoftNIC PMD. This virtual device offers applications a software
79   fallback support for traffic management.
80
81 * **Added support for NXP DPAA Devices.**
82
83   Added support for NXP's DPAA devices - LS104x series. This includes:
84
85   * DPAA Bus driver
86   * DPAA Mempool driver for supporting offloaded packet memory pool
87   * DPAA PMD for DPAA devices
88
89   See the "Network Interface Controller Drivers" document for more details of
90   this new driver.
91
92 * **Updated support for Cavium OCTEONTX Device.**
93
94   Updated support for Cavium's OCTEONTX device(CN83xx). This includes:
95
96   * OCTEONTX Mempool driver for supporting offloaded packet memory pool
97   * OCTEONTX Ethdev PMD
98   * OCTEONTX Eventdev-Ethdev Rx adapter
99
100   See the "Network Interface Controller Drivers" document for more details of
101   this new driver.
102
103 * **nfp: Added PF support.**
104
105   Previously Netronome's NFP PMD had just support for VFs. PF support is
106   just as a basic DPDK port and has no VF management yet.
107
108   PF support comes with firmware upload support which allows the PMD to
109   independently work from kernel netdev NFP drivers.
110
111   NFP 4000 devices are also now supported along with previous 6000 devices.
112
113 * **Updated bnxt PMD.**
114
115   Major enhancements include:
116
117    * Support for Flow API
118    * Support for Tx and Rx descriptor status functions
119
120 * **Add bus agnostic functions to cryptodev for PMD initialisation**
121
122   Adds new PMD assist functions ``rte_cryptodev_pmd_parse_input_args()``,
123   ``rte_cryptodev_pmd_create()`` and ``rte_cryptodev_pmd_destroy()`` which
124   are bus independent for driver to manage creation and destruction of new
125   device instances.
126
127 * **Updated QAT crypto PMD.**
128
129   Performance enhancements:
130
131   * Removed atomics from the internal queue pair structure.
132   * Coalesce writes to HEAD CSR on response processing.
133   * Coalesce writes to TAIL CSR on request processing.
134
135   Additional support for:
136
137   * AES CCM algorithm.
138
139 * **Updated the AESNI MB PMD.**
140
141   The AESNI MB PMD has been updated with additional support for:
142
143   * DES CBC algorithm.
144   * DES DOCSIS BPI algorithm.
145
146   This requires the IPSec Multi-buffer library 0.47. For more details,
147   check out the AESNI MB PMD documenation.
148
149 * **Updated the OpenSSL PMD.**
150
151   The OpenSSL PMD has been updated with additional support for:
152
153   * DES CBC algorithm.
154   * AES CCM algorithm.
155
156 * **Added NXP DPAA SEC crypto PMD.**
157
158   A new "dpaa_sec" hardware based crypto PMD for NXP DPAA devices has been
159   added. See the "Crypto Device Drivers" document for more details on this
160   driver.
161
162 * **Added MRVL crypto PMD.**
163
164   A new crypto PMD has been added, which provides several ciphering and hashing
165   algorithms. All cryptography operations use the MUSDK library crypto API.
166
167 * **Add new benchmarking mode to dpdk-test-crypto-perf application.**
168
169   Added new "PMD cyclecount" benchmark mode to dpdk-test-crypto-perf application
170   that displays more detailed breakdown of CPU cycles used by hardware
171   acceleration.
172
173 * **Added the Security Offload Library.**
174
175   Added an experimental library - rte_security. It provide security APIs for
176   protocols like IPSec using inline ipsec offload to ethernet device or full
177   protocol offload with lookaside crypto device.
178
179   See the "Security_Library" section of the DPDK Programmers Guide document,
180   for more information.
181
182 * **Updated DPAA2_SEC crypto driver.**
183
184   Updated dpaa2_sec crypto PMD to support rte_security lookaside protocol
185   offload for IPSec.
186
187 * **Updated IXGBE ethernet driver.**
188
189   Updated ixgbe ethernet PMD to support rte_security inline IPSec offload.
190
191 * **Updated ipsec-secgw application**
192
193   Updated ipsec-secgw sample application to support rte_security actions for
194   ipsec inline and full protocol offload using lookaside crypto offload.
195
196 * **Added IOMMU support to libvhost-user**
197
198   Implemented device IOTLB in Vhost-user backend, and enabled Virtio's IOMMU
199   feature. The feature is disabled by default, and can be enabled by setting
200   RTE_VHOST_USER_IOMMU_SUPPORT flag at vhost device registration time.
201
202 * **Added the Event Ethernet Adapter Library.**
203
204   Added the Event Ethernet Adapter library. It provices APIs for
205   eventdev applications to configure the ethdev to eventdev packet flow.
206
207 * **Added Membership library (rte_member).**
208
209   Added membership library. It provides an API for DPDK applications to insert a
210   new member, delete an existing member, or query the existence of a member in a
211   given set, or a group of sets. For the case of a group of sets the library
212   will return not only whether the element has been inserted before in one of
213   the sets but also which set it belongs to.
214
215   The Membership Library is an extension and generalization of a traditional
216   filter (for example Bloom Filter) structure that has multiple usages in a wide
217   variety of workloads and applications. In general, the Membership Library is a
218   data structure that provides a “set-summary” and responds to set-membership
219   queries whether a certain member belongs to a set(s).
220
221   See the :ref:`Membership Library <Member_Library>` documentation in
222   the Programmers Guide document, for more information.
223
224 * **Added the Generic Segmentation Offload Library.**
225
226   Added the Generic Segmentation Offload (GSO) library to enable
227   applications to split large packets (e.g. MTU is 64KB) into small
228   ones (e.g. MTU is 1500B). Supported packet types are:
229
230   * TCP/IPv4 packets.
231   * VxLAN packets, which must have an outer IPv4 header, and contain
232     an inner TCP/IPv4 packet.
233   * GRE packets, which must contain an outer IPv4 header, and inner
234     TCP/IPv4 headers.
235
236   The GSO library doesn't check if the input packets have correct
237   checksums, and doesn't update checksums for output packets.
238   Additionally, the GSO library doesn't process IP fragmented packets.
239
240 * **Added the Flow Classification Library.**
241
242   Added the Flow Classification library, it provides an API for DPDK
243   applications to classify an input packet by matching it against a set of flow
244   rules. It uses the librte_table API to manage the flow rules.
245
246
247 Resolved Issues
248 ---------------
249
250 .. This section should contain bug fixes added to the relevant
251    sections. Sample format:
252
253    * **code/section Fixed issue in the past tense with a full stop.**
254
255      Add a short 1-2 sentence description of the resolved issue in the past
256      tense.
257
258      The title should contain the code/lib section like a commit message.
259
260      Add the entries in alphabetic order in the relevant sections below.
261
262    This section is a comment. do not overwrite or remove it.
263    Also, make sure to start the actual text at the margin.
264    =========================================================
265
266
267 EAL
268 ~~~
269
270 * **Service core fails to call service callback due to atomic lock**
271
272   In a specific configuration of multi-thread unsafe services and service
273   cores, a service core previously did not correctly release the atomic lock
274   on the service. This would result in the cores polling the service, but it
275   looked like another thread was executing the service callback. The logic for
276   atomic locking of the services has been fixed and refactored for readability.
277
278 Drivers
279 ~~~~~~~
280
281
282 Libraries
283 ~~~~~~~~~
284
285
286 Examples
287 ~~~~~~~~
288
289
290 Other
291 ~~~~~
292
293
294 Known Issues
295 ------------
296
297 .. This section should contain new known issues in this release. Sample format:
298
299    * **Add title in present tense with full stop.**
300
301      Add a short 1-2 sentence description of the known issue in the present
302      tense. Add information on any known workarounds.
303
304    This section is a comment. do not overwrite or remove it.
305    Also, make sure to start the actual text at the margin.
306    =========================================================
307
308
309 API Changes
310 -----------
311
312 .. This section should contain API changes. Sample format:
313
314    * Add a short 1-2 sentence description of the API change. Use fixed width
315      quotes for ``rte_function_names`` or ``rte_struct_names``. Use the past
316      tense.
317
318    This section is a comment. do not overwrite or remove it.
319    Also, make sure to start the actual text at the margin.
320    =========================================================
321
322 * **Ethdev device name length increased**
323
324   The size of internal device name is increased to 64 characters
325   to allow for storing longer bus specific name.
326
327 * **Ethdev flag RTE_ETH_DEV_DETACHABLE was removed**
328
329   This flag is not necessary anymore, with the new hotplug implementation.
330   It is now removed from the ether library. Its semantic is expressed at the bus
331   and PMD level.
332
333 * **Service cores API updated for usability**
334
335   The service cores API has been changed, removing pointers from the API
336   where possible, instead using integer IDs to identify each service. This
337   simplifed application code, aids debugging, and provides better
338   encapsulation. A summary of the main changes made is as follows:
339
340   * Services identified by ID not by ``rte_service_spec`` pointer
341   * Reduced API surface by using ``set`` functions instead of enable/disable
342   * Reworked ``rte_service_register`` to provide the service ID to registrar
343   * Rework start and stop APIs into ``rte_service_runstate_set``
344   * Added API to set runstate of service implementation to indicate readyness
345
346 * **The following changes made in mempool library**
347
348   * Moved ``flags`` datatype from int to unsigned int for ``rte_mempool``.
349   * Removed ``__rte_unused int flag`` param from ``rte_mempool_generic_put``
350     and ``rte_mempool_generic_get`` API.
351   * Added ``flags`` param in ``rte_mempool_xmem_size`` and
352     ``rte_mempool_xmem_usage``.
353
354 * Xen dom0 in EAL was removed, as well as xenvirt PMD and vhost_xen.
355
356 * ``rte_mem_phy2mch`` was used in Xen dom0 to obtain the physical address;
357   remove this API as Xen dom0 support was removed.
358
359 * **Some data type, structure members and functions related to physical address
360   are deprecated and have new alias with IOVA wording.**
361
362   * ``phys_addr_t`` can be often replaced by ``rte_iova_t`` of same size.
363   * ``RTE_BAD_PHYS_ADDR`` is often replaced by ``RTE_BAD_IOVA`` of same value.
364   * ``rte_memseg.phys_addr`` is aliased with ``rte_memseg.iova_addr``.
365   * ``rte_mem_virt2phy()`` can often be replaced by ``rte_mem_virt2iova``.
366   * ``rte_malloc_virt2phy`` is aliased with ``rte_malloc_virt2iova``.
367   * ``rte_memzone.phys_addr`` is aliased with ``rte_memzone.iova``.
368   * ``rte_mempool_objhdr.physaddr`` is aliased with ``rte_mempool_objhdr.iova``.
369   * ``rte_mempool_memhdr.phys_addr`` is aliased with ``rte_mempool_memhdr.iova``.
370   * ``rte_mempool_virt2phy()`` can be replaced by ``rte_mempool_virt2iova()``.
371   * ``rte_mempool_populate_phys*()`` are aliased with ``rte_mempool_populate_iova*()``
372   * ``rte_mbuf.buf_physaddr`` is aliased with ``rte_mbuf.buf_iova``.
373   * ``rte_mbuf_data_dma_addr*()`` are aliased with ``rte_mbuf_data_iova*()``.
374   * ``rte_pktmbuf_mtophys*`` are aliased with ``rte_pktmbuf_iova*()``.
375
376 * **PCI bus API moved outside of the EAL**
377
378   The PCI bus previously implemented within the EAL has been moved.
379   A first part has been added as an RTE library providing PCI helpers to
380   parse device locations or other such utilities.
381   A second part consisting in the actual bus driver has been moved to its
382   proper subdirectory, without changing its functionalities.
383
384   As such, several PCI-related functions are not proposed by the EAL anymore:
385
386   * rte_pci_detach
387   * rte_pci_dump
388   * rte_pci_ioport_map
389   * rte_pci_ioport_read
390   * rte_pci_ioport_unmap
391   * rte_pci_ioport_write
392   * rte_pci_map_device
393   * rte_pci_probe
394   * rte_pci_probe_one
395   * rte_pci_read_config
396   * rte_pci_register
397   * rte_pci_scan
398   * rte_pci_unmap_device
399   * rte_pci_unregister
400   * rte_pci_write_config
401
402   These functions are made available either as part of ``librte_pci`` or
403   ``librte_bus_pci``.
404
405 * **Moved vdev bus APIs outside of the EAL**
406
407   Moved the following APIs from ``librte_eal`` to ``librte_bus_vdev``:
408   * ``rte_vdev_init``
409   * ``rte_vdev_register``
410   * ``rte_vdev_uninit``
411   * ``rte_vdev_unregister``
412
413 * **Add return value to stats_get dev op API**
414
415   The ``stats_get`` dev op API return value has been changed to be int.
416   By this way PMDs can return an error value in case of failure at stats
417   getting process time.
418
419 * **Modified the rte_cryptodev_allocate_driver function in the cryptodev library.**
420
421   The function ``rte_cryptodev_allocate_driver()`` has been modified.
422   An extra parameter ``struct cryptodev_driver *crypto_drv`` has been added.
423
424 * **Removed virtual device bus specific functions from librte_cryptodev.**
425
426   The functions ``rte_cryptodev_vdev_parse_init_params()`` and
427   ``rte_cryptodev_vdev_pmd_init()`` have been removed from librte_cryptodev
428   and have been replaced by non bus specific functions
429   ``rte_cryptodev_pmd_parse_input_args()`` and ``rte_cryptodev_pmd_create()``.
430
431 * ``rte_cryptodev_create_vdev`` was removed to avoid the dependency on vdev
432   in librte_cryptodev; instead, users can call rte_vdev_init() directly.
433
434 * **Removed PCI device bus specific functions from librte_cryptodev.**
435
436   The functions ``rte_cryptodev_pci_generic_probe()`` and
437   ``rte_cryptodev_pci_generic_remove()`` have been removed from librte_cryptodev
438   and have been replaced by non bus specific functions
439   ``rte_cryptodev_pmd_create()`` and ``rte_cryptodev_pmd_destroy()``.
440
441 * **Removed deprecated functions to manage log level or type.**
442
443   The functions ``rte_set_log_level()``, ``rte_get_log_level()``,
444   ``rte_set_log_type()`` and ``rte_get_log_type()`` have been removed.
445   They are respectively replaced by ``rte_log_set_global_level()``,
446   ``rte_log_get_global_level()``, ``rte_log_set_level()`` and
447   ``rte_log_get_level()``.
448
449 * **Removed ``mbuf`` flags ``PKT_RX_VLAN_PKT`` and ``PKT_RX_QINQ_PKT``.**
450
451   The ``mbuf`` flags ``PKT_RX_VLAN_PKT`` and ``PKT_RX_QINQ_PKT`` have
452   been removed since their behavior were not properly described.
453
454 * **Added ``mbuf`` flags ``PKT_RX_VLAN`` and ``PKT_RX_QINQ``.**
455
456   Two ``mbuf`` flags have been added to indicate that the VLAN
457   identifier has been saved in in the ``mbuf`` structure. For instance:
458
459   - if VLAN is not stripped and TCI is saved: ``PKT_RX_VLAN``
460   - if VLAN is stripped and TCI is saved: ``PKT_RX_VLAN | PKT_RX_VLAN_STRIPPED``
461
462 * **Modified the vlan_offload_set_t function prototype in the ethdev library.**
463
464   Changed the function prototype of ``vlan_offload_set_t``.  The return value
465   has been changed from ``void`` to ``int`` so the caller to knows whether
466   the backing device supports the operation or if the operation was
467   successfully performed.
468
469
470 ABI Changes
471 -----------
472
473 .. This section should contain ABI changes. Sample format:
474
475    * Add a short 1-2 sentence description of the ABI change that was announced
476      in the previous releases and made in this release. Use fixed width quotes
477      for ``rte_function_names`` or ``rte_struct_names``. Use the past tense.
478
479    This section is a comment. do not overwrite or remove it.
480    Also, make sure to start the actual text at the margin.
481    =========================================================
482
483 * **Extended port_id range.**
484
485   The size of the field ``port_id`` in the ``rte_eth_dev_data`` structure
486   changed, as described in the `New Features` section.
487
488 * **New parameter added to rte_eth_dev.**
489
490   New parameter ``security_ctx``  added to ``rte_eth_dev`` to support security
491   operations like IPSec inline.
492
493 * **New parameter added to rte_cryptodev.**
494
495   New parameter ``security_ctx``  added to ``rte_cryptodev`` to support security
496   operations like lookaside crypto.
497
498
499 Removed Items
500 -------------
501
502 .. This section should contain removed items in this release. Sample format:
503
504    * Add a short 1-2 sentence description of the removed item in the past
505      tense.
506
507    This section is a comment. do not overwrite or remove it.
508    Also, make sure to start the actual text at the margin.
509    =========================================================
510
511 * The crypto performance unit tests have been removed,
512   replaced by the dpdk-test-crypto-perf application.
513
514
515 Shared Library Versions
516 -----------------------
517
518 .. Update any library version updated in this release and prepend with a ``+``
519    sign, like this:
520
521      librte_acl.so.2
522    + librte_cfgfile.so.2
523      librte_cmdline.so.2
524
525    This section is a comment. do not overwrite or remove it.
526    =========================================================
527
528
529 The libraries prepended with a plus sign were incremented in this version.
530
531 .. code-block:: diff
532
533      librte_acl.so.2
534    + librte_bitratestats.so.2
535    + librte_bus_vdev.so.1
536      librte_cfgfile.so.2
537      librte_cmdline.so.2
538    + librte_cryptodev.so.4
539      librte_distributor.so.1
540    + librte_eal.so.6
541    + librte_ethdev.so.8
542    + librte_eventdev.so.3
543    + librte_flow_classify.so.1
544      librte_gro.so.1
545    + librte_gso.so.1
546      librte_hash.so.2
547      librte_ip_frag.so.1
548      librte_jobstats.so.1
549      librte_kni.so.2
550      librte_kvargs.so.1
551      librte_latencystats.so.1
552      librte_lpm.so.2
553      librte_mbuf.so.3
554    + librte_mempool.so.3
555      librte_meter.so.1
556      librte_metrics.so.1
557      librte_net.so.1
558    + librte_pci.so.1
559    + librte_pdump.so.2
560      librte_pipeline.so.3
561    + librte_pmd_bnxt.so.2
562    + librte_pmd_bond.so.2
563    + librte_pmd_i40e.so.2
564    + librte_pmd_ixgbe.so.2
565      librte_pmd_ring.so.2
566    + librte_pmd_softnic.so.1
567    + librte_pmd_vhost.so.2
568      librte_port.so.3
569      librte_power.so.1
570      librte_reorder.so.1
571      librte_ring.so.1
572      librte_sched.so.1
573    + librte_security.so.1
574    + librte_table.so.3
575      librte_timer.so.1
576      librte_vhost.so.3
577
578
579 Tested Platforms
580 ----------------
581
582 .. This section should contain a list of platforms that were tested with this
583    release.
584
585    The format is:
586
587    * <vendor> platform with <vendor> <type of devices> combinations
588
589      * List of CPU
590      * List of OS
591      * List of devices
592      * Other relevant details...
593
594    This section is a comment. do not overwrite or remove it.
595    Also, make sure to start the actual text at the margin.
596    =========================================================