aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/asix.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/usb/asix.c')
-rw-r--r--drivers/net/usb/asix.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c
index a516185cbc9f..f02551713b13 100644
--- a/drivers/net/usb/asix.c
+++ b/drivers/net/usb/asix.c
@@ -542,9 +542,9 @@ static void asix_set_multicast(struct net_device *net)
542 if (net->flags & IFF_PROMISC) { 542 if (net->flags & IFF_PROMISC) {
543 rx_ctl |= AX_RX_CTL_PRO; 543 rx_ctl |= AX_RX_CTL_PRO;
544 } else if (net->flags & IFF_ALLMULTI || 544 } else if (net->flags & IFF_ALLMULTI ||
545 net->mc_count > AX_MAX_MCAST) { 545 netdev_mc_count(net) > AX_MAX_MCAST) {
546 rx_ctl |= AX_RX_CTL_AMALL; 546 rx_ctl |= AX_RX_CTL_AMALL;
547 } else if (net->mc_count == 0) { 547 } else if (netdev_mc_empty(net)) {
548 /* just broadcast and directed */ 548 /* just broadcast and directed */
549 } else { 549 } else {
550 /* We use the 20 byte dev->data 550 /* We use the 20 byte dev->data
@@ -558,7 +558,7 @@ static void asix_set_multicast(struct net_device *net)
558 memset(data->multi_filter, 0, AX_MCAST_FILTER_SIZE); 558 memset(data->multi_filter, 0, AX_MCAST_FILTER_SIZE);
559 559
560 /* Build the multicast hash filter. */ 560 /* Build the multicast hash filter. */
561 for (i = 0; i < net->mc_count; i++) { 561 for (i = 0; i < netdev_mc_count(net); i++) {
562 crc_bits = 562 crc_bits =
563 ether_crc(ETH_ALEN, 563 ether_crc(ETH_ALEN,
564 mc_list->dmi_addr) >> 26; 564 mc_list->dmi_addr) >> 26;
@@ -754,9 +754,9 @@ static void ax88172_set_multicast(struct net_device *net)
754 if (net->flags & IFF_PROMISC) { 754 if (net->flags & IFF_PROMISC) {
755 rx_ctl |= 0x01; 755 rx_ctl |= 0x01;
756 } else if (net->flags & IFF_ALLMULTI || 756 } else if (net->flags & IFF_ALLMULTI ||
757 net->mc_count > AX_MAX_MCAST) { 757 netdev_mc_count(net) > AX_MAX_MCAST) {
758 rx_ctl |= 0x02; 758 rx_ctl |= 0x02;
759 } else if (net->mc_count == 0) { 759 } else if (netdev_mc_empty(net)) {
760 /* just broadcast and directed */ 760 /* just broadcast and directed */
761 } else { 761 } else {
762 /* We use the 20 byte dev->data 762 /* We use the 20 byte dev->data
@@ -770,7 +770,7 @@ static void ax88172_set_multicast(struct net_device *net)
770 memset(data->multi_filter, 0, AX_MCAST_FILTER_SIZE); 770 memset(data->multi_filter, 0, AX_MCAST_FILTER_SIZE);
771 771
772 /* Build the multicast hash filter. */ 772 /* Build the multicast hash filter. */
773 for (i = 0; i < net->mc_count; i++) { 773 for (i = 0; i < netdev_mc_count(net); i++) {
774 crc_bits = 774 crc_bits =
775 ether_crc(ETH_ALEN, 775 ether_crc(ETH_ALEN,
776 mc_list->dmi_addr) >> 26; 776 mc_list->dmi_addr) >> 26;