Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Change PD function get_entry_count to use dev_tgt #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion p4c_bm/templates/pd/pd_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ p4_pd_status_t
${name}
(
p4_pd_sess_hdl_t sess_hdl,
uint8_t dev_id,
p4_pd_dev_target_t dev_tgt,
uint32_t *count
);

Expand Down
6 changes: 3 additions & 3 deletions p4c_bm/templates/src/pd_tables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1008,11 +1008,11 @@ p4_pd_status_t
${name}
(
p4_pd_sess_hdl_t sess_hdl,
uint8_t dev_id,
p4_pd_dev_target_t dev_tgt,
uint32_t *count
) {
assert(my_devices[dev_id]);
auto client = pd_client(dev_id);
assert(my_devices[dev_tgt.device_id]);
auto client = pd_client(dev_tgt.device_id);
*count = 0;
try {
*count = static_cast<uint32_t>(
Expand Down