-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validation: cls: use correct L4 proto for the PMR used
The test code goes through the trouble of checking classification capabilities when deciding whether to use UDP or TCP port matching rules in tests but then always uses UDP test packets anyway. Tests are thus broken if only TCP port matching is supported despite all the capability checking. Fix the problem by selecting also the protocol used in test packets based on capabilities. Fix also the return value checking of a couple of odp_cls_capability() calls. Signed-off-by: Janne Peltonen <[email protected]> Reviewed-by: Jere Leppänen <[email protected]>
- Loading branch information
1 parent
31cbc84
commit 44d0b1c
Showing
4 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters