]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r241401, r241416.
authornp <np@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 15 Oct 2012 06:48:50 +0000 (06:48 +0000)
committernp <np@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 15 Oct 2012 06:48:50 +0000 (06:48 +0000)
commitd5733bc1c2d9cd28d2c9b2a10c2c1e59070fffc1
tree9ccb195373f1eb053524ef1853f03afc8316c0a7
parent71f3765593146013ec9aacbbdff033c6e988bc05
MFC r241401, r241416.

r241401:
Add an "i2c" subcommand to cxgbetool.  You can use this to read
information from the transceivers connected to the ports of a
cxgbe(4) based card.

# cxgbetool t4nex0 i2c <port_id> <dev_addr> <addr> [<count>]

For example:
# cxgbetool t4nex0 i2c 0 0xa0 3
0x10 [16]

(As per SFF-8472 the SFP+ module is at 0xa0 and bit 4 in the value at
address 3 indicates it's a 10Gbase-SR module, which it is.)

r241416:
Add a "clearstats" subcommand to cxgbetool that lets you clear the
MAC statistics for any port.

For example:
# cxgbetool t4nex0 clearstats 0

git-svn-id: svn://svn.freebsd.org/base/stable/9@241574 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
tools/tools/cxgbetool/cxgbetool.c