DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FlowControl.hpp
Go to the documentation of this file.
1
9#ifndef DPDKLIBS_INCLUDE_DPDKLIBS_FLOWCONTROL_HPP_
10#define DPDKLIBS_INCLUDE_DPDKLIBS_FLOWCONTROL_HPP_
11
12#include <stdint.h>
13#include <rte_flow.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, uint16_t rx_q,
23 uint32_t src_ip, uint32_t src_mask,
24 uint32_t dest_ip, uint32_t dest_mask,
25 struct rte_flow_error *error);
26
27struct rte_flow *
28generate_drop_flow(uint16_t port_id, struct rte_flow_error *error);
29
30struct rte_flow *
31generate_arp_flow(uint16_t port_id, uint16_t rx_q, struct rte_flow_error *error);
32
33} // namespace dpdklibs
34} // namespace dunedaq
35
36#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)
Including Qt Headers.
Factory couldn t std::string alg_name Invalid configuration error
Definition Issues.hpp:34