Skip to content

Commit

Permalink
dpdk/rte_flow: implement working drop filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kiripolsky authored and Adam Kiripolsky committed Nov 29, 2024
1 parent 84be025 commit 694aa50
Show file tree
Hide file tree
Showing 6 changed files with 868 additions and 2,080 deletions.
7 changes: 4 additions & 3 deletions src/runmode-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ static void DPDKDerefConfig(void *conf);
#define DPDK_CONFIG_DEFAULT_DROP_FILTER "none"
#define DPDK_CONFIG_DEFAULT_ALLOW_FILTER "none"


DPDKIfaceConfigAttributes dpdk_yaml = {
.threads = "threads",
.irq_mode = "interrupt-mode",
Expand Down Expand Up @@ -830,8 +829,10 @@ static int ConfigLoad(DPDKIfaceConfig *iconf, const char *iface)
if (retval < 0)
SCReturnInt(retval);

//ConfigLoadRTEFlowRules(if_root, if_default, dpdk_yaml.allow_filter, iconf);
ConfigLoadRTEFlowRules(if_root, if_default, dpdk_yaml.drop_filter, iconf);
retval =
ConfigLoadRTEFlowRules(if_root, if_default, dpdk_yaml.drop_filter, &iconf->drop_filter);
if (retval < 0)
SCReturnInt(retval);

SCReturnInt(0);
}
Expand Down
1 change: 0 additions & 1 deletion src/source-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ static void DevicePostStartPMDSpecificActions(DPDKThreadVars *ptv, const char *d
// and only after the start of the port
if (strcmp(driver_name, "net_i40e") == 0)
i40eDeviceSetRSS(ptv->port_id, ptv->threads);

}

static void DevicePreClosePMDSpecificActions(DPDKThreadVars *ptv, const char *driver_name)
Expand Down
Loading

0 comments on commit 694aa50

Please sign in to comment.