diff options
| author | Subbaraya Sundeep <sbhatta@marvell.com> | 2021-03-17 16:35:37 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-03-17 22:29:40 +0300 |
| commit | b6b0e3667e1b2c796cd282d5ec385d5864ccb1ce (patch) | |
| tree | af8c180435e9a3f66dc39e3da27fdd598719cabe /tools/perf/scripts/python/powerpc-hcalls.py | |
| parent | 56bcef528bd87d66ddf81f0fb1b8837cce1b2667 (diff) | |
| download | linux-b6b0e3667e1b2c796cd282d5ec385d5864ccb1ce.tar.xz | |
octeontx2-af: Avoid duplicate unicast rule in mcam_rules list
A mcam rule described by mcam_rule struct has all the info
such as the hardware MCAM entry number, match criteria and
corresponding action etc. All mcam rules are stored in a
linked list mcam->rules. When adding/updating a rule to the
mcam->rules it is checked if a rule already exists for the
mcam entry. If the rule already exists, the same rule is
updated instead of creating new rule. This way only one
mcam_rule exists for the only one default unicast entry
installed by AF. But a PF/VF can get different NIXLF
(or default unicast entry number) after a attach-detach-attach
sequence. When that happens mcam_rules list end up with two
default unicast rules. Fix the problem by deleting the default
unicast rule list node always when disabling mcam rules.
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions
