bf0ac951639c2c4f76df50e65298e25292792713
[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 * Significant ABI changes are planned for struct rte_eth_dev to support up to
12   1024 queues per port. This change will be in release 2.2.
13   There is no backward compatibility planned from release 2.2.
14   All binaries will need to be rebuilt from release 2.2.
15
16 * ABI changes are planned for struct rte_intr_handle, struct rte_eth_conf
17   and struct eth_dev_ops to support interrupt mode feature from release 2.1.
18   Those changes may be enabled in the release 2.1 with CONFIG_RTE_NEXT_ABI.
19
20 * The EAL function rte_eal_pci_close_one is deprecated because renamed to
21   rte_eal_pci_detach.
22
23 * The Macros RTE_HASH_BUCKET_ENTRIES_MAX and RTE_HASH_KEY_LENGTH_MAX are
24   deprecated and will be removed with version 2.2.
25
26 * The function rte_jhash2 is deprecated and should be removed.
27
28 * Significant ABI changes are planned for struct rte_mbuf, struct rte_kni_mbuf,
29   and several ``PKT_RX_`` flags will be removed, to support unified packet type
30   from release 2.1. Those changes may be enabled in the upcoming release 2.1
31   with CONFIG_RTE_NEXT_ABI.
32
33 * librte_malloc library has been integrated into librte_eal. The 2.1 release
34   creates a dummy/empty malloc library to fulfill binaries with dynamic linking
35   dependencies on librte_malloc.so. Such dummy library will not be created from
36   release 2.2 so binaries will need to be rebuilt.
37
38 * The following fields have been deprecated in rte_eth_stats:
39   imissed, ibadcrc, ibadlen, imcasts, fdirmatch, fdirmiss,
40   tx_pause_xon, rx_pause_xon, tx_pause_xoff, rx_pause_xoff
41
42 * API for flow director filters has been replaced by rte_eth_dev_filter_ctrl.
43   Following old API is deprecated and will be removed with version 2.2 without
44   backward compatibility.
45   Functions: rte_eth_dev_fdir_*.
46   Structures: rte_fdir_*, rte_eth_fdir.
47   Enums: rte_l4type, rte_iptype.
48
49 * ABI changes are planned for struct rte_eth_fdir_flow_ext in order to support
50   flow director filtering in VF. The release 2.1 does not contain these ABI
51   changes, but release 2.2 will, and no backwards compatibility is planned.
52
53 * ABI change is planned to extend the SCTP flow's key input from release 2.1.
54   The change may be enabled in the release 2.1 with CONFIG_RTE_NEXT_ABI.
55
56 * ABI changes are planned for struct rte_eth_fdir_filter and
57   rte_eth_fdir_masks in order to support new flow director modes,
58   MAC VLAN and Cloud, on x550. The MAC VLAN mode means the MAC and
59   VLAN are monitored. The Cloud mode is for VxLAN and NVGRE, and
60   the tunnel type, TNI/VNI, inner MAC and inner VLAN are monitored.
61   The release 2.2 will contain these changes without backwards compatibility.
62
63 * librte_kni: Functions based on port id are deprecated for a long time and
64   should be removed (rte_kni_create, rte_kni_get_port_id and rte_kni_info_get).
65
66 * librte_pmd_ring: The deprecated functions rte_eth_ring_pair_create and
67   rte_eth_ring_pair_attach should be removed.
68
69 * ABI changes are planned for struct virtio_net in order to support vhost-user
70   multiple queues feature.
71   It should be integrated in release 2.2 without backward compatibility.
72
73 * The scheduler hierarchy structure (rte_sched_port_hierarchy) will change to
74   allow for a larger number of subport entries.
75   The number of available traffic_classes and queues may also change.
76   The mbuf structure element for sched hierarchy will also change from a single
77   32 bit to a 64 bit structure.
78
79 * The scheduler statistics structure will change to allow keeping track of
80   RED actions.
81
82 * librte_acl: The structure rte_acl_ipv4vlan_rule is deprecated and should
83   be removed as well as the associated functions rte_acl_ipv4vlan_add_rules
84   and rte_acl_ipv4vlan_build.
85
86 * librte_cfgfile: In order to allow for longer names and values,
87   the value of macros CFG_NAME_LEN and CFG_NAME_VAL will be increased.
88   Most likely, the new values will be 64 and 256, respectively.
89
90 * librte_port: Macros to access the packet meta-data stored within the
91   packet buffer will be adjusted to cover the packet mbuf structure as well,
92   as currently they are able to access any packet buffer location except the
93   packet mbuf structure.
94
95 * librte_table LPM: A new parameter to hold the table name will be added to
96   the LPM table parameter structure.
97
98 * librte_table: New functions for table entry bulk add/delete will be added
99   to the table operations structure.
100
101 * librte_table hash: Key mask parameter will be added to the hash table
102   parameter structure for 8-byte key and 16-byte key extendible bucket and
103   LRU tables.
104
105 * librte_pipeline: The prototype for the pipeline input port, output port
106   and table action handlers will be updated:
107   the pipeline parameter will be added, the packets mask parameter will be
108   either removed (for input port action handler) or made input-only.