stratum/fabric-tna

Make stratum_bfrt auto-detect tofino-model

Closed this issue · 1 comments

Issue with register reset annotations and tofino-model:

  • It takes ~70ms to reset 65k register cells on HW
    • Better to spin up separate thread
  • Add --testing-tofino-model (default false) to:
    • Disable register reset
    • Use longer timeouts for counter syncs
  • OR: Use pal API to get type of device (model or asic)
    • include/tofino/bf_pal/pltfm_intf.h
    • bf_status_t bf_pal_pltfm_type_get(bf_dev_id_t dev_id, bool *is_sw_model);