1 ABI and API Deprecation
2 =======================
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.
11 * ring: Changes are planned to rte_ring APIs in release 17.05. Proposed
14 - Removing build time options for the ring:
15 CONFIG_RTE_RING_SPLIT_PROD_CONS
16 CONFIG_RTE_RING_PAUSE_REP_COUNT
17 - Adding an additional parameter to enqueue functions to return the
18 amount of free space in the ring
19 - Adding an additional parameter to dequeue functions to return the
20 number of remaining elements in the ring
21 - Removing direct support for watermarks in the rings, since the
22 additional return value from the enqueue function makes it
24 - Adjusting the return values of the bulk() enq/deq functions to
25 make them consistent with the burst() equivalents. [Note, parameter
26 to these functions are changing too, per points above, so compiler
27 will flag them as needing update in legacy code]
28 - Updates to some library functions e.g. rte_ring_get_memsize() to
29 allow for variably-sized ring elements.
31 * igb_uio: iomem mapping and sysfs files created for iomem and ioport in
32 igb_uio will be removed, because we are able to detect these from what Linux
33 has exposed, like the way we have done with uio-pci-generic. This change
34 targets release 17.05.
36 * vfio: Some functions are planned to be exported outside librte_eal in 17.05.
37 VFIO APIs like ``vfio_setup_device``, ``vfio_get_group_fd`` can be used by
38 subsystem other than EAL/PCI. For that, these need to be exported symbols.
39 Such APIs are planned to be renamed according to ``rte_*`` naming convention
40 and exported from librte_eal.
42 * The PCI and VDEV subsystems will be converted as drivers of the new bus model.
43 It will imply some EAL API changes in 17.05.
45 * ``eth_driver`` is planned to be removed in 17.05. This currently serves as
46 a placeholder for PMDs to register themselves. Changes for ``rte_bus`` will
47 provide a way to handle device initialization currently being done in
48 ``eth_driver``. Similarly, ``rte_pci_driver`` is planned to be removed from
49 ``rte_cryptodev_driver`` in 17.05.
51 * ethdev: an API change is planned for 17.02 for the function
52 ``_rte_eth_dev_callback_process``. In 17.02 the function will return an ``int``
53 instead of ``void`` and a fourth parameter ``void *ret_param`` will be added.
55 * ABI changes are planned for 17.05 in the ``rte_mbuf`` structure: some fields
56 may be reordered to facilitate the writing of ``data_off``, ``refcnt``, and
57 ``nb_segs`` in one operation, because some platforms have an overhead if the
58 store address is not naturally aligned. Other mbuf fields, such as the
59 ``port`` field, may be moved or removed as part of this mbuf work. A
60 ``timestamp`` will also be added.
62 * The mbuf flags PKT_RX_VLAN_PKT and PKT_RX_QINQ_PKT are deprecated and
63 are respectively replaced by PKT_RX_VLAN_STRIPPED and
64 PKT_RX_QINQ_STRIPPED, that are better described. The old flags and
65 their behavior will be kept until 17.02 and will be removed in 17.05.
67 * mempool: The functions ``rte_mempool_count`` and ``rte_mempool_free_count``
68 will be removed in 17.05.
69 They are replaced by ``rte_mempool_avail_count`` and
70 ``rte_mempool_in_use_count`` respectively.
72 * mempool: The functions for single/multi producer/consumer are deprecated
73 and will be removed in 17.05.
74 It is replaced by ``rte_mempool_generic_get/put`` functions.
76 * ethdev: the legacy filter API, including
77 ``rte_eth_dev_filter_supported()``, ``rte_eth_dev_filter_ctrl()`` as well
78 as filter types MACVLAN, ETHERTYPE, FLEXIBLE, SYN, NTUPLE, TUNNEL, FDIR,
79 HASH and L2_TUNNEL, is superseded by the generic flow API (rte_flow) in
80 PMDs that implement the latter.
81 Target release for removal of the legacy API will be defined once most
82 PMDs have switched to rte_flow.
84 * distributor: library API will be changed to incorporate a burst-oriented
85 API. This will include a change to ``rte_distributor_create``
86 to specify which type of instance to create (single or burst), and
87 additional calls for ``rte_distributor_poll_pkt_burst`` and
88 ``rte_distributor_return_pkt_burst``, among others.
90 * The architecture TILE-Gx and the associated mpipe driver are not
91 maintained and will be removed in 17.05.