numam-dpdk/drivers/net/virtio
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
..
virtio_user net/virtio-user: fix used ring in cvq handling 2019-01-24 10:08:31 +01:00
Makefile mk: add experimental tag check 2018-01-29 23:35:29 +01:00
meson.build net/virtio: add to meson build 2018-03-12 16:29:27 +01:00
rte_pmd_virtio_version.map
virtio_ethdev.c net/virtio: set offload flag for jumbo frames 2019-02-08 19:27:07 +01:00
virtio_ethdev.h net/virtio: support platform memory ordering 2019-01-14 17:44:29 +01:00
virtio_logs.h net/virtio: implement dynamic logging 2018-01-16 18:47:49 +01:00
virtio_pci.c net/virtio: fix unchecked return value 2018-11-14 00:35:53 +01:00
virtio_pci.h net/virtio: support platform memory ordering 2019-01-14 17:44:29 +01:00
virtio_ring.h net/virtio: vring init for packed queues 2018-12-21 16:22:40 +01:00
virtio_rxtx_simple_neon.c ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
virtio_rxtx_simple_sse.c ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
virtio_rxtx_simple.c eal: add macro for attribute weak 2018-10-25 02:11:23 +02:00
virtio_rxtx_simple.h net/virtio: remove simple Tx path 2018-07-04 17:03:48 +02:00
virtio_rxtx.c net/virtio: add missing read barrier for packed dequeue 2019-02-08 19:27:07 +01:00
virtio_rxtx.h net/virtio: fix resuming port with Rx vector path 2018-02-13 18:57:59 +01:00
virtio_user_ethdev.c net/virtio-user: fix control VQ 2019-01-24 10:08:31 +01:00
virtqueue.c net/virtio: implement Rx path for packed queues 2018-12-21 16:22:40 +01:00
virtqueue.h net/virtio: fix control VQ 2019-01-24 10:08:31 +01:00