From: Caianning <caianning@huawei.com>
To: users <users@dpdk.org>
Subject: [dpdk-users] [DPDK] help: Questions about DPDK ACL
Date: Wed, 17 May 2017 12:32:48 +0000 [thread overview]
Message-ID: <F994AE62EFA2864BAC5A2B81D86C27C13E313A5C@nkgeml514-mbx.china.huawei.com> (raw)
Hi,
I have modified the example L3FWD-ACL for some test. And got 2 questions:
1) how to add a default rule, which is used to deny all other packet (which does not match any previous rule)? Can I do as following, and add it at the end of ipv4 rules?
@0.0.0.0/0 0.0.0.0/0 0 : 65535 0 : 65535 0x0/0x0 0xf0000000
2) I want to have 3 results, and modified the macro DEFAULT_MAX_CATEGORY to 3.
In the example, the category_mask is set to -1. Shall I set category_mask for each type of rule?
After rte_acl_classify(), I expect 3 results in the acl_search.res_ipv4 for each packet. Such as {1,3,0xf0000001} ?
thanks
reply other threads:[~2017-05-17 12:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F994AE62EFA2864BAC5A2B81D86C27C13E313A5C@nkgeml514-mbx.china.huawei.com \
--to=caianning@huawei.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).