Commit 7afb380d authored by David S. Miller's avatar David S. Miller

Merge branch 'davem-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6

parents a4056573 208aefa2
...@@ -78,7 +78,7 @@ module_param_array_named(mac, mpc52xx_fec_mac_addr, byte, NULL, 0); ...@@ -78,7 +78,7 @@ module_param_array_named(mac, mpc52xx_fec_mac_addr, byte, NULL, 0);
MODULE_PARM_DESC(mac, "six hex digits, ie. 0x1,0x2,0xc0,0x01,0xba,0xbe"); MODULE_PARM_DESC(mac, "six hex digits, ie. 0x1,0x2,0xc0,0x01,0xba,0xbe");
#define MPC52xx_MESSAGES_DEFAULT ( NETIF_MSG_DRV | NETIF_MSG_PROBE | \ #define MPC52xx_MESSAGES_DEFAULT ( NETIF_MSG_DRV | NETIF_MSG_PROBE | \
NETIF_MSG_LINK | NETIF_MSG_IFDOWN | NETIF_MSG_IFDOWN ) NETIF_MSG_LINK | NETIF_MSG_IFDOWN | NETIF_MSG_IFUP)
static int debug = -1; /* the above default */ static int debug = -1; /* the above default */
module_param(debug, int, 0); module_param(debug, int, 0);
MODULE_PARM_DESC(debug, "debugging messages level"); MODULE_PARM_DESC(debug, "debugging messages level");
......
...@@ -577,12 +577,12 @@ static void ipg_nic_set_multicast_list(struct net_device *dev) ...@@ -577,12 +577,12 @@ static void ipg_nic_set_multicast_list(struct net_device *dev)
/* NIC to be configured in promiscuous mode. */ /* NIC to be configured in promiscuous mode. */
receivemode = IPG_RM_RECEIVEALLFRAMES; receivemode = IPG_RM_RECEIVEALLFRAMES;
} else if ((dev->flags & IFF_ALLMULTI) || } else if ((dev->flags & IFF_ALLMULTI) ||
(dev->flags & IFF_MULTICAST & ((dev->flags & IFF_MULTICAST) &&
(dev->mc_count > IPG_MULTICAST_HASHTABLE_SIZE))) { (dev->mc_count > IPG_MULTICAST_HASHTABLE_SIZE))) {
/* NIC to be configured to receive all multicast /* NIC to be configured to receive all multicast
* frames. */ * frames. */
receivemode |= IPG_RM_RECEIVEMULTICAST; receivemode |= IPG_RM_RECEIVEMULTICAST;
} else if (dev->flags & IFF_MULTICAST & (dev->mc_count > 0)) { } else if ((dev->flags & IFF_MULTICAST) && (dev->mc_count > 0)) {
/* NIC to be configured to receive selected /* NIC to be configured to receive selected
* multicast addresses. */ * multicast addresses. */
receivemode |= IPG_RM_RECEIVEMULTICASTHASH; receivemode |= IPG_RM_RECEIVEMULTICASTHASH;
......
...@@ -733,7 +733,7 @@ static void r6040_timer(unsigned long data) ...@@ -733,7 +733,7 @@ static void r6040_timer(unsigned long data)
} }
/* Timer active again */ /* Timer active again */
mod_timer(&lp->timer, jiffies + round_jiffies(HZ)); mod_timer(&lp->timer, round_jiffies(jiffies + HZ));
} }
/* Read/set MAC address routines */ /* Read/set MAC address routines */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment