session udp: flag for connected udp
[vpp.git] / src / vppinfra / linux / syscall.h
index 4511b85..c07cad6 100644 (file)
 #include <unistd.h>
 #include <sys/syscall.h>
 
+#ifndef HAVE_GETCPU
+static inline int
+getcpu (unsigned *cpu, unsigned *node)
+{
+  return syscall (__NR_getcpu, cpu, node, 0);
+}
+#endif
+
 static inline long
 set_mempolicy (int mode, const unsigned long *nodemask, unsigned long maxnode)
 {