All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/4] Clean ups in net/net.c
@ 2019-05-09 13:03 Stefano Garzarella
  2019-05-09 13:03 ` [Qemu-devel] [PATCH v2 1/4] net: fix assertion failure when ipv6-prefixlen is not a number Stefano Garzarella
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Stefano Garzarella @ 2019-05-09 13:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jason Wang, Markus Armbruster

This series is a follow up of "[PATCH] net: avoid to use variable length
array in net_client_init()" [1], so it contains the v2 of that patch,
plus other new related patches.

I discovered an assertion failure while I was testing the patches, so I
added the patch 1 to solve this issue.

Following the Markus' advice, I modified the parsing of IPv6 prefix
(patch 2) and IPv4 host:port (patch 3). Then I removed the get_str_sep()
function (patch 4) because it is no longer used.

@Markus, I modified a little bit what you suggested, introducing
g_strsplit() in order to de-duplicate the qemu_opt_set() and
qemu_opt_set_number(). I hope it's good for you.

v2:
 - Added patches 1,3 and 4
 - Patch 2:
   - clean up parsing of IPv6 prefix [Markus]
   - fixed subject line [Eric]

[1] https://www.mail-archive.com/qemu-devel@nongnu.org/msg614561.html

Stefano Garzarella (4):
  net: fix assertion failure when ipv6-prefixlen is not a number
  net: avoid using variable length array in net_client_init()
  net: use g_strsplit() for parsing host address and port
  net: remove unused get_str_sep() function

 net/net.c | 101 +++++++++++++++++++++++++++---------------------------
 1 file changed, 51 insertions(+), 50 deletions(-)

-- 
2.20.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-05-16 11:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-09 13:03 [Qemu-devel] [PATCH v2 0/4] Clean ups in net/net.c Stefano Garzarella
2019-05-09 13:03 ` [Qemu-devel] [PATCH v2 1/4] net: fix assertion failure when ipv6-prefixlen is not a number Stefano Garzarella
2019-05-16  8:26   ` Markus Armbruster
2019-05-09 13:03 ` [Qemu-devel] [PATCH v2 2/4] net: avoid using variable length array in net_client_init() Stefano Garzarella
2019-05-16  8:44   ` Markus Armbruster
2019-05-16 11:41     ` Stefano Garzarella
2019-05-09 13:03 ` [Qemu-devel] [PATCH v2 3/4] net: use g_strsplit() for parsing host address and port Stefano Garzarella
2019-05-16  8:46   ` Markus Armbruster
2019-05-09 13:03 ` [Qemu-devel] [PATCH v2 4/4] net: remove unused get_str_sep() function Stefano Garzarella
2019-05-16  8:47   ` Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.