* [dpdk-users] [DPDK] help: Questions about DPDK ACL
@ 2017-05-17 12:32 Caianning
0 siblings, 0 replies; only message in thread
From: Caianning @ 2017-05-17 12:32 UTC (permalink / raw)
To: users
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-17 12:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-17 12:32 [dpdk-users] [DPDK] help: Questions about DPDK ACL Caianning
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).