Re: [RFC net-next 04/10] devlink: always check if the devlink instance is registered

Jakub Kicinski
2023-01-04T02:50:49Z

On Tue, 3 Jan 2023 13:26:30 +0100 Jiri Pirko wrote:
> >+bool devl_is_alive(struct devlink *devlink)
> >+{
> >+ return xa_get_mark(&devlinks, devlink->index, DEVLINK_REGISTERED);
> >+}
> >+EXPORT_SYMBOL_GPL(devl_is_alive);
>
> Why is this exported? Drivers should not use this, as you said.

I'll make it a static inline in the internal header.