Ignore set_test_zerocopy if host does not support it
This commit is contained in:
parent
fab3e1dd85
commit
8961016f90
@ -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