af_xdp: use desc offset on rx 84/32384/6
authorBenoît Ganne <bganne@cisco.com>
Wed, 19 May 2021 14:41:03 +0000 (16:41 +0200)
committerDamjan Marion <dmarion@me.com>
Fri, 21 May 2021 21:07:02 +0000 (21:07 +0000)
commit1a06e53341224bb08cff2fb6d218415c50f947d3
tree9402b008b0ec37c8bfcd4b27a080211e1e4d3153
parent73b71225b1f6bdd65923ac8ac786ed226d57228e
af_xdp: use desc offset on rx

Instead of pre-programming the data offset on rx, use offset passed in
the descriptor. This is more robust and future-proof.

Type: fix

Change-Id: I2bd910d92b8b03d17be5be85a24108be711dc7b9
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/af_xdp/device.c
src/plugins/af_xdp/input.c