Hi Jerome, Could you share a packet trace of a packet that is being classified but not correctly redirected? Eg. if you use dpdk: ~# vppctl clear trace ~# vppctl trace add dpdk-input 10 <run your traffic> ~# vppctl show trace
Best ben > -----Original Message----- > From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of > jerome.bay...@student.uliege.be > Sent: vendredi 12 mars 2021 12:12 > To: vpp-dev@lists.fd.io > Subject: [vpp-dev] Unexpected behavior of Classifier > > Hello all, > > I think I found a bug/ an unexpected behavior of the classifier when I use > it for IOAM encapsulation/decapsulation. > > Indeed, I used the classifier to select packets for IOAM encapsulation or > decapsulation, as it is done in the example described here : > > https://github.com/CiscoDevNet/iOAM/tree/master/scripts/vpp_sandbox/exampl > e/simple-ip6 > > More precisely, here are the commands we are interested in, when it comes > to decapsulation : > > classify table miss-next ip6-node ip6-lookup mask l3 ip6 dst > classify session acl-hit-next ip6-node ip6-lookup table-index 0 match l3 > ip6 dst db03::02 ioam-decap test1 > set int input acl intfc host-l_c2 ip6-table 0 > set int input acl intfc host-l_c1 ip6-table 0 > > This set of commands (more specifically the "classify session" one) is > supposed to set the value of the "vnet_buffer (b0)- > >l2_classify.opaque_index" that will be checked in the > "vnet/ip/ip6_forward.c" file, in the "ip6_hop_by_hop_node" node (at line > 2666 for single loop implementation). The issue is that the value of the > "opaque_index" does not seem to be set anymore when the check occurs, > leading to no redirection of the packet towards the > "ip6_pop_hop_by_hop_node" so no decapsulation of IOAM data as it should. > To find the origin of the problem, I tried to trace the value of this > "opaque_index" as the packet traverses different VPP nodes and I noticed > the following : > > It seems that the classifier does its job correctly and sets the > "opaque_index" to a value that will make true the condition at line 2666 > in "ip6_forward.c". However, as I said here above, when it arrives at this > condition, the "opaque_index" appears to be equal to a null value... > > I was not able to find why it behaves like this, can someone try to help > me to solve this issue ? > > Thanks, > > Jérôme
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18910): https://lists.fd.io/g/vpp-dev/message/18910 Mute This Topic: https://lists.fd.io/mt/81276451/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-