numam-dpdk/drivers
Hyong Youb Kim 59e657aa0b net/enic: add missing Tx offload flags
The following commit has added a number of existing offload flags such
as PKT_TX_IPV4 and PKT_TX_IPV6 to PKT_TX_OFFLOAD_MASK defined in
rte_mbuf.h. That change breaks the enic driver's Tx prepare handler.

commit ef28cfa73822 ("mbuf: fix Tx offload mask")

The enic driver keeps the supported offload flags in a local variable
(tx_offload_mask), which is strictly a subset of
PKT_TX_OFFLOAD_MASK. This variable is then used to compute the
unsupported flags (tx_offload_notsup_mask), and the Tx prepare handler
(tx_pkt_prepare) uses it to reject packets with unsupported offload
flags.

As is, tx_offload_notsup_mask ends up containing flags like
PKT_TX_IPV4 that are actually supported by the driver, which then
breaks any application that uses checksum offloads and calls the Tx
prepare handler. So add the flags to tx_offload_mask that the driver
supports but were missing in PKT_TX_OFFLOAD_MASK.

Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
2018-10-26 22:14:05 +02:00
..
baseband baseband/null: add in meson build 2018-09-18 22:53:35 +02:00
bus bus/vdev: fix multi-process IPC buffer leak on scan 2018-10-25 10:28:13 +02:00
common eal: add macro for attribute weak 2018-10-25 02:11:23 +02:00
compress common/qat: support GEN3 devices 2018-10-17 12:23:40 +02:00
crypto crypto/dpaa2_sec: support PDCP offload 2018-10-24 15:13:02 +02:00
event use registered name for OCTEON TX references 2018-10-26 14:16:05 +02:00
mempool use registered name for OCTEON TX references 2018-10-26 14:16:05 +02:00
net net/enic: add missing Tx offload flags 2018-10-26 22:14:05 +02:00
raw raw/skeleton: fix memory leak on test failure 2018-10-25 00:59:28 +02:00
Makefile drivers: add common as dependency for bus 2018-10-16 14:54:25 +02:00
meson.build mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00