      pgrep -P 1 -f netperf > /dev/null
      while [ $? -eq 0 ]
      do
--   sleep 1
--   pgrep -P 1 -f netperf > /dev/null
+-	sleep 1
+-	pgrep -P 1 -f netperf > /dev/null
 +    sleep 1
 +    pgrep -P 1 -f netperf > /dev/null
      done

   uint32_t   so_sndavoid;    /* avoid copies on send? */
   uint32_t   send_dirty_count; /* bytes to dirty before calling send */
diff -u -r netperf-2.6.0/src/nettest_omni.c netperf-2.6.0-patch/src/nettest_omni.c
--- netperf-2.6.0/src/nettest_omni.c    2012-06-19 13:33:48.000000000 -0700
+++ netperf-2.6.0-patch/src/nettest_omni.c  2016-11-04 16:37:37.472977329 -0700
@@ -3759,6 +3759,10 @@
       omni_request->socket_prio            = remote_socket_prio;
       omni_request->socket_tos             = remote_socket_tos;

+  CPU_ZERO(&mask);
+  CPU_SET(mapped_affinity, &mask);
+  if (cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1,
+			 sizeof(mask), &mask)) {
+	perror("cpuset_setaffinity failed");
+	fflush(stderr);
+  }
+#endif /* __FreeBSD_version */    
 #else
