nfp: xsk: add an array of xsk buffer pools to each data path
authorNiklas Söderlund <niklas.soderlund@corigine.com>
Fri, 4 Mar 2022 10:22:12 +0000 (11:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 13:06:12 +0000 (13:06 +0000)
commit543bd14fc8f64e44437780aaecd0911c718c471a
treec61db2fffec50edac72e15cbe1eb33b8223a4375
parent58eb43635344d5a99ab1316d0e66621fb6a5efef
nfp: xsk: add an array of xsk buffer pools to each data path

Each data path needs an array of xsk pools to track if an xsk socket is
in use. Add this array and make sure it's handled correctly when the
data path is duplicated.

Signed-off-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net.h
drivers/net/ethernet/netronome/nfp/nfp_net_common.c