* [dpdk-users] Understanding the 'offset' field on 'struct rte_acl_field_def' when creating an acl table in a pipeline
@ 2019-08-16 12:28 Victor Huertas
0 siblings, 0 replies; only message in thread
From: Victor Huertas @ 2019-08-16 12:28 UTC (permalink / raw)
To: users; +Cc: Vikutoru
I am developing an application with DPDK (v17.11) using a concatenation of
Now I find myself on the definition of an ACL table and more precisely the
format of the ACL fields.
One of the parameters of this field format is the 'offset', which indicates
the number of bytes till the start of the field to check.
Now I have two questions:
- It is possible to specify an ACL field placed on the headroom (ad-hoc
fields defined by myself) or inside the rte_mbuf (like for example the VLAN
TCI when VLAN stripping is enabled at the NIC)? All the examples I have
seen so far assume that an offset value of 0 means the start of Ethernet
header and not the start of rte_mbuf struct. Is there a way to place the
offset start at the rte_mbuf struct?
- If the type of the ACL field is RTE_ACL_FIELD_TYPE_RANGE, it seems to me
that it can only be used if the length of the field is at least 1 byte and
it is aligned with the 1 byte granularity that imposes the 'offset' field.
Does the DPDK library allow me to define a RANGE of values of VLAN tag or
Priority field in the 802.1Q header? It is true that it may be solved if I
use RTE_ACL_FIELD_TYPE_BITMASK but this solution would obligue me to put N
flows, one for each VLAN tag I want to filter. This is not efficient as
depending on the range length it could translated it into hundreds of
entries. A simple range would simplify it a lot.
These to questions are important to me as it conditions the design of the
pipelines of my application. I would appreciate it if some expert could
help me clarify these two questions.
Thanks a lot for your attention.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, back to index
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-16 12:28 [dpdk-users] Understanding the 'offset' field on 'struct rte_acl_field_def' when creating an acl table in a pipeline Victor Huertas
DPDK usage discussions
Archives are clonable:
git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
Newsgroup available over NNTP:
AGPL code for this site: git clone https://public-inbox.org/ public-inbox