linux/drivers/net/ethernet/amazon/ena
Jialin Zhang a5e5b2cd47 net: ena: Use pci_dev_id() to simplify the code
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>
2023-08-17 19:13:09 -07:00
..
Makefile
ena_admin_defs.h net: ena: Add dynamic recycling mechanism for rx buffers 2023-06-15 22:45:47 -07:00
ena_com.c net: ena: fix shift-out-of-bounds in exponential backoff 2023-07-12 15:57:57 -07:00
ena_com.h net: ena: Add capabilities field with support for ENI stats capability 2022-01-07 19:25:50 -08:00
ena_common_defs.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
ena_eth_com.c net: ena: Improve error logging in driver 2021-06-08 14:41:09 -07:00
ena_eth_com.h net: ena: Add support to changing tx_push_buf_len 2023-03-27 19:49:59 -07:00
ena_eth_io_defs.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
ena_ethtool.c net: ena: Advertise TX push support 2023-03-27 19:49:59 -07:00
ena_netdev.c net: ena: Use pci_dev_id() to simplify the code 2023-08-17 19:13:09 -07:00
ena_netdev.h eth: add missing xdp.h includes in drivers 2023-08-03 08:38:07 -07:00
ena_pci_id_tbl.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00
ena_regs_defs.h net: ena: Change license into format to SPDX in all files 2020-09-21 13:54:22 -07:00