Tue, May 23, 2017 at 05:12:45PM CEST, [email protected] wrote:
>Extend nfp_port to contain devlink_port structures. Register the
>ports to allow users inspecting device ports.
>
>Signed-off-by: Jakub Kicinski <[email protected]>
>Reviewed-by: Simon Horman <[email protected]>
>---
[...]
>+void nfp_devlink_port_unregister(struct nfp_port *port)
>+{
>+ /* Due to unpleasant lock ordering we may see the port go away before
>+ * we have fully probed.
Could you elaborate on this a bit more please?
>+ */
>+ if (port->dl_port.registered)
>+ devlink_port_unregister(&port->dl_port);
>+}