Wed, Apr 17, 2024 at 04:20:25PM CEST, [email protected] wrote:
>From: Piotr Raczynski <[email protected]>
[...]
>+/**
>+ * ice_allocate_sf - Allocate devlink and return SF structure pointer
>+ * @dev: the device to allocate for
>+ *
>+ * Allocate a devlink instance for SF.
>+ *
>+ * Return: void pointer to allocated memory
>+ */
>+struct ice_sf_priv *ice_allocate_sf(struct device *dev)
This is devlink instance for SF auxdev. Please make sure it is properly
linked with the devlink port instance using devl_port_fn_devlink_set()
See mlx5 implementation for inspiration.
>+{
>+ return ice_devlink_alloc(dev, sizeof(struct ice_sf_priv),
>+ &ice_sf_devlink_ops);
>+}
>+
[...]