net/nfp: fix multi-process PF probing
authorHeinrich Kuhn <heinrich.kuhn@netronome.com>
Wed, 9 Jun 2021 14:08:14 +0000 (16:08 +0200)
committerAndrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru>
Fri, 2 Jul 2021 17:03:03 +0000 (19:03 +0200)
commit0b3c74b9f7f6a935af257f7be590323694e23873
tree6d444bde86b4e7c14902ff0e2b2ac95b0f4ccd76
parent82caefd8d76508e4728a70b89aacb9b81710adb0
net/nfp: fix multi-process PF probing

This patch creates a new function for handling PF probing of a secondary
process. A CPP handle is obtained for the CPP bridge service and the
service itself is also registered during secondary process
initialization. DPDK services aren't shared between processes so it is
not enough to only have the primary register the service if it is also
needed in a secondary process. This implies that both the primary and
secondary will have their own copy of the bridge service.

Fixes: 5e15e799d697 ("net/nfp: create separate entity for PF device")
Cc: stable@dpdk.org
Signed-off-by: Heinrich Kuhn <heinrich.kuhn@netronome.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
drivers/net/nfp/nfp_net.c