Commit 54c59b4d authored by Vincenzo Maffione's avatar Vincenzo Maffione Committed by Jason Wang
Browse files

net: netmap: Fix compilation issue



Reorganization of struct NetClientOptions (commit e4ba22b3) caused a
compilation failure of the netmap backend. This patch fixes the issue
by properly accessing the union field.

Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
Signed-off-by: default avatarVincenzo Maffione <v.maffione@gmail.com>
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
parent ba63ec85
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -439,7 +439,7 @@ int net_init_netmap(const NetClientOptions *opts,
                    const char *name, NetClientState *peer, Error **errp)
{
    /* FIXME error_setg(errp, ...) on failure */
    const NetdevNetmapOptions *netmap_opts = opts->netmap;
    const NetdevNetmapOptions *netmap_opts = opts->u.netmap;
    NetClientState *nc;
    NetmapPriv me;
    NetmapState *s;