Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/e1000_vf.c
Show First 20 Lines • Show All 425 Lines • ▼ Show 20 Lines | void e1000_update_mc_addr_list_vf(struct e1000_hw *hw, | ||||
msgbuf[0] = E1000_VF_SET_MULTICAST; | msgbuf[0] = E1000_VF_SET_MULTICAST; | ||||
msgbuf[0] |= mc_addr_count << E1000_VT_MSGINFO_SHIFT; | msgbuf[0] |= mc_addr_count << E1000_VT_MSGINFO_SHIFT; | ||||
for (i = 0; i < mc_addr_count; i++) { | for (i = 0; i < mc_addr_count; i++) { | ||||
hash_value = e1000_hash_mc_addr_vf(hw, mc_addr_list); | hash_value = e1000_hash_mc_addr_vf(hw, mc_addr_list); | ||||
DEBUGOUT1("Hash value = 0x%03X\n", hash_value); | DEBUGOUT1("Hash value = 0x%03X\n", hash_value); | ||||
hash_list[i] = hash_value & 0x0FFF; | hash_list[i] = hash_value & 0x0FFF; | ||||
mc_addr_list += ETH_ADDR_LEN; | mc_addr_list += ETHER_ADDR_LEN; | ||||
} | } | ||||
e1000_write_msg_read_ack(hw, msgbuf, E1000_VFMAILBOX_SIZE); | e1000_write_msg_read_ack(hw, msgbuf, E1000_VFMAILBOX_SIZE); | ||||
} | } | ||||
/** | /** | ||||
* e1000_vfta_set_vf - Set/Unset vlan filter table address | * e1000_vfta_set_vf - Set/Unset vlan filter table address | ||||
* @hw: pointer to the HW structure | * @hw: pointer to the HW structure | ||||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* e1000_read_mac_addr_vf - Read device MAC address | * e1000_read_mac_addr_vf - Read device MAC address | ||||
* @hw: pointer to the HW structure | * @hw: pointer to the HW structure | ||||
**/ | **/ | ||||
static s32 e1000_read_mac_addr_vf(struct e1000_hw *hw) | static s32 e1000_read_mac_addr_vf(struct e1000_hw *hw) | ||||
{ | { | ||||
int i; | int i; | ||||
for (i = 0; i < ETH_ADDR_LEN; i++) | for (i = 0; i < ETHER_ADDR_LEN; i++) | ||||
hw->mac.addr[i] = hw->mac.perm_addr[i]; | hw->mac.addr[i] = hw->mac.perm_addr[i]; | ||||
return E1000_SUCCESS; | return E1000_SUCCESS; | ||||
} | } | ||||
/** | /** | ||||
* e1000_check_for_link_vf - Check for link for a virtual interface | * e1000_check_for_link_vf - Check for link for a virtual interface | ||||
* @hw: pointer to the HW structure | * @hw: pointer to the HW structure | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |