Squashed commit of the following:
commit
53d14ee1015a9df4b133589bece240fb39d84179
Author: Carter Waxman <cwaxman@cisco.com>
Date: Mon Jul 2 17:07:55 2018 -0400
detection: don't offload when 0 threads are configured
{
ContextSwitcher* sw = Snort::get_switcher();
- if ( p->type() != PktType::PDU or (p->dsize < SnortConfig::get_conf()->offload_limit) or
- !sw->can_hold() )
+ if ( p->type() != PktType::PDU or
+ p->dsize < SnortConfig::get_conf()->offload_limit or
+ !sw->can_hold() or
+ !offloader->available() )
{
fp_local(p);
return false;
void stop();
+ unsigned available()
+ { return idle.size(); }
+
unsigned count()
{ return busy.size(); }