Skip to content

Commit

Permalink
dpdk/rte_flow: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kiripolsky authored and Adam Kiripolsky committed Dec 4, 2024
1 parent b463264 commit 893c1b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/util-dpdk-rte-flow-pattern.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@
*/

#include <cmdline_parse_etheraddr.h>

#include "util-debug.h"
#include "util-dpdk.h"
#include "util-dpdk-rte-flow-pattern.h"

#ifdef HAVE_DPDK
Expand Down
4 changes: 3 additions & 1 deletion src/util-dpdk-rte-flow-pattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
*
*/

#include "rte_flow.h"
#ifdef HAVE_DPDK
#include <rte_ethdev.h>
#endif

#ifndef SURICATA_RTE_FLOW_RULES_PATTERN_H
#define SURICATA_RTE_FLOW_RULES_PATTERN_H
Expand Down
6 changes: 3 additions & 3 deletions src/util-dpdk-rte-flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
*
*/

#include "decode.h"
#include "runmode-dpdk.h"
#include "util-debug.h"
#include "util-dpdk.h"
#include "util-dpdk-rte-flow.h"
#include "util-dpdk-rte-flow-pattern.h"

Expand Down Expand Up @@ -158,14 +158,14 @@ static void iceDeviceError(struct rte_flow_item *items)
/**
* \brief Specify ambigous error messages as some drivers have specific
* behaviour when creating rte_flow rules */
static void DriverSpecificErrorMessage(char *driver_name, struct rte_flow_item *items)
static void DriverSpecificErrorMessage(const char *driver_name, struct rte_flow_item *items)
{
if (strcmp(driver_name, "net_ice") == 0) {
iceDeviceError(items);
}
}

int CreateRules(char *port_name, int port_id, RuleStorage *rule_storage, char *driver_name)
int CreateRules(char *port_name, int port_id, RuleStorage *rule_storage, const char *driver_name)
{
SCEnter();
int failed_count = 0;
Expand Down
4 changes: 1 addition & 3 deletions src/util-dpdk-rte-flow.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@
*
*/
#include "conf.h"
#include "decode.h"
#include "source-dpdk.h"

#ifndef SURICATA_RTE_FLOW_RULES_H
#define SURICATA_RTE_FLOW_RULES_H

void RuleStorageFree(RuleStorage *rule_storage);
int ConfigLoadRTEFlowRules(ConfNode *if_root, ConfNode *if_default, const char *filter_type,
RuleStorage *rule_storage);
int CreateRules(char *port_name, int port_id, RuleStorage *rule_storage, char *driver_name);
int CreateRules(char *port_name, int port_id, RuleStorage *rule_storage, const char *driver_name);

#endif /* SURICATA_RTE_FLOW_RULES_H */

0 comments on commit 893c1b0

Please sign in to comment.