doc: announce API and ABI changes for bus in EAL
[dpdk.git] / doc / guides / rel_notes / deprecation.rst
1 ABI and API Deprecation
2 =======================
3
4 See the :doc:`guidelines document for details of the ABI policy </contributing/versioning>`.
5 API and ABI deprecation notices are to be posted here.
6
7
8 Deprecation Notices
9 -------------------
10
11 * igb_uio: iomem mapping and sysfs files created for iomem and ioport in
12   igb_uio will be removed, because we are able to detect these from what Linux
13   has exposed, like the way we have done with uio-pci-generic. This change
14   targets release 17.02.
15
16 * ABI/API changes are planned for 17.02: ``rte_device``, ``rte_driver`` will be
17   impacted because of introduction of a new ``rte_bus`` hierarchy. This would
18   also impact the way devices are identified by EAL. A bus-device-driver model
19   will be introduced providing a hierarchical view of devices.
20
21 * ``eth_driver`` is planned to be removed in 17.02. This currently serves as
22   a placeholder for PMDs to register themselves. Changes for ``rte_bus`` will
23   provide a way to handle device initialization currently being done in
24   ``eth_driver``.
25
26 * In 17.02 ABI changes are planned: the ``rte_eth_dev`` structure will be
27   extended with new function pointer ``tx_pkt_prepare`` allowing verification
28   and processing of packet burst to meet HW specific requirements before
29   transmit. Also new fields will be added to the ``rte_eth_desc_lim`` structure:
30   ``nb_seg_max`` and ``nb_mtu_seg_max`` providing information about number of
31   segments limit to be transmitted by device for TSO/non-TSO packets.
32
33 * ABI changes are planned for 17.02 in the ``rte_mbuf`` structure: some fields
34   may be reordered to facilitate the writing of ``data_off``, ``refcnt``, and
35   ``nb_segs`` in one operation, because some platforms have an overhead if the
36   store address is not naturally aligned. Other mbuf fields, such as the
37   ``port`` field, may be moved or removed as part of this mbuf work. A
38   ``timestamp`` will also be added.
39
40 * The mbuf flags PKT_RX_VLAN_PKT and PKT_RX_QINQ_PKT are deprecated and
41   are respectively replaced by PKT_RX_VLAN_STRIPPED and
42   PKT_RX_QINQ_STRIPPED, that are better described. The old flags and
43   their behavior will be kept until 16.11 and will be removed in 17.02.
44
45 * mempool: The functions ``rte_mempool_count`` and ``rte_mempool_free_count``
46   will be removed in 17.02.
47   They are replaced by ``rte_mempool_avail_count`` and
48   ``rte_mempool_in_use_count`` respectively.
49
50 * mempool: The functions for single/multi producer/consumer are deprecated
51   and will be removed in 17.02.
52   It is replaced by ``rte_mempool_generic_get/put`` functions.