]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: mscc: ocelot: rename ocelot_ace.{c, h} to ocelot_vcap.{c,h}
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 20 Jun 2020 15:43:45 +0000 (18:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Jun 2020 00:25:23 +0000 (17:25 -0700)
Access Control Lists (and their respective Access Control Entries) are
specifically entries in the VCAP IS2, the security enforcement block,
according to the documentation.

Let's rename the files that deal with generic operations on the VCAP
TCAM, so that VCAP IS1 and ES0 can reuse the same code without
confusion.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/Makefile
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot_flower.c
drivers/net/ethernet/mscc/ocelot_net.c
drivers/net/ethernet/mscc/ocelot_vcap.c [moved from drivers/net/ethernet/mscc/ocelot_ace.c with 99% similarity]
drivers/net/ethernet/mscc/ocelot_vcap.h [moved from drivers/net/ethernet/mscc/ocelot_ace.h with 100% similarity]

index 7ab3bc25ed27bca29c434b4e02f368387f71361c..58f94c3d80f91a6c6e6763f03524466d56c074b0 100644 (file)
@@ -4,7 +4,7 @@ mscc_ocelot_switch_lib-y := \
        ocelot.o \
        ocelot_io.o \
        ocelot_police.o \
-       ocelot_ace.o \
+       ocelot_vcap.o \
        ocelot_flower.o \
        ocelot_ptp.o
 obj-$(CONFIG_MSCC_OCELOT_SWITCH) += mscc_ocelot.o
index 5c2b5a2e860866190b6740ab00fabd9fb79002c9..d4ad7ffe6f6e00fb45b3337aca8ccd45eab11461 100644 (file)
@@ -6,7 +6,7 @@
  */
 #include <linux/if_bridge.h>
 #include "ocelot.h"
-#include "ocelot_ace.h"
+#include "ocelot_vcap.h"
 
 #define TABLE_UPDATE_SLEEP_US 10
 #define TABLE_UPDATE_TIMEOUT_US 100000
index ad4e8e0d62a4a2128f388f3fe7546a03cc01affb..d57d6948ebf29d2b12edb31088f72acd54dcee2d 100644 (file)
@@ -6,7 +6,7 @@
 #include <net/pkt_cls.h>
 #include <net/tc_act/tc_gact.h>
 
-#include "ocelot_ace.h"
+#include "ocelot_vcap.h"
 
 static int ocelot_flower_parse_action(struct flow_cls_offload *f,
                                      struct ocelot_ace_rule *ace)
index 1ce444dff9830625241b0ea79485fdfaebb01b32..80cb1873e9d94c2bd8fb7c886203d465f97bd239 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <linux/if_bridge.h>
 #include "ocelot.h"
-#include "ocelot_ace.h"
+#include "ocelot_vcap.h"
 
 int ocelot_setup_tc_cls_flower(struct ocelot_port_private *priv,
                               struct flow_cls_offload *f,
similarity index 99%
rename from drivers/net/ethernet/mscc/ocelot_ace.c
rename to drivers/net/ethernet/mscc/ocelot_vcap.c
index dbfb2666e211f58b08cdbd123a9613592b85c3cb..33b5b015e8a7abed5a55c8ed4ddfbdaee56ee2e3 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <soc/mscc/ocelot_vcap.h>
 #include "ocelot_police.h"
-#include "ocelot_ace.h"
+#include "ocelot_vcap.h"
 #include "ocelot_s2.h"
 
 #define OCELOT_POLICER_DISCARD 0x17f