summaryrefslogtreecommitdiffstats
path: root/src/vnet/classify/vnet_classify.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-09-20 13:39:37 +0200
committerDamjan Marion <damarion@cisco.com>2021-09-20 17:44:10 +0200
commit3bb2da9cb115a489061ffb70332ac0801ce2551b (patch)
tree3112838d5d458d559ed3785028569b742542d8e0 /src/vnet/classify/vnet_classify.h
parent3d5e74172de146782244d7638a8b2c4efcb4006e (diff)
classify: avoid dependent read of classify mask
Type: improvement Change-Id: I176f08c74eb58a78f7fbdb48fd4592e6ddf74d34 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/classify/vnet_classify.h')
-rw-r--r--src/vnet/classify/vnet_classify.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vnet/classify/vnet_classify.h b/src/vnet/classify/vnet_classify.h
index 06784e0541e..196a24172cc 100644
--- a/src/vnet/classify/vnet_classify.h
+++ b/src/vnet/classify/vnet_classify.h
@@ -147,9 +147,6 @@ typedef struct
typedef struct
{
CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
- /* Mask to apply after skipping N vectors */
- u32x4 *mask;
-
/* hash Buckets */
vnet_classify_bucket_t *buckets;
@@ -196,6 +193,10 @@ typedef struct
/* Writer (only) lock for this table */
clib_spinlock_t writer_lock;
+ CLIB_CACHE_LINE_ALIGN_MARK (cacheline2);
+ /* Mask to apply after skipping N vectors */
+ u32x4 mask[8];
+
} vnet_classify_table_t;
/**