Merge pull request #233 from candlerb/candlerb-zerocopy-force
Ignore set_test_zerocopy if host does not support it
This commit is contained in:
commit
4450b1b86d
@ -390,7 +390,7 @@ iperf_has_zerocopy( void )
|
||||
void
|
||||
iperf_set_test_zerocopy(struct iperf_test *ipt, int zerocopy)
|
||||
{
|
||||
ipt->zerocopy = zerocopy;
|
||||
ipt->zerocopy = (zerocopy && has_sendfile());
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user