|
@@ -597,14 +597,14 @@ static u32 hash_get(u8 *addr)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * hash_add - Hash function to add mac addr from hash table
|
|
|
|
|
|
+ * emac_hash_add - Hash function to add mac addr from hash table
|
|
* @priv: The DaVinci EMAC private adapter structure
|
|
* @priv: The DaVinci EMAC private adapter structure
|
|
* @mac_addr: mac address to delete from hash table
|
|
* @mac_addr: mac address to delete from hash table
|
|
*
|
|
*
|
|
* Adds mac address to the internal hash table
|
|
* Adds mac address to the internal hash table
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
-static int hash_add(struct emac_priv *priv, u8 *mac_addr)
|
|
|
|
|
|
+static int emac_hash_add(struct emac_priv *priv, u8 *mac_addr)
|
|
{
|
|
{
|
|
struct device *emac_dev = &priv->ndev->dev;
|
|
struct device *emac_dev = &priv->ndev->dev;
|
|
u32 rc = 0;
|
|
u32 rc = 0;
|
|
@@ -613,7 +613,7 @@ static int hash_add(struct emac_priv *priv, u8 *mac_addr)
|
|
|
|
|
|
if (hash_value >= EMAC_NUM_MULTICAST_BITS) {
|
|
if (hash_value >= EMAC_NUM_MULTICAST_BITS) {
|
|
if (netif_msg_drv(priv)) {
|
|
if (netif_msg_drv(priv)) {
|
|
- dev_err(emac_dev, "DaVinci EMAC: hash_add(): Invalid "\
|
|
|
|
|
|
+ dev_err(emac_dev, "DaVinci EMAC: emac_hash_add(): Invalid "\
|
|
"Hash %08x, should not be greater than %08x",
|
|
"Hash %08x, should not be greater than %08x",
|
|
hash_value, (EMAC_NUM_MULTICAST_BITS - 1));
|
|
hash_value, (EMAC_NUM_MULTICAST_BITS - 1));
|
|
}
|
|
}
|
|
@@ -639,14 +639,14 @@ static int hash_add(struct emac_priv *priv, u8 *mac_addr)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * hash_del - Hash function to delete mac addr from hash table
|
|
|
|
|
|
+ * emac_hash_del - Hash function to delete mac addr from hash table
|
|
* @priv: The DaVinci EMAC private adapter structure
|
|
* @priv: The DaVinci EMAC private adapter structure
|
|
* @mac_addr: mac address to delete from hash table
|
|
* @mac_addr: mac address to delete from hash table
|
|
*
|
|
*
|
|
* Removes mac address from the internal hash table
|
|
* Removes mac address from the internal hash table
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
-static int hash_del(struct emac_priv *priv, u8 *mac_addr)
|
|
|
|
|
|
+static int emac_hash_del(struct emac_priv *priv, u8 *mac_addr)
|
|
{
|
|
{
|
|
u32 hash_value;
|
|
u32 hash_value;
|
|
u32 hash_bit;
|
|
u32 hash_bit;
|
|
@@ -696,10 +696,10 @@ static void emac_add_mcast(struct emac_priv *priv, u32 action, u8 *mac_addr)
|
|
|
|
|
|
switch (action) {
|
|
switch (action) {
|
|
case EMAC_MULTICAST_ADD:
|
|
case EMAC_MULTICAST_ADD:
|
|
- update = hash_add(priv, mac_addr);
|
|
|
|
|
|
+ update = emac_hash_add(priv, mac_addr);
|
|
break;
|
|
break;
|
|
case EMAC_MULTICAST_DEL:
|
|
case EMAC_MULTICAST_DEL:
|
|
- update = hash_del(priv, mac_addr);
|
|
|
|
|
|
+ update = emac_hash_del(priv, mac_addr);
|
|
break;
|
|
break;
|
|
case EMAC_ALL_MULTI_SET:
|
|
case EMAC_ALL_MULTI_SET:
|
|
update = 1;
|
|
update = 1;
|