« Previous | Next » 

Revision c1671a08

IDc1671a0876e87c6bd2b38f2966e1e3f8865117a6

Added by Mark McLoughlin over 14 years ago

net: fix multiple NICs causing net opts process to stop

For NICs, net_init_client() returns the index into the NICInfo table.

qemu_opts_foreach() interprets non-zero as an error return an stops
iterating over the options.

So, if you have more than one '-net nic' on the command line, subsequent
'-net' options do not get processed.

Fix this by making net_client_init() only return non-zero if
net_init_client() returns an error.

Reported-by: Peter Lieven <>
Patchworks-ID: 35736
Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences