DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FlowControl.hpp
Go to the documentation of this file.
1
8
9#ifndef DPDKLIBS_INCLUDE_DPDKLIBS_FLOWCONTROL_HPP_
10#define DPDKLIBS_INCLUDE_DPDKLIBS_FLOWCONTROL_HPP_
11
12#include <rte_flow.h>
13#include <stdint.h>
14
15namespace dunedaq {
16namespace dpdklibs {
17
18static constexpr uint32_t MAX_PATTERN_NUM = 3;
19static constexpr uint32_t MAX_ACTION_NUM = 2;
20
21struct rte_flow*
22generate_ipv4_flow(uint16_t port_id,
23 uint16_t rx_q,
24 uint32_t src_ip,
25 uint32_t src_mask,
26 uint32_t dest_ip,
27 uint32_t dest_mask,
28 struct rte_flow_error* error);
29
30struct rte_flow*
31generate_drop_flow(uint16_t port_id, struct rte_flow_error* error);
32
33struct rte_flow*
34generate_arp_flow(uint16_t port_id, uint16_t rx_q, struct rte_flow_error* error);
35
36} // namespace dpdklibs
37} // namespace dunedaq
38
39#endif // DPDKLIBS_INCLUDE_DPDKLIBS_FLOWCONTROL_HPP_
static constexpr uint32_t MAX_ACTION_NUM
struct rte_flow * generate_ipv4_flow(uint16_t port_id, uint16_t rx_q, uint32_t src_ip, uint32_t src_mask, uint32_t dest_ip, uint32_t dest_mask, struct rte_flow_error *error)
static constexpr uint32_t MAX_PATTERN_NUM
struct rte_flow * generate_arp_flow(uint16_t port_id, uint16_t rx_q, struct rte_flow_error *error)
struct rte_flow * generate_drop_flow(uint16_t port_id, struct rte_flow_error *error)
The DUNE-DAQ namespace.
CIB Buffer std::string descriptor Message from std::string descriptor CIB process error