On 11/30/26 11:10 PM, Stefan Metzmacher wrote:
> The enable_rdma devlink param controls whether the RDMA auxiliary
> device (irdma) is instantiated, but only in driverinit cmode. Changing
> it requires a devlink reload, which also unregisters the netdev, so
> its addresses, routes and other configuration are lost.
>
> Add the runtime cmode, which only unplugs or plugs the RDMA auxiliary
> device and leaves the netdev alone:
>
> devlink dev param set pci/0000:03:00.0 name enable_rdma \
> value false cmode runtime
>
> Unlike setting both enable_roce and enable_iwarp to false, the
> selected RDMA protocol is kept, and the auxiliary device stays
> unplugged after a reset or when switching between RoCEv2 and iWARP,
> as ice_plug_aux_dev() checks the new ICE_FLAG_RDMA_RUNTIME_DIS.
>
> Enabling it at runtime requires it to be enabled in driverinit cmode
> and enable_roce or enable_iwarp to be set, and a reload resets it to
> the driverinit value, like for mlx5.
Looks nice, thank you. Given your test scenario from cover letter,
I think it "works enough" for ice to consider a pure improvement :)
Acked-by: Przemek Kitszel <prze…@intel.com>
(please carry the tag if you happen to change things slightly due
to other feedback, like flag rename, additional locking dance, etc)
sidenote: you could keep CC list from the commit msg under "---"
section to achieve the same w/o inflating the (merged) commit msg