On Mon, Aug 01, 2016 at 12:13:45AM -0500, Justin Pettit wrote:
> 
> > On Jul 29, 2016, at 12:53 PM, Ben Pfaff <b...@ovn.org> wrote:
> > 
> > On Thu, Jul 28, 2016 at 11:26:20PM -0700, Justin Pettit wrote:
> >> This commit also introduces "get_nd" and "put_nd" logical actions.
> >> 
> >> Signed-off-by: Justin Pettit <jpet...@ovn.org>
> > 
> > struct put_mac_binding might include a string buffer directly; not sure
> > there's value in the extra allocation here.
> 
> Agreed.
> 
> > In pinctrl_handle_put_mac_binding(), the parentheses around the call
> > to hash_2words() look funny to me here:
> > +    uint32_t hash = hash_string(ip_s, (hash_2words(dp_key, port_key)));
> 
> Must be from all that Lisp programming I do on the side.
> 
> > s/Solictation/Solicitation/ in ovn-northd.8.xml.
> 
> Argh.  I knew I was going to do that somewhere.
> 
> I've added an incremental in case you're interested.

...

> @@ -605,7 +605,7 @@ pinctrl_handle_put_mac_binding(const struct flow *md,
>          hmap_insert(&put_mac_bindings, &pmb->hmap_node, hash);
>          pmb->dp_key = dp_key;
>          pmb->port_key = port_key;
> -        pmb->ip_s = xstrdup(ip_s);
> +        memcpy(pmb->ip_s, ip_s, sizeof pmb->ip_s);

This is a memcpy of a string?  Why not ovs_strlcpy?

Acked-by: Ben Pfaff <b...@ovn.org>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to