]> git.proxmox.com Git - mirror_ovs.git/commit - lib/packets.h
ovn-controller: Add 'dns_lookup' action
authorNuman Siddique <nusiddiq@redhat.com>
Tue, 25 Apr 2017 14:29:39 +0000 (19:59 +0530)
committerBen Pfaff <blp@ovn.org>
Tue, 2 May 2017 22:19:43 +0000 (15:19 -0700)
commitea991ad220e494812093a71f17ef51e2a7b6324c
tree785b5cf1f22491cf31827f10a43efcd88547c858
parentf7c5e0db6ef790d146e844da220ebc829346687f
ovn-controller: Add 'dns_lookup' action

This patch adds a new OVN action 'dns_lookup' to support native DNS.
ovn-controller parses this action and adds a NXT_PACKET_IN2
OF flow with 'pause' flag set.

A new table 'DNS' is added in the SB DB to look up and resolve
the DNS queries. When a valid DNS packet is received by
ovn-controller, it looks up the DNS name in the 'DNS' table
and if successful, it frames a DNS reply, resumes the packet
and stores 1 in the 1-bit subfield. If the packet is invalid
or cannot be resolved, it resumes the packet without any
modifications and stores 0 in the 1-bit subfield.

reg0[4] = dns_lookup(); next;

An upcoming patch will use this action and adds logical flows.

Signed-off-by: Numan Siddique <nusiddiq@redhat.com>
Acked-by: Gurucharan Shetty <guru@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
include/ovn/actions.h
lib/packets.h
ovn/controller/pinctrl.c
ovn/lib/actions.c
ovn/ovn-sb.ovsschema
ovn/ovn-sb.xml
ovn/utilities/ovn-sbctl.c
ovn/utilities/ovn-trace.c
tests/ovn.at