Andrew Gallatin wrote: > Hi, > > My NIC doesn't do most of the critical path counters in > mac_driver_stat, so I need to maintain them in the driver. > > When doing LSO, is it acceptable for MAC_STAT_OPACKETS to be > incremented by 1 for an LSO send, or must it be incremented by the > number of frames sent on the wire? > > Similarly, may MAC_STAT_OBYTES just reflect what was sent to the NIC, > or must it reflect what was sent on the wire? > The MIB says: "The total number of octets transmitted out of the interface, including framing characters", so trying to stay true to what is sent out would probably be a good thing.
For opacket the MIB is a bit vague: "The total number of packets that higher-level protocols requested be transmitted". However, I would hope the count would increment for each segment that is sent out, otherwise comparing snoop output with the stats would be quite interesting. Anders _______________________________________________ networking-discuss mailing list [email protected]
