test: improve coverage on LPM tbl8
authorRuifeng Wang <ruifeng.wang@arm.com>
Thu, 14 Jan 2021 06:59:25 +0000 (06:59 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 14 Jan 2021 15:41:40 +0000 (16:41 +0100)
commitf942122fef5d979abeaa51df26d63ba1ea3dcec7
tree073542c083df22a965ff86a876cee87d23f43615
parent5702b7bf1ce509d2f40d732ba4e2af5b1269e0d8
test: improve coverage on LPM tbl8

Existing test cases create 256 tbl8 groups for testing. The number covers
only 8 bit next_hop/group field. Since the next_hop/group field had been
extended to 24-bits, creating more than 256 groups in tests can improve
the coverage.

Coverage was not expanded to reach the max supported group number, because
it would take too much time to run for this fast-test.

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Tested-by: David Christensen <drc@linux.vnet.ibm.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
app/test/test_lpm.c