On Mon, May 29, 2017 at 04:08:03AM +0000, Zhenyu Gao wrote:
> 1. We don't need to initialize sock,msg in before calling sendmsg each time
> Just initialize them before the loop, it can reduce cpu cycles.
>
> Signed-off-by: Zhenyu Gao <[email protected]>
Thanks for working on OVS.
GCC reports the following, and I think that it is right. Can you take a
look?
../lib/netdev-linux.c:1247:20: error: 'sock' may be used uninitialized in this
function [-Werror=maybe-uninitialized]
retval = sendmsg(sock, &msg, 0);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev