5b2655a693
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>
28 lines
431 B
C
28 lines
431 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (C) 2020 Marvell.
|
|
*/
|
|
#ifndef __INCLUDE_PKT_CLS_PRIV_H__
|
|
#define __INCLUDE_PKT_CLS_PRIV_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <rte_common.h>
|
|
|
|
struct pkt_cls_node_ctx {
|
|
uint16_t l2l3_type;
|
|
};
|
|
|
|
enum pkt_cls_next_nodes {
|
|
PKT_CLS_NEXT_PKT_DROP,
|
|
PKT_CLS_NEXT_IP4_LOOKUP,
|
|
PKT_CLS_NEXT_MAX,
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __INCLUDE_PKT_CLS_PRIV_H__ */
|