Skip to content

Commit

Permalink
accel/mlx5_test: Add more data fragmentation patterns
Browse files Browse the repository at this point in the history
The tests cannot detect bugs like those fixed in the previous commit.
The new data fragmentation patterns should prevent similar bugs from
being added.

Signed-off-by: Sergey Gorenko <[email protected]>
  • Loading branch information
SergeyGorenko committed Jul 25, 2024
1 parent 5149f2d commit 254cd98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/accel/mlx5_test/accel_mlx5_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ static const struct ap_test ap_tests[] = {
.src = { 1024 * 18, 1024 * 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
.dst = { 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024 },
},
{
.src = { 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 2048, 0 },
.dst = { 1024 * 18, 1024 * 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
},
{
.src = { 1024 * 18, 1024 * 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
.dst = { 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 2048, 0 },
},
};

/* Additional cases for crypto with 512 byte block size */
Expand Down

0 comments on commit 254cd98

Please sign in to comment.