af_xdp: fix netns configuration 59/38059/3
authorBenoît Ganne <bganne@cisco.com>
Fri, 27 Jan 2023 10:37:59 +0000 (11:37 +0100)
committerDamjan Marion <dmarion@0xa5.net>
Mon, 6 Mar 2023 17:51:10 +0000 (17:51 +0000)
commit258aac905cd20f2a92ad2bd043770cf4ce4afc60
tree0a7c5696a6a9a22aa8302a74233f2fa1f8d0f3d7
parent634873c3ee2e1dcb045c453a4bd0b602447c3e1a
af_xdp: fix netns configuration

 - clib_open_netns() expects a NULL-terminated C-string
 - if no netns was given, we should not try to format it otherwise we'll
   get "(nil)" as netns name.

Type: fix

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