PCI core API pci_dev_id() can be used to get the BDF number for a pci device. We don't need to compose it manually. Use pci_dev_id() to simplify the code a little bit. Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Reviewed-by: Shay Agroskin <shayagr@amazon.com> Link: https://lore.kernel.org/r/20230815024248.3519068-1-zhangjialin11@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
|---|---|---|
| .. | ||
| Makefile | ||
| ena_admin_defs.h | ||
| ena_com.c | ||
| ena_com.h | ||
| ena_common_defs.h | ||
| ena_eth_com.c | ||
| ena_eth_com.h | ||
| ena_eth_io_defs.h | ||
| ena_ethtool.c | ||
| ena_netdev.c | ||
| ena_netdev.h | ||
| ena_pci_id_tbl.h | ||
| ena_regs_defs.h | ||