[ovs-dev] [PATCH v3, 6/7] ovn-northd: add Router Advertisement packet forward flow

2016-10-13 Thread Zongkai LI
This patch add lflow support for Router Advertisement packet forward. Forward RA packets to router port in lswitch l2_lkup table. Signed-off-by: Zongkai LI --- ovn/northd/ovn-northd.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/ovn/northd/ovn-northd.c b/ovn

[ovs-dev] [PATCH v3, 2/7] lib: rename ovs_nd_opt to ovs_nd_lla_opt

2016-10-13 Thread Zongkai LI
Since ovs_nd_mtu_opt and ovs_nd_prefix_opt is introducted, rename ovs_nd_opt to ovs_nd_lla_opt to specify it's Source/Target Link-layer Address Option. Signed-off-by: Zongkai LI --- lib/flow.c| 30 +++ lib/odp-execute.c | 22 - lib/packets.c

[ovs-dev] [PATCH v3, 7/7] ovn-northd: add IPv6 RS responder support

2016-10-13 Thread Zongkai LI
quot; flag, router_lifetime. Signed-off-by: Zongkai LI --- ovn/northd/ovn-northd.c | 140 -- ovn/ovn-nb.ovsschema | 21 ++- ovn/ovn-nb.xml| 103 ++ ovn/utilities/ovn-nbctl.c | 5 ++ te

[ovs-dev] [PATCH v3,3/7] ovn: extend expr symbols for ND

2016-10-13 Thread Zongkai LI
ot;nd_ra" stands for Router Advertisement message, Signed-off-by: Zongkai LI --- ovn/lib/logical-fields.c | 18 ++ ovn/ovn-sb.xml | 4 +++- tests/ovn.at | 2 +- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/ovn/lib/logical-fields.c b/ovn/li

[ovs-dev] [PATCH v3, 5/7] ovn-controller: add 'put_nd_ra' and 'put_nd_opt_*' actions support

2016-10-13 Thread Zongkai LI
fetime(32-bit unsigned integer), - preferred lifetime(32-bit unsigned integer), - prefix(128-bit IPv6 address prefix). e.g. put_nd_ra_opt_prefix(64,192,10800,10800,fdad:a0f9:a012::); Signed-off-by: Zongkai LI --- include/ovn/actions.h | 79 +- ovn/controller/pinctrl.c |

[ovs-dev] [PATCH v3,4/7] ovn-controller: add 'nd_ra' action

2016-10-13 Thread Zongkai LI
This patchs add a new action 'nd_ra' against current 'nd_na' action, to work as a Router Solicitation packet responder. The inner actions to set fields, flags, options in RA packet will be introduced in the following patch. Signed-off-by: Zongkai LI --- include/ovn/actions.h

[ovs-dev] [PATCH v3, 0/7] ovn: add Router Solicitation responder support

2016-10-13 Thread Zongkai LI
address comments from Justin, including: revert changing on is_nd and is_nd_neighbor brought in version 2 update annotations in lib/packets.h for ovs_ra_msg, ovs_nd_prefix_opt, ovs_nd_lla_opt, ovs_nd_mtu_opt. combine methods compse_nd_ra, packet_put_ra_sll_opt, packet_put_ra_mtu_opt in version

[ovs-dev] [PATCH v3 1/7] packets: add compose_nd_ra

2016-10-13 Thread Zongkai LI
can use packet_put_ra_prefix_opt to append a Prefix Information Option to a RA packet. Signed-off-by: Zongkai LI --- lib/packets.c | 88 +++ lib/packets.h | 59 +++ 2 files changed, 147 insertions(+) diff

[ovs-dev] [PATCH v1, 1/1] ovn-northd: fix router ingress table ID in comments

2016-10-11 Thread Zongkai LI
This patch fixes wrong table ID in comments for logical router ingress table IP Routing, ARP Resolution and ARP request. Signed-off-by: Zongkai LI --- ovn/northd/ovn-northd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn

[ovs-dev] [PATCH v2, 0/1] ovn: Extend Address_Set to Set to support define port name sets

2016-09-27 Thread Zongkai LI
URB HERE *** Zongkai LI (1): ovn: Extend Address_Set to Set to support define port name sets AUTHORS | 1 + include/ovn/expr.h| 8 ++- ovn/controller/lflow.c| 35 - ovn/lib/expr.c| 67 ++--- ovn/northd/ovn-northd.c |

[ovs-dev] [PATCH v2, 1/1] ovn: Extend Address_Set to Set to support define port name sets

2016-09-27 Thread Zongkai LI
From: Zongkai LI This patch aims to extend table Address_Set to Set, make it more common to accept variable set, not only address. And by that, we can skinny down ACLs, if we use Set to defines port name sets for ACL to use, since lots of ACL entries are similar but only "inport" an

[ovs-dev] [PATCH v1 1/1] ovn-northd: add dhcpv6 stateless option support

2016-09-08 Thread Zongkai LI
, and let VM/VIF ports get their IPv6 addresses configured via stateless way. Signed-off-by: Zongkai LI --- ovn/northd/ovn-northd.c | 24 --- ovn/ovn-nb.xml | 11 +++ tests/ovn.at| 51 +++-- 3 files

[ovs-dev] [PATCH v2 7/8] ovn-northd: add Router Advertisement packet forward flow

2016-09-02 Thread Zongkai LI
This patch add lflow support for Router Advertisement packet forward. Forward RA packets to router port in lswitch l2_lkup table. --- ovn/northd/ovn-northd.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn-northd.c index 0ad9

[ovs-dev] [PATCH v2 6/8] ovn-controller: add 'put_nd_ra' and 'put_nd_opt_*' actions support

