Hi Jacob, On Mon, 26 Feb, 2024 11:54:49 -0800 Jacob Keller <jacob.e.keller@xxxxxxxxx> wrote: > On 2/23/2024 3:43 PM, Rahul Rameshbabu wrote: >> >> On Fri, 23 Feb, 2024 14:48:51 -0800 Jacob Keller <jacob.e.keller@xxxxxxxxx> >> wrote: >>> On 2/23/2024 2:21 PM, Rahul Rameshbabu wrote: >>>> Do you have any example of a case of skipping timestamp information that >>>> is not related to lack of delivery over time? I am wondering if this >>>> case is more like a hardware error or not. Or is it more like something >>>> along the lines of being busy/would impact line rate of timestamp >>>> information must be recorded? >>>> >>> >>> The main example for skipped is the event where all our slots are full >>> at point of timestamp request. >> >> This is what I was guessing as the main (if not only reason). For this >> specific reason, I think a general "busy" stats counter makes sense. >> mlx5 does not need this counter, but I can see a lot of other hw >> implementations needing this. (The skipped counter name obviously should >> be left only in the ice driver. Just felt "busy" was easy to understand >> for generalized counters.) > > Yea, I don't expect this would be required for all hardware but it seems > like a common approach if you have limited slots for Tx timestamps > available. > Sorry to bump this thread once more, but I had a question regarding the Intel driver in regards to this. Instead of having a busy case when all the slots are full, would it make sense to stop the netdev queues in this case, we actually do this in mlx5 (though keep in mind that we have a dedicated queue just for port/phy timestamping that we start/stop). Maybe in your case, you can have a mix of HW timestamping and non-HW timestamping in the same queue, which is why you have a busy case? Wanted to inquire about this before sending out a RFC v2. >> >> The reason why I prefer busy is that "skip" to me makes me think someone >> used SIOCSHWTSTAMP to filter which packets get timestamped which is very >> different from something like lack of resource availability. >> > > Busy is fine with me. > -- Thanks, Rahul Rameshbabu