On Mon Nov 30, 2026 at 1:59 PM GMT, Alexandre Courbot wrote:
> The return type of `dev_id` has a well-defined bit layout encoding
> the bus, device and function IDs of the PCI device. Add a `Bdf` bitfield
> defining that layout and make `dev_id` return it so users can benefit
> from it and are not tempted to define their own BDF type.
> 
> Also update the current two users of `dev_id`.
> 
> Signed-off-by: Alexandre Courbot <[email protected]>
> Acked-by: Danilo Krummrich <[email protected]>

Reviewed-by: Gary Guo <[email protected]>

> ---
>  drivers/gpu/nova-core/gsp/fw/commands.rs |  2 +-
>  rust/kernel/pci.rs                       | 34 
> ++++++++++++++++++++++++++++++--
>  samples/rust/rust_driver_sriov/pf.rs     |  2 +-
>  3 files changed, 34 insertions(+), 4 deletions(-)

Reply via email to