DPDK usage discussions
 help / color / mirror / Atom feed
* Does ACL support field size of 8 bytes?
@ 2022-04-13 13:55 Ido Goshen
  2022-04-26 17:56 ` Ananyev, Konstantin
  0 siblings, 1 reply; 7+ messages in thread
From: Ido Goshen @ 2022-04-13 13:55 UTC (permalink / raw)
  To: users; +Cc: konstantin.ananyev


I've lots of good experience with ACL but can't make it work with u64 values 
I know it can be split to 2xu32 fields, but it makes it more complex to use and a wastes double  number of fields (we hit the RTE_ACL_MAX_FIELDS 64 limit)

According to the documentation and rte_acl.h fields size can be 8 bytes (u64)
  'The size parameter defines the length of the field in bytes. Allowable values are 1, 2, 4, or 8 bytes.'  
  (from https://doc.dpdk.org/guides-21.11/prog_guide/packet_classif_access_ctrl.html#rule-definition)

Though there's a hint it's less recommended 
  'Also, it is best to define fields of 8 or more bytes as 4 byte fields so that the build processes can eliminate fields that are all wild.'

It's also not clear how it fits in a group (i.e. what's input_index stride) which is only 4 bytes
    'All subsequent fields has to be grouped into sets of 4 consecutive bytes.'

I couldn't find any example or test app that's using 8 bytes
e.g. for IPv6 address 4xu32 fields are always used and not 2xu64

Should it work? 
Did anyone try it successfully and/or can share an example?

- Ido

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-17 23:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13 13:55 Does ACL support field size of 8 bytes? Ido Goshen
2022-04-26 17:56 ` Ananyev, Konstantin
2022-04-26 17:58   ` Fwd: " Konstantin Ananyev
2022-05-11 14:28   ` Ido Goshen
2022-05-15 20:53     ` Konstantin Ananyev
2022-05-16  6:28       ` Ido Goshen
2022-05-17 23:43         ` Konstantin Ananyev

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	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 \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git