1. 02 11月, 2015 1 次提交
    • E
      net: Convert to new qapi union layout · 8d0bcba8
      Eric Blake 提交于
      We have two issues with our qapi union layout:
      1) Even though the QMP wire format spells the tag 'type', the
      C code spells it 'kind', requiring some hacks in the generator.
      2) The C struct uses an anonymous union, which places all tag
      values in the same namespace as all non-variant members. This
      leads to spurious collisions if a tag value matches a non-variant
      member's name.
      
      Make the conversion to the new layout for net-related code.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1445898903-12082-18-git-send-email-eblake@redhat.com>
      [Commit message tweaked slightly]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      8d0bcba8
  2. 23 6月, 2015 1 次提交
  3. 12 6月, 2015 2 次提交
  4. 27 5月, 2015 1 次提交
    • M
      net: Permit incremental conversion of init functions to Error · a30ecde6
      Markus Armbruster 提交于
      Error reporting for netdev_add is broken: the net_client_init_fun[]
      report the actual errors with (at best) error_report(), and their
      caller net_client_init1() makes up a generic error on top.
      
      For command line and HMP, this produces an mildly ugly error cascade.
      
      In QMP, the actual errors go to stderr, and the generic error becomes
      the command's error reply.
      
      To fix this, we need to convert the net_client_init_fun[] to Error.
      
      To permit fixing them one by one, add an Error ** parameter to the
      net_client_init_fun[].  If the call fails without returning an Error,
      make up the same generic Error as before.  But if it returns one, use
      that instead.  Since none of them does so far, no functional change.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 1431691143-1015-3-git-send-email-armbru@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      a30ecde6
  5. 19 12月, 2014 2 次提交
  6. 17 11月, 2014 1 次提交
  7. 14 11月, 2014 1 次提交
  8. 27 6月, 2014 1 次提交
    • A
      net: L2TPv3 transport · 3fb69aa1
      Anton Ivanov 提交于
      This transport allows to connect a QEMU nic to a static Ethernet
      over L2TPv3 tunnel. The transport supports all options present
      in the Linux kernel implementation. It allows QEMU to connect
      to any Linux host running kernel 3.3+, most routers and network
      devices as well as other QEMU instances.
      
      [Fixed up net_client_init1() switch statement to support -netdev
      --Stefan]
      Signed-off-by: NAnton Ivanov <antivano@cisco.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      3fb69aa1