eal: deprecate function to set default mbuf pool
[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: DPDK runtime configuration file (located at
12   ``/var/run/.<prefix>_config``) will be moved. The new path will be as follows:
13
14   - if DPDK is running as root, path will be set to
15     ``/var/run/dpdk/<prefix>/config``
16   - if DPDK is not running as root and $XDG_RUNTIME_DIR is set, path will be set
17     to ``$XDG_RUNTIME_DIR/dpdk/<prefix>/config``
18   - if DPDK is not running as root and $XDG_RUNTIME_DIR is not set, path will be
19     set to ``/tmp/dpdk/<prefix>/config``
20
21 * eal: both declaring and identifying devices will be streamlined in v18.05.
22   New functions will appear to query a specific port from buses, classes of
23   device and device drivers. Device declaration will be made coherent with the
24   new scheme of device identification.
25   As such, ``rte_devargs`` device representation will change.
26
27   - removal of ``name`` and ``args`` fields.
28   - The enum ``rte_devtype`` was used to identify a bus and will disappear.
29   - Functions previously deprecated will change or disappear:
30
31     + ``rte_eal_devargs_type_count``
32     + ``rte_eal_devargs_parse`` will change its format and use.
33
34 * pci: Several exposed functions are misnamed.
35   The following functions are deprecated starting from v17.11 and are replaced:
36
37   - ``eal_parse_pci_BDF`` replaced by ``rte_pci_addr_parse``
38   - ``eal_parse_pci_DomBDF`` replaced by ``rte_pci_addr_parse``
39   - ``rte_eal_compare_pci_addr`` replaced by ``rte_pci_addr_cmp``
40
41 * eal: a new set of mbuf mempool ops name APIs for user, platform and best
42   mempool names have been defined in ``rte_mbuf`` in v18.02. The uses of
43   ``rte_eal_mbuf_default_mempool_ops`` shall be replaced by
44   ``rte_mbuf_best_mempool_ops``.
45   The following function is deprecated since 18.05, and will be removed
46   in 18.08:
47
48   - ``rte_eal_mbuf_default_mempool_ops``
49
50 * mbuf: The opaque ``mbuf->hash.sched`` field will be updated to support generic
51   definition in line with the ethdev TM and MTR APIs. Currently, this field
52   is defined in librte_sched in a non-generic way. The new generic format
53   will contain: queue ID, traffic class, color. Field size will not change.
54
55 * ethdev: a new Tx and Rx offload API was introduced on 17.11.
56   In the new API, offloads are divided into per-port and per-queue offloads.
57   Offloads are disabled by default and enabled per application request.
58
59   In later releases the old offloading API will be deprecated, which will include:
60   - removal of ``ETH_TXQ_FLAGS_NO*`` flags.
61   - removal of ``txq_flags`` field from ``rte_eth_txconf`` struct.
62   - removal of the offloads bit-field from ``rte_eth_rxmode`` struct.
63
64 * ethdev: the legacy filter API, including
65   ``rte_eth_dev_filter_supported()``, ``rte_eth_dev_filter_ctrl()`` as well
66   as filter types MACVLAN, ETHERTYPE, FLEXIBLE, SYN, NTUPLE, TUNNEL, FDIR,
67   HASH and L2_TUNNEL, is superseded by the generic flow API (rte_flow) in
68   PMDs that implement the latter.
69   Target release for removal of the legacy API will be defined once most
70   PMDs have switched to rte_flow.
71
72 * pdump: As we changed to use generic IPC, some changes in APIs and structure
73   are expected in subsequent release.
74
75   - ``rte_pdump_set_socket_dir`` will be removed;
76   - The parameter, ``path``, of ``rte_pdump_init`` will be removed;
77   - The enum ``rte_pdump_socktype`` will be removed.
78
79 * cryptodev: The following changes will be made in the library
80   for 18.08:
81
82   - Removal of ``sym`` structure in ``rte_cryptodev_info`` structure,
83     containing fields not relevant anymore since the session mempool
84     is not internal in the crypto device anymore.
85   - Replacement of ``pci_dev`` field with the more generic ``rte_device``
86     structure.
87   - Functions ``rte_cryptodev_queue_pair_attach_sym_session()`` and
88     ``rte_cryptodev_queue_pair_dettach_sym_session()`` will be deprecated from
89     18.05 and removed in 18.08, as there are no drivers doing anything useful
90     with them.
91   - Functions ``rte_cryptodev_queue_pair_start()`` and
92     ``rte_cryptodev_queue_pair_stop()`` will be deprecated from 18.05
93     and removed in 18.08, as there are no drivers doing anything useful
94     with them.
95   - Some feature flags such as ``RTE_CRYPTODEV_FF_MBUF_SCATTER_GATHER`` are ambiguous,
96     so some will be replaced by more explicit flags.
97   - Function ``rte_cryptodev_get_header_session_size()`` will be deprecated
98     in 18.05, and it gets replaced with ``rte_cryptodev_sym_get_header_session_size()``.
99     It will be removed in 18.08.
100   - Function ``rte_cryptodev_get_private_session_size()`` will be deprecated
101     in 18.05, and it gets replaced with ``rte_cryptodev_sym_get_private_session_size()``.
102     It will be removed in 18.08.