On Mar 12, 2013, at 3:10 PM, Ben Pfaff <[email protected]> wrote:

> On Tue, Mar 12, 2013 at 03:07:21PM -0700, Justin Pettit wrote:
>> 
>> On Mar 12, 2013, at 2:55 PM, Ben Pfaff <[email protected]> wrote:
>> 
>>> On Tue, Mar 12, 2013 at 02:51:17PM -0700, Justin Pettit wrote:
>>>> @@ -1735,6 +1737,16 @@ iface_refresh_status(struct iface *iface)
>>>>    else {
>>>>        ovsrec_interface_set_mtu(iface->cfg, NULL, 0);
>>>>    }
>>>> +
>>>> +    error = netdev_get_etheraddr(iface->netdev, mac);
>>>> +    if (!error) {
>>>> +        char *mac_string = xasprintf(ETH_ADDR_FMT, ETH_ADDR_ARGS(mac));
>>> 
>>> Could we please use a local char[] buffer here and snprintf(), instead
>>> of xasprintf()?  We do too many malloc()s on our fast paths anyhow.
>> 
>> Yeah, the thought occurred to me, too.  It wasn't exactly on the
>> fastpath, but I agree statically would be better.  How about the
>> following incremental?
> 
> That's good, thank you.

Thanks.  I pushed this to master and branch-1.10.

--Justin


_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to