af_xdp: fix stale rx/tx pointers in xsk objects 95/33595/5
authorBenoît Ganne <bganne@cisco.com>
Wed, 25 Aug 2021 14:53:22 +0000 (16:53 +0200)
committerDamjan Marion <dmarion@me.com>
Thu, 26 Aug 2021 14:44:39 +0000 (14:44 +0000)
xsk objects keep pointers to the rx and tx objects. If we re-allocate
the rx and tx vectors after initializing the associated xsk object, the
pointers in the xsk object will be staled.
To avoid this, we allocate the vectors to the max expected size instead
of growing them.

Type: fix

Change-Id: If30433a28c186787d66c12dbab34bf210c95b519
Signed-off-by: Benoît Ganne <bganne@cisco.com>

No differences found