net/af_xdp: fix creating multiple instance
authorXiaolong Ye <xiaolong.ye@intel.com>
Fri, 19 Apr 2019 12:47:39 +0000 (13:47 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:55 +0000 (14:51 +0200)
commit1d630c95e89b53a8c8540de8c58cf7a5719abe55
tree7141565730314da95a451d54a5485c97ecac5545
parentc979b04e742d768cab708f9e50ee4233a5cf179c
net/af_xdp: fix creating multiple instance

Naming the buf_ring and umem memzone dynamically allows
to create multiple af_xdp vdevs.

Fixes: f1debd77efaf ("net/af_xdp: introduce AF_XDP PMD")

Reported-by: Markus Theil <markus.theil@tu-ilmenau.de>
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
drivers/net/af_xdp/rte_eth_af_xdp.c