PERFORCE change 196221 for review
    Takuya ASADA 
    syuu at FreeBSD.org
       
    Fri Jul 15 22:31:39 UTC 2011
    
    
  
http://p4web.freebsd.org/@@196221?ac=10
Change 196221 by syuu at kikurage on 2011/07/15 22:30:44
	test_mqbpf bug fix
Affected files ...
.. //depot/projects/soc2011/mq_bpf/tests/test_mqbpf.c#3 edit
Differences ...
==== //depot/projects/soc2011/mq_bpf/tests/test_mqbpf.c#3 (text+ko) ====
@@ -66,7 +66,7 @@
 #include <pthread.h>
 #include <signal.h>
 
-#define CAP_FORMAT "cap.dat.%d"
+#define CAP_FORMAT "cap.dat.%d.%d"
 #define BPF_FORMAT "/dev/bpf%d"
 
 #define QUEUE_TYPE_RX		0
@@ -109,7 +109,7 @@
 		cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, -1,
 			sizeof(cpuset_t), &instance->cpuset);
 	}
-	snprintf(filename, sizeof(filename), CAP_FORMAT, instance->queue);
+	snprintf(filename, sizeof(filename), CAP_FORMAT, instance->type, instance->queue);
 	instance->fd = open(filename, O_RDWR | O_CREAT);
 	if (instance->fd < 0) {
 		perror("open");
    
    
More information about the p4-projects
mailing list