This patch query the network interface to detect if LRO or GRO are
used in mmap TPACKET_V2 mode.
goto socket_err;
}
-
-
if (ptv->promisc != 0) {
/* Force promiscuous mode */
memset(&sock_params, 0, sizeof(sock_params));
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--) {