[ofa-general] [PATCH RFC] RDMA/cxgb3: Add protocol statistics to iw_cxgb3.

Roland Dreier roland.list at gmail.com
Mon Jun 16 18:34:08 PDT 2008


> I take this back.  These stats are a subset of the IP and TCP MIBs.

> I'd like to get something out in 2.6.27/ofed-1.4 for support reasons without
> opening the SNMP can of worms.  So I'll define a standard struct
> iw_protocol_counters and include the chelsio stats.  Other providers can
> expand if they care.   I'll also add the core stuff to have sysfs.c create
> the attribute files, one per stat and query the device to get the values via
> a device get_iw_stats() call like you propose.  The stats can live in
> /sys/class/infiniband/$device/protocol_counters/iwarp/*.

> How does that sound?

Sounds great except I'm not thrilled about the exact sysfs pathname...
I guess iWARP devices always have one port (??)  (physically multiport
NICs show up as multiple devices?  don't have good access to my system
with a two-port rnic to check)  The only point of all that being that
$device/ports/$port may not make total sense.

But still why not follow the convention we already have and just use

$device/ports/1/counters/

and use the tcp and ip mib names rather than ib pma names.

 - R.



More information about the general mailing list