eal: remove deprecated function for mbuf pool ops
[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 * 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:
14
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
24     socket ID's.
25
26 * eal: both declaring and identifying devices will be streamlined in v18.08.
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.
31
32   - The enum ``rte_devtype`` was used to identify a bus and will disappear.
33   - Functions previously deprecated will change or disappear:
34
35     + ``rte_eal_devargs_type_count``
36     + ``rte_eal_devargs_parse`` will change its format and use.
37
38 * pci: Several exposed functions are misnamed.
39   The following functions are deprecated starting from v17.11 and are replaced:
40
41   - ``eal_parse_pci_BDF`` replaced by ``rte_pci_addr_parse``
42   - ``eal_parse_pci_DomBDF`` replaced by ``rte_pci_addr_parse``
43   - ``rte_eal_compare_pci_addr`` replaced by ``rte_pci_addr_cmp``
44
45 * mbuf: The opaque ``mbuf->hash.sched`` field will be updated to support generic
46   definition in line with the ethdev TM and MTR APIs. Currently, this field
47   is defined in librte_sched in a non-generic way. The new generic format
48   will contain: queue ID, traffic class, color. Field size will not change.
49
50 * mbuf: the macro ``RTE_MBUF_INDIRECT()`` will be removed in v18.08 or later and
51   replaced with ``RTE_MBUF_CLONED()`` which is already added in v18.05. As
52   ``EXT_ATTACHED_MBUF`` is newly introduced in v18.05, ``RTE_MBUF_INDIRECT()``
53   can no longer be mutually exclusive with ``RTE_MBUF_DIRECT()`` if the new
54   experimental API ``rte_pktmbuf_attach_extbuf()`` is used. Removal of the macro
55   is to fix this semantic inconsistency.
56
57 * ethdev: In v18.11 ``DEV_RX_OFFLOAD_CRC_STRIP`` offload flag will be removed, default
58   behavior without any flag will be changed to CRC strip.
59   To keep CRC ``DEV_RX_OFFLOAD_KEEP_CRC`` flag is required.
60   ``KEEP_CRC``: Keep CRC in packet
61   No flag: Strip CRC from packet
62
63 * ethdev: the legacy filter API, including
64   ``rte_eth_dev_filter_supported()``, ``rte_eth_dev_filter_ctrl()`` as well
65   as filter types MACVLAN, ETHERTYPE, FLEXIBLE, SYN, NTUPLE, TUNNEL, FDIR,
66   HASH and L2_TUNNEL, is superseded by the generic flow API (rte_flow) in
67   PMDs that implement the latter.
68   Target release for removal of the legacy API will be defined once most
69   PMDs have switched to rte_flow.
70
71 * ethdev: In v18.11 ``rte_eth_dev_attach()`` and ``rte_eth_dev_detach()``
72   will be removed.
73   Hotplug functions ``rte_eal_hotplug_add()`` and ``rte_eal_hotplug_remove()``
74   should be used instread.
75   Function ``rte_eth_dev_get_port_by_name()`` may be used to find
76   identifier of the added port.
77
78 * eal: In v18.11 ``rte_eal_dev_attach()`` and ``rte_eal_dev_detach()``
79   will be removed.
80   Hotplug functions ``rte_eal_hotplug_add()`` and ``rte_eal_hotplug_remove()``
81   should be used directly.
82
83 * pdump: As we changed to use generic IPC, some changes in APIs and structure
84   are expected in subsequent release.
85
86   - ``rte_pdump_set_socket_dir`` will be removed;
87   - The parameter, ``path``, of ``rte_pdump_init`` will be removed;
88   - The enum ``rte_pdump_socktype`` will be removed.