[ovs-dev] [RFC: add openvswitch actions using BPF 0/9]

Andy Zhou azhou at nicira.com
Wed Feb 4 22:49:14 UTC 2015


User space changes of BPF OVS action agains curret OVS master.

Andy Zhou (9):
  hack: Do not compile datapath
  odp: add a new ODP action: OVS_ACTION_ATTR_BPF_PROG
  tests: add a OVS_ACTION_ATTR_BPF_PROG ation unit test case
  autoconf: support -with-llc options
  bpf: add the first BPF program.
  lib: import into libbpf to ovs/lib
  ofproto-dpif: Add eBPF program loader and runtime infrasturcure.
  ofproto-dpif: Add datapath eBPF support detection
  ofproto-dpif-xlate: generate BPF output action (Hack)

 INSTALL.BPF.md                                    |  42 ++
 Makefile.am                                       |   5 +-
 acinclude.m4                                      |  18 +-
 bpf/automake.mk                                   |  27 ++
 bpf/bpf-shared.h                                  |  12 +
 bpf/ovs-actions.c                                 |  13 +
 bpf/ovs-bpf-helpers.h                             |  35 ++
 configure.ac                                      |   2 +
 datapath/linux/compat/include/linux/openvswitch.h |  29 +-
 lib/automake.mk                                   |  22 ++
 lib/dpif-netdev.c                                 |   1 +
 lib/dpif.c                                        |   1 +
 lib/libbpf.c                                      | 100 +++++
 lib/libbpf.h                                      | 185 +++++++++
 lib/odp-execute.c                                 |   1 +
 lib/odp-util.c                                    |  33 ++
 ofproto/automake.mk                               |   2 +
 ofproto/ofproto-dpif-bpf.c                        | 454 ++++++++++++++++++++++
 ofproto/ofproto-dpif-bpf.h                        |  42 ++
 ofproto/ofproto-dpif-xlate.c                      |  18 +-
 ofproto/ofproto-dpif.c                            |  21 +
 tests/odp.at                                      |   1 +
 vswitchd/automake.mk                              |   5 +
 23 files changed, 1064 insertions(+), 5 deletions(-)
 create mode 100644 INSTALL.BPF.md
 create mode 100644 bpf/automake.mk
 create mode 100644 bpf/bpf-shared.h
 create mode 100644 bpf/ovs-actions.c
 create mode 100644 bpf/ovs-bpf-helpers.h
 create mode 100644 lib/libbpf.c
 create mode 100644 lib/libbpf.h
 create mode 100644 ofproto/ofproto-dpif-bpf.c
 create mode 100644 ofproto/ofproto-dpif-bpf.h

-- 
1.9.1




More information about the dev mailing list