View check-abi.sh
#! /bin/sh
## Check current git branch against original release abi
# Copyright (C) 2017, Red Hat, Inc
# Copyright (C) 2017, Nicira, Inc
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
View .abignore
[suppress_type]
source_location_not_regexp = openvswitch/.*\\.h
[suppress_type]
soname_not_regexp = libopenvswitch-2
[suppress_function]
soname_not_regexp = libopenvswitch-2
[suppress_variable]
soname_not_regexp = libopenvswitch-2
View gist:4e7dd3ceb8e9e9bebfd7cb41bbe97e2d
09:25 < lrichard> Enable gcov kernel profiling in kernel config (CONFIG_GCOV_KERNEL)
09:25 < lrichard> Add "GCOV_PROFILE := y" to net/openvswitch/Makefile
09:25 < lrichard> Build kernel, install, reboot
09:25 < lrichard> Execute some tests involving kernel ovs data-plane...
09:25 < lrichard> mkdir -p /tmp/lcov
09:25 < lrichard> lcov -b /path/to/kernel/build/ -q -c --rc lcov_branch_coverage=1 -o /tmp/lcov/coverage.info
09:25 < lrichard> genhtml -q --branch-coverage --num-spaces 4 -o /tmp/lcov /tmp/lcov/coverage.info
09:25 < lrichard> firefox /tmp/lcov/index.html
View nat_crash_repro.sh
#!/bin/bash
crash=1
setup()
{
modprobe nf_conntrack_ftp
brctl addbr br0
ip link set dev br0 up
View load_kernel
#!/bin/sh
if [ $# -ne 1 ]; then
echo "Usage: $0 <kernel>"
echo;
echo "Available kernels:"
ls /boot/vmlinuz-* | cut -d'-' -f2- | sed 's/^/ /'
exit 0;
fi
View get_netconsole_options.sh
#!/bin/bash
# gnco.sh: Get netconsole options to send logs to a given IP.
# Author: Joe Stringer
#
# v1.1: Minor script tidyups.
# v1.0: Initial post.
# $1: L3 destination
function get_l2()
{
View ovs_key_m2n.py
#!/usr/bin/env python3
import sys
from enum import Enum
class Key_attr(Enum):
# From Linux include/uapi/linux/openvswitch.h
OVS_KEY_ATTR_UNSPEC = 0
OVS_KEY_ATTR_ENCAP = 1
OVS_KEY_ATTR_PRIORITY = 2
View keybase.md

Keybase proof [22/668]

I hereby claim:

  • I am joestringer on github.
  • I am joestringer (https://keybase.io/joestringer) on keybase.
  • I have a public key ASAN2WCYQl1cxTZELEMwmGfPyY_h5yuY-hOOF1uIGM3-kwo

To claim this, I am signing this object:

View ct-zone-flows
dnl Allow traffic from local stack to ns0. Only allow neighbour discovery,
dnl return traffic from ns0 back to the local stack.
AT_DATA([flows.txt], [dnl
dnl default
table=0,priority=1,action=drop
table=0,priority=10,arp,action=normal
dnl Load the output port to REG0
table=0,priority=100,ip,in_port=LOCAL,action=load:1->NXM_NX_REG0[[0..15]],goto_table:1
table=0,priority=100,ip,in_port=1,action=load:65534->NXM_NX_REG0[[0..15]],goto_table:1
View gist:63a4f3c2bd9d4f6ddac7
# CHECK_CONNTRACK()
#
# Perform requirements checks for running conntrack tests, and flush the
# kernel conntrack tables when the test is finished.
#
m4_define([CHECK_CONNTRACK],
[AT_SKIP_IF([test $HAVE_CONNTRACK = no])
AT_SKIP_IF([test $HAVE_PYTHON = no])
m4_foreach([mod], [[nf_conntrack_ipv4], [nf_conntrack_ipv6]],
[modprobe mod || echo "Module mod not loaded."