This is my interpretation of a missing piece of "Alternate approach to MPLS"
Signed-off-by: Simon Horman <ho...@verge.net.au> --- lib/flow.c | 6 ++++++ lib/flow.h | 1 + 2 files changed, 7 insertions(+) diff --git a/lib/flow.c b/lib/flow.c index 295963e..e04ce07 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -1163,6 +1163,12 @@ flow_set_mpls_bos(struct flow *flow, int idx, uint8_t bos) set_mpls_lse_bos(&flow->mpls_lse[idx], bos); } +/* Sets the entire MPLS LSE. */ +void +flow_set_mpls_lse(struct flow *flow, int idx, ovs_be32 lse) +{ + flow->mpls_lse[idx] = lse; +} static void flow_compose_l4(struct ofpbuf *b, const struct flow *flow) diff --git a/lib/flow.h b/lib/flow.h index 091d5f4..55581ac 100644 --- a/lib/flow.h +++ b/lib/flow.h @@ -203,6 +203,7 @@ void flow_set_mpls_label(struct flow *, int idx, ovs_be32 label); void flow_set_mpls_ttl(struct flow *, int idx, uint8_t ttl); void flow_set_mpls_tc(struct flow *, int idx, uint8_t tc); void flow_set_mpls_bos(struct flow *, int idx, uint8_t stack); +void flow_set_mpls_lse(struct flow *, int idx, ovs_be32 lse); void flow_compose(struct ofpbuf *, const struct flow *); -- 1.8.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev