# Re: \[PATCH net-next 3/6\] mlxsw: Extend MRSR pack() function to support new commands

- From: Simon Horman \<hidden\>
- Date: 2023-03-26 14:02:41 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/03/11256212
- Thread: https://ratatoskr.run/netdev/2023/03/11255822/t.md

```text
On Wed, Mar 22, 2023 at 05:49:32PM +0100, Petr Machata wrote:
> From: Amit Cohen <redacted>
> 
> Currently mlxsw_reg_mrsr_pack() always sets 'command=1'. As preparation for
> support of new reset flow, pass the command as an argument to the
> function and add an enum for this field.
> 
> For now, always pass 'command=1' to the pack() function.
> 
> Signed-off-by: Amit Cohen <redacted>
> Reviewed-by: Petr Machata <petrm@nvidia.com>
> Reviewed-by: Ido Schimmel <idosch@nvidia.com>
> Signed-off-by: Petr Machata <petrm@nvidia.com>

Reviewed-by: Simon Horman <redacted>

```
