New upstream version 18.08
[deb_dpdk.git] / doc / guides / rel_notes / deprecation.rst
1 ..  SPDX-License-Identifier: BSD-3-Clause
2     Copyright 2018 The DPDK contributors
3
4 ABI and API Deprecation
5 =======================
6
7 See the :doc:`guidelines document for details of the ABI policy </contributing/versioning>`.
8 API and ABI deprecation notices are to be posted here.
9
10
11 Deprecation Notices
12 -------------------
13
14 * eal: certain structures will change in EAL on account of upcoming external
15   memory support. Aside from internal changes leading to an ABI break, the
16   following externally visible changes will also be implemented:
17
18   - ``rte_memseg_list`` will change to include a boolean flag indicating
19     whether a particular memseg list is externally allocated. This will have
20     implications for any users of memseg-walk-related functions, as they will
21     now have to skip externally allocated segments in most cases if the intent
22     is to only iterate over internal DPDK memory.
23   - ``socket_id`` parameter across the entire DPDK will gain additional meaning,
24     as some socket ID's will now be representing externally allocated memory. No
25     changes will be required for existing code as backwards compatibility will
26     be kept, and those who do not use this feature will not see these extra
27     socket ID's.
28
29 * eal: both declaring and identifying devices will be streamlined in v18.11.
30   New functions will appear to query a specific port from buses, classes of
31   device and device drivers. Device declaration will be made coherent with the
32   new scheme of device identification.
33   As such, ``rte_devargs`` device representation will change.
34
35   - The enum ``rte_devtype`` was used to identify a bus and will disappear.
36   - Functions previously deprecated will change or disappear:
37
38     + ``rte_eal_devargs_type_count``
39
40 * pci: Several exposed functions are misnamed.
41   The following functions are deprecated starting from v17.11 and are replaced:
42
43   - ``eal_parse_pci_BDF`` replaced by ``rte_pci_addr_parse``
44   - ``eal_parse_pci_DomBDF`` replaced by ``rte_pci_addr_parse``
45   - ``rte_eal_compare_pci_addr`` replaced by ``rte_pci_addr_cmp``
46
47 * mbuf: The opaque ``mbuf->hash.sched`` field will be updated to support generic
48   definition in line with the ethdev TM and MTR APIs. Currently, this field
49   is defined in librte_sched in a non-generic way. The new generic format
50   will contain: queue ID, traffic class, color. Field size will not change.
51
52 * mbuf: the macro ``RTE_MBUF_INDIRECT()`` will be removed in v18.08 or later and
53   replaced with ``RTE_MBUF_CLONED()`` which is already added in v18.05. As
54   ``EXT_ATTACHED_MBUF`` is newly introduced in v18.05, ``RTE_MBUF_INDIRECT()``
55   can no longer be mutually exclusive with ``RTE_MBUF_DIRECT()`` if the new
56   experimental API ``rte_pktmbuf_attach_extbuf()`` is used. Removal of the macro
57   is to fix this semantic inconsistency.
58
59 * ethdev: In v18.11 ``DEV_RX_OFFLOAD_CRC_STRIP`` offload flag will be removed, default
60   behavior without any flag will be changed to CRC strip.
61   To keep CRC ``DEV_RX_OFFLOAD_KEEP_CRC`` flag is required.
62   ``KEEP_CRC``: Keep CRC in packet
63   No flag: Strip CRC from packet
64
65 * ethdev: the legacy filter API, including
66   ``rte_eth_dev_filter_supported()``, ``rte_eth_dev_filter_ctrl()`` as well
67   as filter types MACVLAN, ETHERTYPE, FLEXIBLE, SYN, NTUPLE, TUNNEL, FDIR,
68   HASH and L2_TUNNEL, is superseded by the generic flow API (rte_flow) in
69   PMDs that implement the latter.
70   Target release for removal of the legacy API will be defined once most
71   PMDs have switched to rte_flow.
72
73 * ethdev: In v18.11 ``rte_eth_dev_attach()`` and ``rte_eth_dev_detach()``
74   will be removed.
75   Hotplug functions ``rte_eal_hotplug_add()`` and ``rte_eal_hotplug_remove()``
76   should be used instread.
77   Function ``rte_eth_dev_get_port_by_name()`` may be used to find
78   identifier of the added port.
79
80 * eal: In v18.11 ``rte_eal_dev_attach()`` and ``rte_eal_dev_detach()``
81   will be removed.
82   Hotplug functions ``rte_eal_hotplug_add()`` and ``rte_eal_hotplug_remove()``
83   should be used directly.
84
85 * pdump: As we changed to use generic IPC, some changes in APIs and structure
86   are expected in subsequent release.
87
88   - ``rte_pdump_set_socket_dir`` will be removed;
89   - The parameter, ``path``, of ``rte_pdump_init`` will be removed;
90   - The enum ``rte_pdump_socktype`` will be removed.
91
92 * ethdev: flow API function ``rte_flow_copy()`` will be deprecated in v18.11
93   in favor of ``rte_flow_conv()`` (which will appear in that version) and
94   subsequently removed for v19.02.
95
96   This is due to a lack of flexibility and reliance on a type unusable with
97   C++ programs (struct rte_flow_desc).