DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dpdklibs
include
dpdklibs
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
15
namespace
dunedaq
{
16
namespace
dpdklibs
{
17
18
static
constexpr
uint32_t
MAX_PATTERN_NUM
= 3;
19
static
constexpr
uint32_t
MAX_ACTION_NUM
= 2;
20
21
struct
rte_flow*
22
generate_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
30
struct
rte_flow*
31
generate_drop_flow
(uint16_t port_id,
struct
rte_flow_error*
error
);
32
33
struct
rte_flow*
34
generate_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_
dunedaq::dpdklibs
Definition
ARP.hpp:16
dunedaq::dpdklibs::MAX_ACTION_NUM
static constexpr uint32_t MAX_ACTION_NUM
Definition
FlowControl.hpp:19
dunedaq::dpdklibs::generate_ipv4_flow
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)
Definition
FlowControl.cpp:42
dunedaq::dpdklibs::MAX_PATTERN_NUM
static constexpr uint32_t MAX_PATTERN_NUM
Definition
FlowControl.hpp:18
dunedaq::dpdklibs::generate_arp_flow
struct rte_flow * generate_arp_flow(uint16_t port_id, uint16_t rx_q, struct rte_flow_error *error)
Definition
FlowControl.cpp:170
dunedaq::dpdklibs::generate_drop_flow
struct rte_flow * generate_drop_flow(uint16_t port_id, struct rte_flow_error *error)
Definition
FlowControl.cpp:117
dunedaq
The DUNE-DAQ namespace.
Definition
cib_utilities.cpp:5
dunedaq::error
CIB Buffer std::string descriptor Message from std::string descriptor CIB process error
Definition
CIBModuleIssues.hpp:31
Generated on
for DUNE-DAQ by
1.18.0