diff options
author | Michael Chan <[email protected]> | 2023-12-01 14:39:18 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-12-04 15:12:48 -0800 |
commit | 39b2e62be3704d358c2c82eb326ae4b82a23ce1a (patch) | |
tree | dc5a696e86edaa2410f73255064c042286ed74dc /tools/perf/scripts/python/sctop.py | |
parent | c2f8063309da9be81679e27cabd4a9dbf9be43cc (diff) |
bnxt_en: Refactor and refine bnxt_tpa_start() and bnxt_tpa_end().
Refactor bnxt_tpa_start() by adding bnxt_tpa_metadata() to gather the
metadata from the TPA_START completion. This makes it easier to
support the new P7 chip which has a modified TPA_START completion
structure with different metadata formats. We also add vlan_valid
and cfa_code_valid fields to the bnxt_tpa_info structure so that the
VLAN and VF rep logic can be common for all chips. The VLAN metadata
is now collected in bnxt_tpa_start() only when it is valid and the
vlan_valid field will be set. bnxt_tpa_end() can now use common VLAN
logic for all chips.
Signed-off-by: Michael Chan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions