[ovs-dev] [PATCHv3 1/6] odp-util: Improve formatting of ND export to odp.
Joe Stringer
joestringer at nicira.com
Thu May 15 06:57:21 UTC 2014
Signed-off-by: Joe Stringer <joestringer at nicira.com>
---
v3: First post.
---
lib/odp-util.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/odp-util.c b/lib/odp-util.c
index 34ac5cd..6cff2f1 100644
--- a/lib/odp-util.c
+++ b/lib/odp-util.c
@@ -2643,11 +2643,11 @@ odp_flow_key_from_flow__(struct ofpbuf *buf, const struct flow *flow,
icmpv6_key->icmpv6_type = ntohs(data->tp_src);
icmpv6_key->icmpv6_code = ntohs(data->tp_dst);
- if (flow->tp_dst == htons(0) &&
- (flow->tp_src == htons(ND_NEIGHBOR_SOLICIT) ||
- flow->tp_src == htons(ND_NEIGHBOR_ADVERT)) &&
- (!export_mask || (data->tp_src == htons(0xffff) &&
- data->tp_dst == htons(0xffff)))) {
+ if (flow->tp_dst == htons(0)
+ && (flow->tp_src == htons(ND_NEIGHBOR_SOLICIT)
+ || flow->tp_src == htons(ND_NEIGHBOR_ADVERT))
+ && (!export_mask || (data->tp_src == htons(0xffff)
+ && data->tp_dst == htons(0xffff)))) {
struct ovs_key_nd *nd_key;
--
1.7.10.4
More information about the dev
mailing list