summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mscc/ocelot_vcap.c
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-05-03 15:01:47 +0300
committerJakub Kicinski <kuba@kernel.org>2022-05-04 20:42:14 -0700
commit3825a0d02748b4eb355b1d3926ff750fd3846178 (patch)
tree99f015cb2c376e15db7872d35544546f1a41bc68 /drivers/net/ethernet/mscc/ocelot_vcap.c
parent0a448bba50090a6147c144f452f49301025111ec (diff)
net: mscc: ocelot: add to tail of empty list in ocelot_vcap_filter_add_to_block
This makes no functional difference but helps in minimizing the delta for a future change. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot_vcap.c')
-rw-r--r--drivers/net/ethernet/mscc/ocelot_vcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_vcap.c b/drivers/net/ethernet/mscc/ocelot_vcap.c
index 5b6f22bd0e5f..4d8ce4b425b2 100644
--- a/drivers/net/ethernet/mscc/ocelot_vcap.c
+++ b/drivers/net/ethernet/mscc/ocelot_vcap.c
@@ -1004,7 +1004,7 @@ static int ocelot_vcap_filter_add_to_block(struct ocelot *ocelot,
block->count++;
if (list_empty(&block->rules)) {
- list_add(&filter->list, &block->rules);
+ list_add_tail(&filter->list, &block->rules);
return 0;
}