aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r--drivers/net/virtio_net.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 3f5be35dea25..ecec9a8527f3 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -721,7 +721,6 @@ static void virtnet_set_rx_mode(struct net_device *dev)
721 struct scatterlist sg[2]; 721 struct scatterlist sg[2];
722 u8 promisc, allmulti; 722 u8 promisc, allmulti;
723 struct virtio_net_ctrl_mac *mac_data; 723 struct virtio_net_ctrl_mac *mac_data;
724 struct dev_addr_list *addr;
725 struct netdev_hw_addr *ha; 724 struct netdev_hw_addr *ha;
726 int uc_count; 725 int uc_count;
727 int mc_count; 726 int mc_count;
@@ -778,8 +777,8 @@ static void virtnet_set_rx_mode(struct net_device *dev)
778 777
779 mac_data->entries = mc_count; 778 mac_data->entries = mc_count;
780 i = 0; 779 i = 0;
781 netdev_for_each_mc_addr(addr, dev) 780 netdev_for_each_mc_addr(ha, dev)
782 memcpy(&mac_data->macs[i++][0], addr->da_addr, ETH_ALEN); 781 memcpy(&mac_data->macs[i++][0], ha->addr, ETH_ALEN);
783 782
784 sg_set_buf(&sg[1], mac_data, 783 sg_set_buf(&sg[1], mac_data,
785 sizeof(mac_data->entries) + (mc_count * ETH_ALEN)); 784 sizeof(mac_data->entries) + (mc_count * ETH_ALEN));