summaryrefslogtreecommitdiffstats
path: root/src/vnet/classify/flow_classify_node.c
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2019-07-25 22:44:01 -0400
committerZhiyong Yang <zhiyong.yang@intel.com>2019-07-25 22:50:30 -0400
commit1f5a6063c17e3d775773352e1fba725b09ad84ca (patch)
tree7413f6ca09ebbf11ed34ce6bb271aa8aa2f7bebe /src/vnet/classify/flow_classify_node.c
parentde85e7fca1d54923263d33556d2d1adec2d86159 (diff)
misc: remove unnecessary cast in classify
Type: style Change-Id: I7628f7fba8250afe41f115595cca4129e43350d3 Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'src/vnet/classify/flow_classify_node.c')
-rw-r--r--src/vnet/classify/flow_classify_node.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/vnet/classify/flow_classify_node.c b/src/vnet/classify/flow_classify_node.c
index 865281ec032..9462d467b70 100644
--- a/src/vnet/classify/flow_classify_node.c
+++ b/src/vnet/classify/flow_classify_node.c
@@ -122,13 +122,11 @@ flow_classify_inline (vlib_main_t * vm,
t1 = pool_elt_at_index (vcm->tables, table_index1);
- vnet_buffer (b0)->l2_classify.hash =
- vnet_classify_hash_packet (t0, (u8 *) h0);
+ vnet_buffer (b0)->l2_classify.hash = vnet_classify_hash_packet (t0, h0);
vnet_classify_prefetch_bucket (t0, vnet_buffer (b0)->l2_classify.hash);
- vnet_buffer (b1)->l2_classify.hash =
- vnet_classify_hash_packet (t1, (u8 *) h1);
+ vnet_buffer (b1)->l2_classify.hash = vnet_classify_hash_packet (t1, h1);
vnet_classify_prefetch_bucket (t1, vnet_buffer (b1)->l2_classify.hash);
@@ -158,8 +156,7 @@ flow_classify_inline (vlib_main_t * vm,
fcm->classify_table_index_by_sw_if_index[tid][sw_if_index0];
t0 = pool_elt_at_index (vcm->tables, table_index0);
- vnet_buffer (b0)->l2_classify.hash =
- vnet_classify_hash_packet (t0, (u8 *) h0);
+ vnet_buffer (b0)->l2_classify.hash = vnet_classify_hash_packet (t0, h0);
vnet_buffer (b0)->l2_classify.table_index = table_index0;
vnet_classify_prefetch_bucket (t0, vnet_buffer (b0)->l2_classify.hash);
@@ -230,7 +227,7 @@ flow_classify_inline (vlib_main_t * vm,
{
hash0 = vnet_buffer (b0)->l2_classify.hash;
t0 = pool_elt_at_index (vcm->tables, table_index0);
- e0 = vnet_classify_find_entry (t0, (u8 *) h0, hash0, now);
+ e0 = vnet_classify_find_entry (t0, h0, hash0, now);
if (e0)
{
hits++;
@@ -241,7 +238,7 @@ flow_classify_inline (vlib_main_t * vm,
vnet_classify_add_del_session (vcm, table_index0,
h0, ~0, 0, 0, 0, 0, 1);
/* increment counter */
- vnet_classify_find_entry (t0, (u8 *) h0, hash0, now);
+ vnet_classify_find_entry (t0, h0, hash0, now);
}
}
if (PREDICT_FALSE ((node->flags & VLIB_NODE_FLAG_TRACE)