[ovs-dev] [PATCH 0/4] OVN DHCP support proposal
Ben Pfaff
blp at ovn.org
Thu Jun 9 05:37:57 UTC 2016
Patches 1 and 2 are new.
Patch 3 is based on https://patchwork.ozlabs.org/patch/631320/, with:
- Minor style fixes.
- Change syntax of put_dhcp_opts(), from:
put_dhcp_opts(reg0, offerip=1.2.3.4, ...)
to:
reg0[0] = put_dhcp_opts(offerip=1.2.3.4, ...)
That is, the result is now expressed as a return value, which is
more natural for people coming from C, and the result is now a
single bit instead of an entire register, which makes more sense
for a Boolean anyway and doesn't use up a whole register.
- Arguments to put_dhcp_opts are now architecture independent instead
of host-endian, which makes it possible to test them using the
test-ovn "parse-actions" instead of a separate program.
- Added negative tests for put_dhcp_opts parsing.
- Revised documentation to avoid talking about "pausing" and "resuming"
the pipeline. The trip to ovn-controller should be transparent to
the writer of the OVN logical flows.
Patch 4 is based on https://patchwork.ozlabs.org/patch/631321/, with:
- Minor style fixes.
- Adapt actions to changed put_dhcp_opts() syntax.
- Revised ovn-northd and documentation to avoid talking about
"pausing" and "resuming" the pipeline. The trip to ovn-controller
should be transparent to the writer of the OVN logical flows.
Ben Pfaff (2):
expr: Shorten declarations of expr_context.
expr: Refactor parsing of assignments and exchanges.
Numan Siddique (2):
ovn-controller: Add 'put_dhcp_opts' action in ovn-controller
ovn-northd: Add logical flows to support native DHCP
include/openvswitch/meta-flow.h | 12 ++
lib/dhcp.h | 13 ++
ovn/controller/lflow.c | 11 ++
ovn/controller/pinctrl.c | 188 ++++++++++++++++++++++-
ovn/lib/actions.c | 252 +++++++++++++++++++++++++++---
ovn/lib/actions.h | 13 ++
ovn/lib/automake.mk | 1 +
ovn/lib/expr.c | 246 ++++++++++++++----------------
ovn/lib/expr.h | 74 ++++++++-
ovn/lib/ovn-dhcp.h | 111 ++++++++++++++
ovn/northd/ovn-northd.8.xml | 91 ++++++++++-
ovn/northd/ovn-northd.c | 267 +++++++++++++++++++++++++++++++-
ovn/ovn-nb.ovsschema | 19 ++-
ovn/ovn-nb.xml | 314 +++++++++++++++++++++++++++++++++++++-
ovn/ovn-sb.ovsschema | 16 +-
ovn/ovn-sb.xml | 198 ++++++++++++++++++++++++
ovn/utilities/ovn-nbctl.8.xml | 29 ++++
ovn/utilities/ovn-nbctl.c | 196 ++++++++++++++++++++++++
tests/automake.mk | 1 +
tests/ovn.at | 328 +++++++++++++++++++++++++++++++++++++++-
tests/test-ovn-dhcp.c | 284 ++++++++++++++++++++++++++++++++++
tests/test-ovn.c | 32 ++++
22 files changed, 2522 insertions(+), 174 deletions(-)
create mode 100644 ovn/lib/ovn-dhcp.h
create mode 100644 tests/test-ovn-dhcp.c
--
2.1.3
More information about the dev
mailing list