Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add handling for DA port type #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/core/network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ struct ethtool_value
#define PORT_MII 0x02
#define PORT_FIBRE 0x03
#define PORT_BNC 0x04
#define PORT_DA 0x05

/* Which tranceiver to use. */
#define XCVR_INTERNAL 0x00
Expand Down Expand Up @@ -635,6 +636,9 @@ static void updateCapabilities(hwNode & interface, u32 supported, u32 supported2
case PORT_FIBRE:
interface.setConfig("port", "fibre");
break;
case PORT_DA:
interface.setConfig("port", "direct attach");
break;
}
interface.setConfig("autonegotiation", (autoneg == AUTONEG_DISABLE) ? "off" : "on");
}
Expand Down