Add Rx offsets support for the ENA driver
authorMarcin Wojtas <mw@FreeBSD.org>
Wed, 18 Nov 2020 15:02:12 +0000 (15:02 +0000)
committerMarcin Wojtas <mw@FreeBSD.org>
Wed, 18 Nov 2020 15:02:12 +0000 (15:02 +0000)
commitc74443892c07717bae2304d51260557033775055
tree80b91a14e02edf5b6509a85dc481368f96af8fa9
parent9eb1615f33e9174fa5f1ca46954c35b3f026a98a
Add Rx offsets support for the ENA driver

For the first descriptor in a chain the data may start at an offset.
It is optional feature of some devices, so the driver must ack that
it supports it.

The data pointer of the mbuf is simply shifted by the given value.

Submitted by:   Maciej Bielski <mba@semihalf.com>
Submitted by:   Michal Krawczyk <mk@semihalf.com>
Obtained from:  Semihalf
Sponsored by:   Amazon, Inc
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D27116
sys/dev/ena/ena.c
sys/dev/ena/ena_datapath.c