git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/bnxt: ignore VLAN priority mask
[dpdk.git]
/
examples
/
ipsec-secgw
/
ipsec_worker.c
diff --git
a/examples/ipsec-secgw/ipsec_worker.c
b/examples/ipsec-secgw/ipsec_worker.c
index
5fde667
..
b6c851f
100644
(file)
--- a/
examples/ipsec-secgw/ipsec_worker.c
+++ b/
examples/ipsec-secgw/ipsec_worker.c
@@
-112,12
+112,7
@@
check_sp(struct sp_ctx *sp, const uint8_t *nlp, uint32_t *sa_idx)
rte_acl_classify((struct rte_acl_ctx *)sp, &nlp, &res, 1,
DEFAULT_MAX_CATEGORIES);
- if (unlikely(res == 0)) {
- /* No match */
- return 0;
- }
-
- if (res == DISCARD)
+ if (unlikely(res == DISCARD))
return 0;
else if (res == BYPASS) {
*sa_idx = -1;