diff options
Diffstat (limited to 'drivers/net/benet/be_main.c')
-rw-r--r-- | drivers/net/benet/be_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 626b76c0ebc7..0014a4e86446 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -565,14 +565,15 @@ static void be_set_multicast_list(struct net_device *netdev) | |||
565 | } | 565 | } |
566 | 566 | ||
567 | /* Enable multicast promisc if num configured exceeds what we support */ | 567 | /* Enable multicast promisc if num configured exceeds what we support */ |
568 | if (netdev->flags & IFF_ALLMULTI || netdev->mc_count > BE_MAX_MC) { | 568 | if (netdev->flags & IFF_ALLMULTI || |
569 | netdev_mc_count(netdev) > BE_MAX_MC) { | ||
569 | be_cmd_multicast_set(adapter, adapter->if_handle, NULL, 0, | 570 | be_cmd_multicast_set(adapter, adapter->if_handle, NULL, 0, |
570 | &adapter->mc_cmd_mem); | 571 | &adapter->mc_cmd_mem); |
571 | goto done; | 572 | goto done; |
572 | } | 573 | } |
573 | 574 | ||
574 | be_cmd_multicast_set(adapter, adapter->if_handle, netdev->mc_list, | 575 | be_cmd_multicast_set(adapter, adapter->if_handle, netdev->mc_list, |
575 | netdev->mc_count, &adapter->mc_cmd_mem); | 576 | netdev_mc_count(netdev), &adapter->mc_cmd_mem); |
576 | done: | 577 | done: |
577 | return; | 578 | return; |
578 | } | 579 | } |