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)
commit4fe2f4c29e3672f38038d34f177a9ccbff18d9ad
tree6ba49d054ca502484db4f8f7cc1bc470df1bcd8d
parentad8b82d8394e7e711b2c1953b3c273aab4920355
af_xdp: fix stale rx/tx pointers in xsk objects

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>
src/plugins/af_xdp/device.c