Victor Julien
2b2984dae9
offloading: implement restoring settings for BSD
10 years ago
Victor Julien
499e27de14
offloading: restore settings on exit
10 years ago
Victor Julien
ab65b6f83b
netmap: fix coverity warning 1362789
...
** CID 1362789: Null pointer dereferences (FORWARD_NULL)
/src/runmode-netmap.c: 247 in ParseNetmapConfig()
________________________________________________________________________________________________________
*** CID 1362789: Null pointer dereferences (FORWARD_NULL)
/src/runmode-netmap.c: 247 in ParseNetmapConfig()
241 strlcpy(aconf->iface_name, iface_name, sizeof(aconf->iface_name));
242 SC_ATOMIC_INIT(aconf->ref);
243 (void) SC_ATOMIC_ADD(aconf->ref, 1);
244
245 /* Find initial node */
246 netmap_node = ConfGetNode("netmap");
>>> CID 1362789: Null pointer dereferences (FORWARD_NULL)
>>> Comparing "netmap_node" to null implies that "netmap_node" might be null.
247 if (netmap_node == NULL) {
248 SCLogInfo("Unable to find netmap config using default value");
249 } else {
250 if_root = ConfFindDeviceConfig(netmap_node, aconf->iface_name);
251 if_default = ConfFindDeviceConfig(netmap_node, "default");
252 }
10 years ago
Victor Julien
6c7bf006b7
netmap: redo config parsing
...
Normally we parse the config per interface only. But to properly
setup the bridge, netmap also needs the config of it's peering
interface. Instead of using a complicated peering scheme like in
afpacket, simply parse the peers config too.
10 years ago
Victor Julien
5c974f92a8
livedev: shorten devname at registration
10 years ago
Victor Julien
648a69759b
netmap: don't set more than 1 thread on sw ring
10 years ago
Victor Julien
86d44cea96
netmap: code cleanup
10 years ago
Victor Julien
2beb39469b
netmap: output cleanup
10 years ago
Victor Julien
a8a918545b
netmap: get correct RSS queues on Linux as well
10 years ago
Victor Julien
d861bf100b
netmap: reduce verbosity at startup
10 years ago
Victor Julien
d58d02fed5
netmap: handle missing config with better defaults
...
Default to 'threads: auto' which uses RSS RX count when no config
has been created for a interface.
10 years ago
Victor Julien
f446577412
netmap: implement 'threads: auto'
...
Add until function for retrieving RSS RX count from netmap. Use the
RSS count to create the threads.
10 years ago
Victor Julien
8dc477f85a
sources: fix netmap compilation and pcap setup
10 years ago
Jason Ish
aa8e747e4d
sources: allow interface definitions to be reordered
...
For af-packet, pf-ring, netmap, and pcap use a generic
lookup function to find the configuration node for an
interface.
The new lookup function does not depend on the ordering
of the items inside the device configuration.
10 years ago
maxtors
b28ebae088
Use ConfValIs* for parsing netmap.checksum-checks.
11 years ago
Zachary Rasmor
41c768ce28
Update threads to use global thread names.
...
Update FlowManager/Recycler to use global name.
Also add # into thread number.
Update af-packet to use global threadnames.
Update pcap to use global threadnames.
Update pfring to use global threadnames.
Update erf-dag to use global threadnames.
Update nflog to use global threadnames.
Update netmap to use global threadnames.
Update napatech to use global threadnames.
11 years ago
Aleksey Katargin
caa2438b98
netmap: support SW rings
...
Netmap uses SW rings to send and receive packets from OS.
11 years ago
Victor Julien
38b349af1e
runmodes: remove DetectEngineCtx passing from API
...
No longer pass a pointer to the current detection engine to the
runmode API calls.
Note: breaks delayed detect. Will be fixed in a future commit.
12 years ago
gureedo
10104066e1
netmap support
12 years ago