diff options
Diffstat (limited to 'drivers/net/octeon')
-rw-r--r-- | drivers/net/octeon/octeon_mgmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/octeon/octeon_mgmt.c b/drivers/net/octeon/octeon_mgmt.c index 6fd8789ef487..3a0f910924a5 100644 --- a/drivers/net/octeon/octeon_mgmt.c +++ b/drivers/net/octeon/octeon_mgmt.c | |||
@@ -493,8 +493,8 @@ static void octeon_mgmt_set_rx_filtering(struct net_device *netdev) | |||
493 | } | 493 | } |
494 | 494 | ||
495 | if (netdev->flags & IFF_MULTICAST) { | 495 | if (netdev->flags & IFF_MULTICAST) { |
496 | if (cam_mode == 0 || (netdev->flags & IFF_ALLMULTI) | 496 | if (cam_mode == 0 || (netdev->flags & IFF_ALLMULTI) || |
497 | || netdev->mc_count > available_cam_entries) | 497 | netdev_mc_count(netdev) > available_cam_entries) |
498 | multicast_mode = 2; /* 1 - Accept all multicast. */ | 498 | multicast_mode = 2; /* 1 - Accept all multicast. */ |
499 | else | 499 | else |
500 | multicast_mode = 0; /* 0 - Use CAM. */ | 500 | multicast_mode = 0; /* 0 - Use CAM. */ |
@@ -511,7 +511,7 @@ static void octeon_mgmt_set_rx_filtering(struct net_device *netdev) | |||
511 | } | 511 | } |
512 | } | 512 | } |
513 | if (multicast_mode == 0) { | 513 | if (multicast_mode == 0) { |
514 | i = netdev->mc_count; | 514 | i = netdev_mc_count(netdev); |
515 | list = netdev->mc_list; | 515 | list = netdev->mc_list; |
516 | while (i--) { | 516 | while (i--) { |
517 | octeon_mgmt_cam_state_add(&cam_state, list->da_addr); | 517 | octeon_mgmt_cam_state_add(&cam_state, list->da_addr); |