af-packet: warn that tpacket-v3 is better for non-inline usage

Ticket: #7458
pull/12779/head
Jason Ish 6 months ago committed by Victor Julien
parent d78f2c9a4e
commit 8c7ac89791

@ -773,6 +773,11 @@ finalize:
iface, MAX_PACKET_SIZE);
}
/* Warn that if not-inline, tpacket-v3 is the better choice. */
if (aconf->copy_mode == AFP_COPY_MODE_NONE && (aconf->flags & AFP_TPACKET_V3) == 0) {
SCLogWarning("%s: AF_PACKET tpacket-v3 is recommended for non-inline operation", iface);
}
return aconf;
}

Loading…
Cancel
Save