Hi Po,
I also have the same question, but when i read the code, i find sth.

The main code is here:

if (PREDICT_TRUE (table_index0 != ~0))

{

hash0 = vnet_buffer (b0)->l2_classify.hash;

t0 = pool_elt_at_index (vcm->tables, table_index0);

e0 = vnet_classify_find_entry (t0, h0, hash0, now);

if (e0)

{

hits++;

printf("flow classify hit!!\n");

}

else

{

misses++;

printf("flow classify miss!!\n");

vnet_classify_add_del_session (vcm, table_index0,

h0, ~0, 0, 0, 0, 0, 1);

/* increment counter */

vnet_classify_find_entry (t0, h0, hash0, now);

}

}
When hitting, it does nothing, or it will create a new session.

but I do not know the purpose of such implementation, it looks like the 
flow-classify has no effect.

The " set flow classify interface memif0/2 ip4-table 0" and "set int input acl 
intfc memif0/2 ip4-table 0" must match the classify session we created before.

This is my understanding.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16021): https://lists.fd.io/g/vpp-dev/message/16021
Mute This Topic: https://lists.fd.io/mt/69710393/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452
Mute #vppwithoutdpdk: 
https://lists.fd.io/mk?hashtag=vppwithoutdpdk&subid=1480452
Mute #classify: https://lists.fd.io/mk?hashtag=classify&subid=1480452
Mute #flowprobe: https://lists.fd.io/mk?hashtag=flowprobe&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to