Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ric Li <[email protected]>
  • Loading branch information
ricmli committed Nov 13, 2023
1 parent e0c469c commit 59bdd91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/nicctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ list() {

id_counter=0

for pci_bdf in $(dpdk-devbind.py -s | awk '/Network devices using (DPDK-compatible|kernel) driver/ {show=1; next} /^$/ {show=0} show && /drv=/ {print $1}'); do
for pci_bdf in $(dpdk-devbind.py -s | awk '/^Network devices/ {show=1; next} /^$/ {show=0} show && /drv=/ {print $1}'); do

driver=$(basename $(readlink /sys/bus/pci/devices/"${pci_bdf}"/driver) 2>/dev/null || echo "N/A")
driver=$(basename "$(readlink /sys/bus/pci/devices/"${pci_bdf}"/driver)" 2>/dev/null || echo "N/A")

numa_node=$(cat /sys/bus/pci/devices/"${pci_bdf}"/numa_node 2>/dev/null || echo "N/A")

iommu_group=$(basename $(readlink /sys/bus/pci/devices/"${pci_bdf}"/iommu_group) 2>/dev/null || echo "N/A")
iommu_group=$(basename "$(readlink /sys/bus/pci/devices/"${pci_bdf}"/iommu_group)" 2>/dev/null || echo "N/A")

interface_name=$(basename /sys/bus/pci/devices/"${pci_bdf}"/net/*)

Expand Down

0 comments on commit 59bdd91

Please sign in to comment.