Skip to content

Commit

Permalink
hssi: suggest hssi{loopback,stats} when eth interface is absent
Browse files Browse the repository at this point in the history
While the D5005 FPGA card employs a separate kernel driver (s10hssi) to
configure loopback and provide statistics via a network device, newer
FPGA cards expose a UIO device used with hssiloopback and hssistats.

Closes: https://hsdes.intel.com/appstore/article/#/22019839240
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
  • Loading branch information
pcolberg committed Apr 11, 2024
1 parent 3ec53b0 commit afb66cd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions samples/hssi/hssi_100g_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ class hssi_100g_cmd : public hssi_cmd

if (eth_ifc == "") {
std::cout << "No eth interface, so not "
"honoring --eth-loopback." << std::endl;
"honoring --eth-loopback. "
"Try using the hssiloopback command instead."
<< std::endl;
} else {
if (eth_loopback_ == "on")
enable_eth_loopback(eth_ifc, true);
Expand Down Expand Up @@ -506,7 +508,9 @@ class hssi_100g_cmd : public hssi_cmd

if (eth_ifc == "") {
std::cout << "No eth interface, so not "
"showing stats." << std::endl;
"showing stats. "
"Try using the hssistats command instead."
<< std::endl;
} else {
show_eth_stats(eth_ifc);

Expand Down
12 changes: 8 additions & 4 deletions samples/hssi/hssi_10g_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ class hssi_10g_cmd : public hssi_cmd
<< std::endl;

if (eth_ifc == "") {
std::cout << "No eth interface, so not "
"honoring --eth-loopback." << std::endl;
std::cout << "No eth interface, so not "
"honoring --eth-loopback. "
"Try using the hssiloopback command instead."
<< std::endl;
} else {
if (eth_loopback_ == "on")
enable_eth_loopback(eth_ifc, true);
Expand Down Expand Up @@ -306,8 +308,10 @@ class hssi_10g_cmd : public hssi_cmd
}

if (eth_ifc == "") {
std::cout << "No eth interface, so not "
"showing stats." << std::endl;
std::cout << "No eth interface, so not "
"showing stats. "
"Try using the hssistats command instead."
<< std::endl;
} else {
show_eth_stats(eth_ifc);

Expand Down

0 comments on commit afb66cd

Please sign in to comment.