2016-09-02 Thread Zongkai LI
This patch adds action 'nd_ra' specific inner actions 'put_nd_ra', 'put_nd_opt_prefix', 'put_nd_opt_mtu', 'put_nd_opt_sll'. Action put_nd_ra will set following fields in Router Advertisement (RA) packet: - cur_hop_limit(8-bit unsigned integer), - "Managed address configuration" and "Other config

[ovs-dev] [PATCH v2 8/8] ovn-northd: add IPv6 RS responder support

2016-09-02 Thread Zongkai LI
This patch add support for building Router Solicitation responder flows, which will be used to reply Router Advertisement packet from ovn-controller for VM/VIF port. It adds table Logical_Router_RA_Prefix_Config to define a set of ND Prefix informations configurations(such as valid_lifetime, prefe

[ovs-dev] [PATCH v2 5/8] ovn-controller: add 'nd_ra' action

2016-09-02 Thread Zongkai LI
This patchs add a new action 'nd_ra' against current 'nd_na' action, to work as a Router Solicitation packet responder. The inner actions to set fields, flags, options in RA packet will be introduced in the following patch. v1 -> v2 rebased --- include/ovn/actions.h | 7 ++ ovn/controlle

[ovs-dev] [PATCH v2 3/8] ovn: extend expr symbols for ND

2016-09-02 Thread Zongkai LI
This patch updates symbols in logical-fields for ND, such as "nd", "nd.target", "nd.sll", "nd.tll", to describe more clear about "icmp6.type" predicate. It adds new symbols: - "nd_rs" stands for Router Solicitation message, - "nd_ra" stands for Router Advertisement message, - "nd_rd" stands for

[ovs-dev] [PATCH v2 2/8] lib: rename ovs_nd_opt to ovs_nd_lla_opt

2016-09-02 Thread Zongkai LI
Since ovs_nd_mtu_opt and ovs_nd_prefix_opt is introducted, rename ovs_nd_opt to ovs_nd_lla_opt to specify it's Source/Target Link-layer Address Option. v1 -> v2 rebased, separete ovs_nd_opt rename to this patch. --- lib/flow.c| 26 ++--- lib/odp-execute.c | 20

[ovs-dev] [PATCH v2 4/8] flow: update is_nd for all ND msg types

2016-09-02 Thread Zongkai LI
This patch updates method is_nd to let type ND_ROUTER_SOLICIT, ND_ROUTER_ADVERT, ND_REDIRECT can be recoginzed. And introduces method is_nd_neighbor for inherit current is_nd behavior. v1 -> v2 rebased, introduces method is_nd_neighbor. --- lib/flow.h | 11 +-- lib/nx-match.

[ovs-dev] [PATCH v2 1/8] packets: add compose_nd_ra to compose Router Advertisement packet

2016-09-02 Thread Zongkai LI
This patch introduces methods to compose a Router Advertisement (RA) packet, introduces flags for RA. RA packet composed structures against specification in RFC4861. Caller can use compse_nd_ra to compose a basic RA packet, and use - packet_put_ra_sll_opt to append a Source Link-layer Address Opt

[ovs-dev] [PATCH RFC v3] ovn-northd: add default_dhcpvx_options for Logical_Switch

2016-09-01 Thread Zongkai LI
This patch adds default_dhcpv4_options and default_dhcpv6_options columns for Logical_Switch, which should help CMS not to calculate and set dhcpv4_options and dhcpv6_options columns for lswitch ports on lswitchs one by one, when most of lswitch ports on the same lswitch are using the DHCPv4_Option

[ovs-dev] [PATCH RFC v2] ovn-northd: add default_dhcpvx_options for Logical_Switch

2016-08-29 Thread Zongkai LI
This patch adds default_dhcpv4_options and default_dhcpv6_options columns for Logical_Switch, which should help CMS not to calculate and set dhcpv4_options and dhcpv6_options columns for lswitch ports on lswitchs one by one, when most of lswitch ports on the same lswitch are using the DHCPv4_Option

[ovs-dev] [PATCH RFC v3 3/3] ovn-northd: add RS responder for SLAAC

2016-08-12 Thread Zongkai LI
From: LI Zong Kai This patch tries to implement Router Solicitation (RS) responder, which will reply Router Advertisement (RA) message, for SLAAC on ovn-northd side. It tries to build lflows per each Logical Router Port, who have IPv6 networks and set their 'slaac' column to true. The lflows wi

[ovs-dev] [PATCH RFC v3 2/3] ovn-controller: add RS responder for SLAAC

2016-08-12 Thread Zongkai LI
From: LI Zong Kai This patch tries to implement Router Solicitation (RS) responder, who will reply Router Advertisement (RA) message, for SLAAC on ovn-controller side. It parses lflows which have: - match: inport == LRP_NAME && ip6.dst == ff02::2 && nd_rs (nd_rs: icmp6.type == 133 && icmp6.c

[ovs-dev] [PATCH RFC v3 0/3] ovn: add SLAAC support for IPv6

2016-08-12 Thread Zongkai LI
This serial patches try to support Stateless Address Autoconfiguration (SLAAC) for IPv6, via Router Solicitation (RS) responder, who will reply Router Advertisement (RA) message for received RS message. User case: After this serial patches, a user can follow the following steps to let all VMs/

[ovs-dev] [PATCH RFC v3 1/3] ovs packet: add compose RA packet support

2016-08-12 Thread Zongkai LI
From: LI Zong Kai This patch introduces methods to compose a Router Advertisement (RA) packet, introduces flags for RA, and renames ovs_nd_opt to ovs_nd_lla_opt to specify it's Source/Target Link-layer Address option. The packet, composed by new introduced methods, structures against specificati