diff options
author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2018-03-26 09:34:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-27 10:47:23 -0400 |
commit | 47e0e14eb1a688c0868385e02db263093d2df6db (patch) | |
tree | adab81de2ba1e9f00825c9d946fe085bf9b63226 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 8daf1a2d7e40685054ebae680733d822ced6df62 (diff) |
net: mvpp2: Make mvpp2_prs_hw_read a parser entry init function
The mvpp2_prs_hw_read function uses the 'index' field of the struct
mvpp2_prs_entry to initialize the rest of the fields. This makes it
unclear from a caller's perspective, who needs to manipulate a struct
that is not entirely initialized.
This commit makes it an init function for prs_entry, by passing it the
index as a parameter. The function now zeroes the entry, and sets the
index field before doing all other init from HW.
The function is renamed 'mvpp2_prs_init_from_hw' to make that clear.
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions