Skip to content

Instantly share code, notes, and snippets.

View bluca's full-sized avatar

Luca Boccassi bluca

View GitHub Profile
diff --git a/app/Makefile b/app/Makefile
index f7f5e2f..f837f43 100644
--- a/app/Makefile
+++ b/app/Makefile
@@ -62,15 +62,15 @@ BUILD_TYPE := v17
endif
ifeq ($(BUILD_TYPE),v17)
-COMMON_PRE := $(RTE_SRCDIR)/../lib/common
-LUA_PRE := $(RTE_SRCDIR)/../lib/lua/src
@bluca
bluca / v2_client.cpp
Last active July 1, 2017 14:38
ZMQ v2 client and v4 server interop
#include <assert.h>
#include <string>
#include <iostream>
#include <zmq.h>
#include <string.h>
int main(int argc, char** argv)
{
unsigned long max_nof_messages = 100;
std::string engine_uri = "tcp://127.0.0.1:5656";
#include "testutil.hpp"
#define PAYLOAD_SIZE 229139
#define TERM_SIZE 41
#define NUM_WORKERS 6
#define NUM_ITERS 4
#define NUM_TERMS NUM_WORKERS * NUM_ITERS
void worker_task (void *ep)
{
@bluca
bluca / gist:5dba613a8a3f23457f2232fda3760c83
Created November 21, 2016 15:47
OBS Debian 9 prjconf
Repotype: debian
Ignore: initscripts
Preinstall: user-setup
# required for preinstall images: [1/409] Can't locate Digest/MD5.pm in @INC
Preinstall: libperl5.24
# preinstall debootstrap --foreign --variant=minbase --print-debs
$ git remote add duzy https://github.com/duzy/libzmq.git
lboccass@BRA-6G85P12:~/git/libzmq (bump_version)$ git fetch duzy
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 8 (delta 7), reused 8 (delta 7), pack-reused 0
Unpacking objects: 100% (8/8), done.
From https://github.com/duzy/libzmq
* [new branch] master -> duzy/master
* [new branch] revert-1183-size_fix -> duzy/revert-1183-size_fix
$ git cherry-pick duzy/master
$ ./configure CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3 -O0" --with-docs=no --enable-drafts=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '20266' is supported by ustar format... yes
checking whether GID '20266' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
$ ./configure CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3 -O0" --with-docs=no --enable-drafts=no --with-libsodium
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '20266' is supported by ustar format... yes
checking whether GID '20266' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
@bluca
bluca / gist:447e952e0672421714b29158257f5011
Created November 8, 2016 15:35
DPDK headers diff amd64 <> arm64
From 9e8a966737201210ee784e48057d803e2cba3016 Mon Sep 17 00:00:00 2001
From: Luca Boccassi <lboccass@brocade.com>
Date: Tue, 8 Nov 2016 15:34:05 +0000
Subject: [PATCH] Header diff amd64 <> arm64
---
include/dpdk/rte_atomic.h | 194 +----------
include/dpdk/rte_atomic_32.h | 220 ++----------
include/dpdk/rte_atomic_64.h | 187 +++-------
include/dpdk/rte_byteorder.h | 92 ++---