FDio / vpp

Mirror of VPP code base hosted at git.fd.io
Apache License 2.0
1.26k stars 619 forks source link

Classify: fix the way of finding a suitable classify table #25

Open jasonlittledragon opened 4 years ago

jasonlittledragon commented 4 years ago

We should compare two masks by the length of mask memory, or 'if statement' will never be true even if the mask is completely suitable. Also variable 'i' is not the table_index we want, table_index is in the vector table_indices. michaelsi@tencent.com