node: add packet classifier
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Sun, 7 Jun 2020 16:40:42 +0000 (22:10 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 21 Jul 2020 23:18:59 +0000 (01:18 +0200)
commit5b2655a693108c63418a6824740d17c8c54078f5
treeb3e420bcf8732f46357f0fb558556a60925c0669
parentcbcf2263fb9514dfc207906f95b02bc4e32dcca5
node: add packet classifier

This node classifies pkts based on packet type and
sends them to appropriate next node. This is node
helps in distribution of packets from ethdev_rx node
to different next node with a constant overhead for
all packet types.

Currently all except non fragmented IPV4 packets are marked
to be sent to "pkt_drop" node.
Performance difference on ARM64 Octeontx2 is -4.9% due to
addition of new node in the path.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
lib/librte_node/Makefile
lib/librte_node/ethdev_rx.c
lib/librte_node/ethdev_rx_priv.h
lib/librte_node/ip4_lookup_neon.h
lib/librte_node/meson.build
lib/librte_node/node_private.h
lib/librte_node/pkt_cls.c [new file with mode: 0644]
lib/librte_node/pkt_cls_priv.h [new file with mode: 0644]