cryptodev: remove old get session size functions
[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.08.
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   - The enum ``rte_devtype`` was used to identify a bus and will disappear.
28   - Functions previously deprecated will change or disappear:
29
30     + ``rte_eal_devargs_type_count``
31     + ``rte_eal_devargs_parse`` will change its format and use.
32
33 * pci: Several exposed functions are misnamed.
34   The following functions are deprecated starting from v17.11 and are replaced:
35
36   - ``eal_parse_pci_BDF`` replaced by ``rte_pci_addr_parse``
37   - ``eal_parse_pci_DomBDF`` replaced by ``rte_pci_addr_parse``
38   - ``rte_eal_compare_pci_addr`` replaced by ``rte_pci_addr_cmp``
39
40 * eal: a new set of mbuf mempool ops name APIs for user, platform and best
41   mempool names have been defined in ``rte_mbuf`` in v18.02. The uses of
42   ``rte_eal_mbuf_default_mempool_ops`` shall be replaced by
43   ``rte_mbuf_best_mempool_ops``.
44   The following function is deprecated since 18.05, and will be removed
45   in 18.08:
46
47   - ``rte_eal_mbuf_default_mempool_ops``
48
49 * mbuf: The opaque ``mbuf->hash.sched`` field will be updated to support generic
50   definition in line with the ethdev TM and MTR APIs. Currently, this field
51   is defined in librte_sched in a non-generic way. The new generic format
52   will contain: queue ID, traffic class, color. Field size will not change.
53
54 * mbuf: the macro ``RTE_MBUF_INDIRECT()`` will be removed in v18.08 or later and
55   replaced with ``RTE_MBUF_CLONED()`` which is already added in v18.05. As
56   ``EXT_ATTACHED_MBUF`` is newly introduced in v18.05, ``RTE_MBUF_INDIRECT()``
57   can no longer be mutually exclusive with ``RTE_MBUF_DIRECT()`` if the new
58   experimental API ``rte_pktmbuf_attach_extbuf()`` is used. Removal of the macro
59   is to fix this semantic inconsistency.
60
61 * ethdev: In v18.11 ``DEV_RX_OFFLOAD_CRC_STRIP`` offload flag will be removed, default
62   behavior without any flag will be changed to CRC strip.
63   To keep CRC ``DEV_RX_OFFLOAD_KEEP_CRC`` flag is required.
64   ``KEEP_CRC``: Keep CRC in packet
65   No flag: Strip CRC from packet
66
67 * ethdev: the legacy filter API, including
68   ``rte_eth_dev_filter_supported()``, ``rte_eth_dev_filter_ctrl()`` as well
69   as filter types MACVLAN, ETHERTYPE, FLEXIBLE, SYN, NTUPLE, TUNNEL, FDIR,
70   HASH and L2_TUNNEL, is superseded by the generic flow API (rte_flow) in
71   PMDs that implement the latter.
72   Target release for removal of the legacy API will be defined once most
73   PMDs have switched to rte_flow.
74
75 * pdump: As we changed to use generic IPC, some changes in APIs and structure
76   are expected in subsequent release.
77
78   - ``rte_pdump_set_socket_dir`` will be removed;
79   - The parameter, ``path``, of ``rte_pdump_init`` will be removed;
80   - The enum ``rte_pdump_socktype`` will be removed.
81
82 * cryptodev: The following changes will be made in the library
83   for 18.08:
84
85   - Functions ``rte_cryptodev_queue_pair_attach_sym_session()`` and
86     ``rte_cryptodev_queue_pair_dettach_sym_session()`` will be deprecated from
87     18.05 and removed in 18.08, as there are no drivers doing anything useful
88     with them.
89   - Some feature flags such as ``RTE_CRYPTODEV_FF_MBUF_SCATTER_GATHER`` are ambiguous,
90     so some will be replaced by more explicit flags.