numam-dpdk/drivers/net/enic
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
..
base net/enic: fix counter action 2018-10-18 10:24:39 +02:00
enic_clsf.c net/enic: avoid strict aliasing warnings 2018-03-30 14:08:43 +02:00
enic_compat.h net/enic: add the simple version of Tx handler 2018-07-03 01:54:23 +02:00
enic_ethdev.c net/enic: fix supported packet types 2018-10-26 22:14:05 +02:00
enic_flow.c net/enic: fix counter action 2018-10-18 10:24:39 +02:00
enic_main.c net/enic: add missing Tx offload flags 2018-10-26 22:14:05 +02:00
enic_res.c net/enic: add missing Tx offload flags 2018-10-26 22:14:05 +02:00
enic_res.h net/enic: add simple Rx handler 2018-07-03 01:54:26 +02:00
enic_rxtx_common.h net/enic: move common Rx functions to a new header file 2018-10-11 18:53:49 +02:00
enic_rxtx_vec_avx2.c net/enic: add AVX2 based vectorized Rx handler 2018-10-11 18:53:49 +02:00
enic_rxtx.c net/enic: move common Rx functions to a new header file 2018-10-11 18:53:49 +02:00
enic.h net/enic: fix counter action 2018-10-18 10:24:39 +02:00
Makefile net/enic: add AVX2 based vectorized Rx handler 2018-10-11 18:53:49 +02:00
meson.build net/enic: add AVX2 based vectorized Rx handler 2018-10-11 18:53:49 +02:00
rte_pmd_enic_version.map enic: move to drivers/net/ 2015-05-22 16:05:52 +02:00