Cookbook - ljakab/openvswitch GitHub Wiki

I keep shortcuts to certain (sets of) actions that I once needed to perform to get something specific done.

Checking kernel build with sparse warnings on and endianness checks

make C=2 CF="-Wsparse-all -D__CHECK_ENDIAN__"

Running only some of the unit tests

make check TESTSUITEFLAGS="-k ovs-vsctl"

Running multiple unit tests in parallel

make check TESTSUITEFLAGS="-j8"

Monitoring upcalls

  • Make sure that ovs-vswitchd is either configured to log to file, or that syslog sends messages with severity level "debug" to some file. By default, rsyslog in Fedora doesn't, and /etc/rsyslog.conf needs a line like *.debug /var/log/debug.log to do turn it on.
  • Run sudo ovs-appctl vlog/set ofproto_dpif_upcall,dbg

Checking the MAC learning table

sudo ovs-appctl fdb/show br0