afpacket: only check offloading once per iface

Instead of once per thread per iface.
pull/1239/head
Victor Julien 10 years ago
parent fa10811585
commit e951afb911

@ -341,6 +341,11 @@ void *ParseAFPConfig(const char *iface)
}
}
if (GetIfaceOffloading(iface) == 1) {
SCLogWarning(SC_ERR_AFP_CREATE,
"Using AF_PACKET with GRO or LRO activated can lead to capture problems");
}
return aconf;
}

@ -1502,11 +1502,6 @@ static int AFPCreateSocket(AFPThreadVars *ptv, char *devname, int verbose)
goto socket_err;
}
if (GetIfaceOffloading(devname) == 1) {
SCLogWarning(SC_ERR_AFP_CREATE,
"Using mmap mode with GRO or LRO activated can lead to capture problems");
}
/* Allocate RX ring */
#define DEFAULT_ORDER 3
for (order = DEFAULT_ORDER; order >= 0; order--) {

Loading…
Cancel
Save