# Re: \[PATCH net-next V2 1/7\] devlink: Refactor resource functions to be generic

- From: Jiri Pirko \<jiri@resnulli.us\>
- Date: 2026-02-06 09:19:36 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/02/3404570
- Thread: https://ratatoskr.run/netdev/2026/02/3403335/t.md

```text
Thu, Feb 05, 2026 at 03:28:27PM +0100, tariqt@nvidia.com wrote:
>From: Or Har-Toov <redacted>
>
>Currently the resource functions take devlink pointer as parameter
>and take the resource list from there.
>Allows the resource functions to work with other resource lists

s/Allows/Allow/ ?


>that will be added in next patches and not only with the devlink's
>resource list.
>
>Signed-off-by: Or Har-Toov <redacted>
>Reviewed-by: Shay Drori <redacted>
>Signed-off-by: Tariq Toukan <tariqt@nvidia.com>

Otherwise, the code looks fine to me:

Reviewed-by: Jiri Pirko <redacted>
```
