From: Lei Xia Date: Thu, 3 Nov 2011 19:35:04 +0000 (-0500) Subject: Minor Fix to NE2000 and RTL8139 NIC X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=603f73496c7025fc3929f209fd4185627370751c;p=palacios.git Minor Fix to NE2000 and RTL8139 NIC --- diff --git a/palacios/src/devices/ne2k.c b/palacios/src/devices/ne2k.c index bc51c78..d4e8852 100644 --- a/palacios/src/devices/ne2k.c +++ b/palacios/src/devices/ne2k.c @@ -1175,8 +1175,9 @@ static int connect_fn(struct v3_vm_info * info, nic_state->backend_data = private_data; ops->recv = ne2k_rx; - ops->poll = NULL; - memcpy(ops->config.fnt_mac, nic_state->mac, ETH_ALEN); + ops->poll = NULL; + ops->config.frontend_data = nic_state; + ops->config.fnt_mac = nic_state->mac; return 0; } diff --git a/palacios/src/devices/rtl8139.c b/palacios/src/devices/rtl8139.c index 0a1a335..176d053 100644 --- a/palacios/src/devices/rtl8139.c +++ b/palacios/src/devices/rtl8139.c @@ -1774,7 +1774,8 @@ static int connect_fn(struct v3_vm_info * info, ops->recv = rtl8139_rx; ops->poll = NULL; - memcpy(ops->config.fnt_mac, nic_state->mac, ETH_ALEN); + ops->config.frontend_data = nic_state; + ops->config.fnt_mac = nic_state->mac; return 0; }