RE: [RFC v1 for verbs counters]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > Regarding counters width  - After giving it a lot of thought. I believe
> > that 64bit counters are the best
> > decision.
> 
> I agree - unless we're talking about thousands of counters, smaller ones don't seem worth the additional complexity to
> save a few bytes.
> 
> > a) Allowing more than one size of counters will make the memory
> > allocation and data parsing harder.
> >
> > b) 64bit is exactly the right size.

I agree on this size.

> 
> Well, I wouldn't go this far.
> 
> Is there a need to indicate if hardware doesn't actually support 64-bits?

I'm guessing that most, if not all, HW support 64-bits counters.
If not then the driver can overcome this by storing the previously read value and
reporting a 64-bit value (aggregate). This is cumbersome for the driver but simplifies
the common implementation.

Ram






--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux