Skip to content

Commit

Permalink
Merge branch 'master' into enabling_exact_match_test_case-dpdk
Browse files Browse the repository at this point in the history
  • Loading branch information
gab-arrobo authored Mar 13, 2024
2 parents 264a517 + a7a5fdb commit cb2fb1a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/drivers/pmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ static CommandResponse find_dpdk_port_by_id(dpdk_port_t port_id,
if (!rte_eth_dev_is_valid_port(port_id)) {
return CommandFailure(ENODEV, "Port id %d is not available", port_id);
}
if (rte_eth_dev_socket_id(port_id) < 0) {
return CommandFailure(ENODEV, "Port id %d is not attached", port_id);
}
if (rte_eth_dev_socket_id(port_id) >= 0 &&
rte_eth_dev_socket_id(port_id) != (int)rte_socket_id())
LOG(WARNING) << "DPDK port_id " << port_id
<< " is on remote NUMA node to polling thread.\n\t"
"Performance will not be optimal.";

*ret_port_id = port_id;
return CommandSuccess();
Expand Down

0 comments on commit cb2fb1a

Please sign in to comment.