eal: make semantics of lcore role function more intuitive
[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: both declaring and identifying devices will be streamlined in v18.05.
12   New functions will appear to query a specific port from buses, classes of
13   device and device drivers. Device declaration will be made coherent with the
14   new scheme of device identification.
15   As such, ``rte_devargs`` device representation will change.
16
17   - removal of ``name`` and ``args`` fields.
18   - The enum ``rte_devtype`` was used to identify a bus and will disappear.
19   - Functions previously deprecated will change or disappear:
20
21     + ``rte_eal_devargs_type_count``
22     + ``rte_eal_devargs_parse`` will change its format and use.
23
24 * pci: Several exposed functions are misnamed.
25   The following functions are deprecated starting from v17.11 and are replaced:
26
27   - ``eal_parse_pci_BDF`` replaced by ``rte_pci_addr_parse``
28   - ``eal_parse_pci_DomBDF`` replaced by ``rte_pci_addr_parse``
29   - ``rte_eal_compare_pci_addr`` replaced by ``rte_pci_addr_cmp``
30
31 * eal: a new set of mbuf mempool ops name APIs for user, platform and best
32   mempool names have been defined in ``rte_mbuf`` in v18.02. The uses of
33   ``rte_eal_mbuf_default_mempool_ops`` shall be replaced by
34   ``rte_mbuf_best_mempool_ops``.
35   The following function is now redundant and it is target to be deprecated
36   in 18.05:
37
38   - ``rte_eal_mbuf_default_mempool_ops``
39
40 * mempool: several API and ABI changes are planned in v18.05.
41
42   The following changes are planned:
43
44   - addition of new op to allocate contiguous
45     block of objects if underlying driver supports it.
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 * ethdev: a new Tx and Rx offload API was introduced on 17.11.
53   In the new API, offloads are divided into per-port and per-queue offloads.
54   Offloads are disabled by default and enabled per application request.
55
56   The old ethdev - drivers offload interface will be deprecated on 18.05.
57   This includes:
58   - removal of the conversion in ethdev from new offloading API to old API for drivers.
59
60   In later releases the old offloading API will be deprecated, which will include:
61   - removal of ``ETH_TXQ_FLAGS_NO*`` flags.
62   - removal of ``txq_flags`` field from ``rte_eth_txconf`` struct.
63   - removal of the offloads bit-field from ``rte_eth_rxmode`` struct.
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: A new rss level field planned in 18.05.
74   The new API add rss_level field to ``rte_eth_rss_conf`` to enable a choice
75   of RSS hash calculation on outer or inner header of tunneled packet.
76
77 * ethdev: A work is being planned for 18.05 to expose VF port representors
78   as a mean to perform control and data path operation on the different VFs.
79   As VF representor is an ethdev port, new fields are needed in order to map
80   between the VF representor and the VF or the parent PF. Those new fields
81   are to be included in ``rte_eth_dev_info`` struct.
82
83 * i40e: The default flexible payload configuration which extracts the first 16
84   bytes of the payload for RSS will be deprecated starting from 18.02. If
85   required the previous behavior can be configured using existing flow
86   director APIs. There is no ABI/API break. This change will just remove a
87   global configuration setting and require explicit configuration.
88
89 * pdump: As we changed to use generic IPC, some changes in APIs and structure
90   are expected in subsequent release.
91
92   - ``rte_pdump_set_socket_dir`` will be removed;
93   - The parameter, ``path``, of ``rte_pdump_init`` will be removed;
94   - The enum ``rte_pdump_socktype`` will be removed.