Imported Upstream version 16.11
[deb_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 * In 17.02 ABI change is planned: the ``rte_eth_dev_info`` structure
34   will be extended with a new member ``fw_version`` in order to store
35   the NIC firmware version.
36
37 * ethdev: an API change is planned for 17.02 for the function
38   ``_rte_eth_dev_callback_process``. In 17.02 the function will return an ``int``
39   instead of ``void`` and a fourth parameter ``void *ret_param`` will be added.
40
41 * ethdev: for 17.02 it is planned to deprecate the following five functions
42   and move them in ixgbe:
43
44   ``rte_eth_dev_set_vf_rxmode``
45
46   ``rte_eth_dev_set_vf_rx``
47
48   ``rte_eth_dev_set_vf_tx``
49
50   ``rte_eth_dev_set_vf_vlan_filter``
51
52   ``rte_eth_set_vf_rate_limit``
53
54 * ABI changes are planned for 17.02 in the ``rte_mbuf`` structure: some fields
55   may be reordered to facilitate the writing of ``data_off``, ``refcnt``, and
56   ``nb_segs`` in one operation, because some platforms have an overhead if the
57   store address is not naturally aligned. Other mbuf fields, such as the
58   ``port`` field, may be moved or removed as part of this mbuf work. A
59   ``timestamp`` will also be added.
60
61 * The mbuf flags PKT_RX_VLAN_PKT and PKT_RX_QINQ_PKT are deprecated and
62   are respectively replaced by PKT_RX_VLAN_STRIPPED and
63   PKT_RX_QINQ_STRIPPED, that are better described. The old flags and
64   their behavior will be kept until 16.11 and will be removed in 17.02.
65
66 * mempool: The functions ``rte_mempool_count`` and ``rte_mempool_free_count``
67   will be removed in 17.02.
68   They are replaced by ``rte_mempool_avail_count`` and
69   ``rte_mempool_in_use_count`` respectively.
70
71 * mempool: The functions for single/multi producer/consumer are deprecated
72   and will be removed in 17.02.
73   It is replaced by ``rte_mempool_generic_get/put`` functions.