But I feel like we have opened a can of worms: we also need to address the case of counters / meters, for which the index field should probably be changed to bytes as well. It makes the API less convenient to use IMO, but it makes sense in a way since PSA typically uses bit<W> values to index counters in the datapath.
But I feel like we have opened a can of worms: we also need to address the case of counters / meters, for which the
index
field should probably be changed tobytes
as well. It makes the API less convenient to use IMO, but it makes sense in a way since PSA typically usesbit<W>
values to index counters in the datapath.Originally posted by @antoninbas in https://github.com/p4lang/p4runtime/issues/329#issuecomment-761174829