# RE: \[PATCH net-next v4 1/6\] devlink: pass extack through to devlink\_param::get()

- From: Loktionov, Aleksandr \<hidden\>
- Date: 2025-11-18 07:58:50 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/11/8534893
- Thread: https://ratatoskr.run/netdev/2025/11/8534876/t.md

```text


> -----Original Message-----
> From: Daniel Zahka <daniel.zahka@gmail.com>
> Sent: Tuesday, November 18, 2025 1:24 AM
> To: Jiri Pirko <jiri@resnulli.us>; David S. Miller
> [ref]; Eric Dumazet [ref]; Jakub
> Kicinski [ref]; Paolo Abeni [ref]; Simon
> Horman [ref]; Jonathan Corbet [ref]; Srujana
> Challa [ref]; Bharat Bhushan [ref];
> Herbert Xu [ref]; Brett Creeley
> [ref]; Andrew Lunn [ref]; Michael
> Chan [ref]; Pavan Chebbi
> [ref]; Nguyen, Anthony L
> [ref]; Kitszel, Przemyslaw
> [ref]; Goutham, Sunil Kovvuri
> [ref]; Linu Cherian [ref]; Geetha
> sowjanya [ref]; Jerin Jacob [ref];
> hariprasad [ref]; Subbaraya Sundeep
> [ref]; Tariq Toukan [ref]; Saeed
> Mahameed [ref]; Leon Romanovsky [ref]; Mark
> Bloch [ref]; Ido Schimmel [ref]; Petr
> Machata [ref]; Manish Chopra [ref];
> Maxime Coquelin [ref]; Alexandre Torgue
> [ref]; Siddharth Vadapalli <s-
> vadapalli@ti.com>; Roger Quadros [ref]; Loic Poulain
> [ref]; Sergey Ryazanov
> [ref]; Johannes Berg [ref];
> Vladimir Oltean [ref]; Michal Swiatkowski
> [ref]; Loktionov, Aleksandr
> [ref]; Ertman, David M
> [ref]; Vlad Dumitrescu [ref];
> Russell King (Oracle) [ref]; Alexander Sverdlin
> [ref]; Lorenzo Bianconi [ref]
> Cc: <redacted>; <redacted>; linux-
> rdma@vger.kernel.org
> Subject: [PATCH net-next v4 1/6] devlink: pass extack through to
> devlink_param::get()
> 
> Allow devlink_param::get() handlers to report error messages via
> extack. This function is called in a few different contexts, but not
> all of them will have an valid extack to use.
> 
> When devlink_param::get() is called from param_get_doit or
> param_get_dumpit contexts, pass the extack through so that drivers can
> report errors when retrieving param values. devlink_param::get() is
> called from the context of devlink_param_notify(), pass NULL in for
> the extack.
> 
> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
> Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
> ---
> 
> Notes:
>     v3:
>     - fix warnings about undocumented param in intel ice driver
> 

...

> 
> --
> 2.47.3

Reviewed-by: Aleksandr Loktionov <redacted>

```
