Go to file
Jens Freimann 8b90e43581 net/virtio: set offload flag for jumbo frames
Port configuration fails because offload flags don't match the expected
value when max-pkt-len is set to a value that should enable receive port
offloading but doesn't.

The .dev_infos_get callback can be called before the configure callback.
At that time we don't know the maximum packet size yet because it is
only set up when ports are started. So in virtio_dev_info_get() just
always set the jumbo packet offload flag.

Check the maximum packet length at device configure time, because then we
have access to the max-pkt-len value provided by the user. If the
max-pkt-len exceeds the maximum MTU supported by the device we remove
the VIRTIO_NET_F_MTU flag from requested features.

Fixes: a4996bd89c ("ethdev: new Rx/Tx offloads API")
Cc: stable@dpdk.org

Signed-off-by: Jens Freimann <jfreimann@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2019-02-08 19:27:07 +01:00
app app/testpmd: add TOS and TTL fields to VXLAN encapsulation 2019-02-07 12:59:17 +01:00
buildtools config: add static linkage of mlx dependency 2019-01-14 17:44:29 +01:00
config build: fix meson check for binutils 2.30 2019-01-17 19:19:57 +01:00
devtools devtools: fix build check for whether meson has run 2019-01-14 12:24:57 +01:00
doc net/sfc: support Rx packet types get in secondary process 2019-02-07 16:06:30 +01:00
drivers net/virtio: set offload flag for jumbo frames 2019-02-08 19:27:07 +01:00
examples examples/fips_validation: fix physical address 2019-01-22 17:32:20 +01:00
kernel kni: fix build for igb_ndo_bridge_setlink in Linux 5.0 2019-01-23 22:34:41 +01:00
lib hash: replace license text with SPDX tag for Toeplitz algo 2019-02-06 22:08:04 +01:00
license fix dpdk.org URLs 2018-11-26 20:19:24 +01:00
mk config: add static linkage of mlx dependency 2019-01-14 17:44:29 +01:00
test test: check zero socket memory as valid 2019-01-26 19:24:04 +01:00
usertools usertools: make telemetry script executable 2019-01-28 01:47:46 +01: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: claim co-maintainership of LPM library 2019-02-06 11:45:17 +01:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt config: gather options for dlopen mlx dependency 2019-01-14 17:44:29 +01:00
meson.build version: 19.05-rc0 2019-02-06 11:20:06 +01: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