Go to file
Pablo de Lara ce5e6bf69e cryptodev: fix ABI breakage
In 17.08, the crypto operation was restructured,
and some reserved bytes (5) were added  to have the mempool
pointer aligned to 64 bits, since the structure is expected
to be aligned to 64 bits, allowing future additions with no
ABI breakage needed.

In 18.05, a new 2-byte field was added, so the reserved bytes
were reduced to 3. However, this field was added after the first 3 bytes
of the structure, causing it to be placed in an offset of 4 bytes,
and therefore, forcing the mempool pointer to be placed after 16 bytes,
instead of a 8 bytes, causing unintentionally the ABI breakage.

This commit fixes the breakage, by swapping the reserved bytes
and the private_data_offset field, so the latter is aligned to 2 bytes
and the offset of the mempool pointer returns to its original offset,
8 bytes.

Fixes: 54c8368466 ("cryptodev: set private data for session-less mode")
Cc: stable@dpdk.org

Reported-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
2018-06-28 01:25:33 +02:00
app app/testpmd: fix crash when attaching a device 2018-06-14 19:27:50 +02:00
buildtools use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
config crypto/qat: move to dynamic logging for data-path trace 2018-06-28 01:25:33 +02:00
devtools devtools: fix ARM builds test with meson 2018-06-14 17:46:02 +02:00
doc doc: document QAT debug options 2018-06-28 01:25:33 +02:00
drivers crypto/qat: move to dynamic logging for data-path trace 2018-06-28 01:25:33 +02:00
examples examples/performance-thread: convert license to SPDX 2018-05-25 12:55:11 +02:00
kernel igb_uio: fail and log if kernel lock down is enabled 2018-06-27 17:02:54 +02:00
lib cryptodev: fix ABI breakage 2018-06-28 01:25:33 +02:00
license license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
mk net/ifc: make driver name consistent 2018-06-14 19:27:50 +02:00
pkg version: 18.05.0 2018-05-30 22:55:57 +02:00
test test/eventdev: add multi-ports test 2018-06-19 00:06:34 +02:00
usertools usertools: add Cavium TIM as an event device 2018-04-16 11:11:06 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore doc: add compression driver and ISA-L PMD guides 2018-05-10 17:46:20 +01:00
GNUmakefile move kernel modules directories 2018-03-21 23:04:21 +01:00
MAINTAINERS maintainers: update for tep_termination example 2018-06-22 17:31:05 +02:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt net/mvpp2: add to meson build 2018-04-19 14:10:44 +02:00
meson.build version: 18.08-rc0 2018-06-01 12:58:36 +02:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org