offloading: work around missing TOE support

pull/2160/head
Victor Julien 10 years ago
parent 9b80c21d78
commit 18de4c9654

@ -363,6 +363,7 @@ static int GetIfaceOffloadingBSD(const char *ifname)
"problems. Run: ifconfig %s -rxcsum", ifname, ifname);
ret = 1;
}
#ifdef IFCAP_TOE
if (if_caps & (IFCAP_TSO|IFCAP_TOE|IFCAP_LRO)) {
SCLogWarning(SC_ERR_NIC_OFFLOADING,
"Using %s with TSO, TOE or LRO activated can lead to "
@ -370,6 +371,15 @@ static int GetIfaceOffloadingBSD(const char *ifname)
ifname, ifname);
ret = 1;
}
#else
if (if_caps & (IFCAP_TSO|IFCAP_LRO)) {
SCLogWarning(SC_ERR_NIC_OFFLOADING,
"Using %s with TSO or LRO activated can lead to "
"capture problems. Run: ifconfig %s -tso -lro",
ifname, ifname);
ret = 1;
}
#endif
return ret;
}
#endif

Loading…
Cancel
Save