Ethtool: Add Altera Triple Speed Ethernet Support
Subsystems (3)
PATCH v2 1/1 Ethtool: Add Altera Triple Speed Ethernet Support
This patch adds Altera Triple Speed Ethernet support for dumping formatted register output from Ethtool.
Signed-off-by Vince Bridgers <[email protected]>
---
V2: Add version check per review comments
--- Makefile.am | 2 +- ethtool.c | 1 + internal.h | 4 +++ tse.c | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+), 1 deletion(-) create mode 100644 tse.c
Makefile.am +1 -1
@@ -13,7 +13,7 @@ ethtool_SOURCES += \ fec_8xx.c ibm_emac.c ixgb.c ixgbe.c natsemi.c \ pcnet32.c realtek.c tg3.c marvell.c vioc.c \ smsc911x.c at76c50x-usb.c sfc.c stmmac.c \ - sfpid.c sfpdiag.c ixgbevf.c + sfpid.c sfpdiag.c ixgbevf.c tse.c endif TESTS = test-cmdline test-features
ethtool.c +1 -0
@@ -910,6 +910,7 @@ static const struct { { "st_mac100", st_mac100_dump_regs }, { "st_gmac", st_gmac_dump_regs }, { "et131x", et131x_dump_regs }, + { "altera_tse", altera_tse_dump_regs }, #endif };
internal.h +4 -0
@@ -243,6 +243,10 @@ int st_gmac_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs);/* Et131x ethernet controller */ int et131x_dump_regs (struct ethtool_drvinfo *info,struct ethtool_regs *regs); +/* Altera TSE 10/100/1000 ethernet controller */ +int altera_tse_dump_regs (struct ethtool_drvinfo *info, +struct ethtool_regs *regs); +/* Rx flow classification */ int rxclass_parse_ruleopts (struct cmd_context *ctx,struct ethtool_rx_flow_spec *fsp);
tse.c new file +112 -0
112 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Quoted 7 lines · Vince Bridgers
This patch adds Altera Triple Speed Ethernet support for dumping formatted register output from Ethtool.
Signed-off-by Vince Bridgers <[email protected]>---
V2: Add version check per review comments
---
<snip>
Please ignore V2, there's a minor checkpatch issue I missed. V3 is forthcoming.
Sorry for the extra traffic.
Vince