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 * eal: certain structures will change in EAL on account of upcoming external
12 memory support. Aside from internal changes leading to an ABI break, the
13 following externally visible changes will also be implemented:
15 - ``rte_memseg_list`` will change to include a boolean flag indicating
16 whether a particular memseg list is externally allocated. This will have
17 implications for any users of memseg-walk-related functions, as they will
18 now have to skip externally allocated segments in most cases if the intent
19 is to only iterate over internal DPDK memory.
20 - ``socket_id`` parameter across the entire DPDK will gain additional meaning,
21 as some socket ID's will now be representing externally allocated memory. No
22 changes will be required for existing code as backwards compatibility will
23 be kept, and those who do not use this feature will not see these extra
26 * eal: both declaring and identifying devices will be streamlined in v18.11.
27 New functions will appear to query a specific port from buses, classes of
28 device and device drivers. Device declaration will be made coherent with the
29 new scheme of device identification.
30 As such, ``rte_devargs`` device representation will change.
32 - The enum ``rte_devtype`` was used to identify a bus and will disappear.
33 - Functions previously deprecated will change or disappear:
35 + ``rte_eal_devargs_type_count``
37 * pci: Several exposed functions are misnamed.
38 The following functions are deprecated starting from v17.11 and are replaced:
40 - ``eal_parse_pci_BDF`` replaced by ``rte_pci_addr_parse``
41 - ``eal_parse_pci_DomBDF`` replaced by ``rte_pci_addr_parse``
42 - ``rte_eal_compare_pci_addr`` replaced by ``rte_pci_addr_cmp``
44 * mbuf: The opaque ``mbuf->hash.sched`` field will be updated to support generic
45 definition in line with the ethdev TM and MTR APIs. Currently, this field
46 is defined in librte_sched in a non-generic way. The new generic format
47 will contain: queue ID, traffic class, color. Field size will not change.
49 * mbuf: the macro ``RTE_MBUF_INDIRECT()`` will be removed in v18.08 or later and
50 replaced with ``RTE_MBUF_CLONED()`` which is already added in v18.05. As
51 ``EXT_ATTACHED_MBUF`` is newly introduced in v18.05, ``RTE_MBUF_INDIRECT()``
52 can no longer be mutually exclusive with ``RTE_MBUF_DIRECT()`` if the new
53 experimental API ``rte_pktmbuf_attach_extbuf()`` is used. Removal of the macro
54 is to fix this semantic inconsistency.
56 * ethdev: In v18.11 ``DEV_RX_OFFLOAD_CRC_STRIP`` offload flag will be removed, default
57 behavior without any flag will be changed to CRC strip.
58 To keep CRC ``DEV_RX_OFFLOAD_KEEP_CRC`` flag is required.
59 ``KEEP_CRC``: Keep CRC in packet
60 No flag: Strip CRC from packet
62 * ethdev: the legacy filter API, including
63 ``rte_eth_dev_filter_supported()``, ``rte_eth_dev_filter_ctrl()`` as well
64 as filter types MACVLAN, ETHERTYPE, FLEXIBLE, SYN, NTUPLE, TUNNEL, FDIR,
65 HASH and L2_TUNNEL, is superseded by the generic flow API (rte_flow) in
66 PMDs that implement the latter.
67 Target release for removal of the legacy API will be defined once most
68 PMDs have switched to rte_flow.
70 * ethdev: In v18.11 ``rte_eth_dev_attach()`` and ``rte_eth_dev_detach()``
72 Hotplug functions ``rte_eal_hotplug_add()`` and ``rte_eal_hotplug_remove()``
73 should be used instread.
74 Function ``rte_eth_dev_get_port_by_name()`` may be used to find
75 identifier of the added port.
77 * eal: In v18.11 ``rte_eal_dev_attach()`` and ``rte_eal_dev_detach()``
79 Hotplug functions ``rte_eal_hotplug_add()`` and ``rte_eal_hotplug_remove()``
80 should be used directly.
82 * pdump: As we changed to use generic IPC, some changes in APIs and structure
83 are expected in subsequent release.
85 - ``rte_pdump_set_socket_dir`` will be removed;
86 - The parameter, ``path``, of ``rte_pdump_init`` will be removed;
87 - The enum ``rte_pdump_socktype`` will be removed.