Lines Matching refs:mac

647 	DP(BNX2X_MSG_SP, "Checking MAC %pM for ADD command\n", data->mac.mac);  in bnx2x_check_mac_add()
649 if (!is_valid_ether_addr(data->mac.mac)) in bnx2x_check_mac_add()
654 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && in bnx2x_check_mac_add()
655 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) in bnx2x_check_mac_add()
683 data->vlan_mac.mac, data->vlan_mac.vlan); in bnx2x_check_vlan_mac_add()
687 (!memcmp(data->vlan_mac.mac, pos->u.vlan_mac.mac, in bnx2x_check_vlan_mac_add()
704 DP(BNX2X_MSG_SP, "Checking MAC %pM for DEL command\n", data->mac.mac); in bnx2x_check_mac_del()
707 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && in bnx2x_check_mac_del()
708 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) in bnx2x_check_mac_del()
738 data->vlan_mac.mac, data->vlan_mac.vlan); in bnx2x_check_vlan_mac_del()
742 (!memcmp(data->vlan_mac.mac, pos->u.vlan_mac.mac, in bnx2x_check_vlan_mac_del()
895 u8 *mac = elem->cmd_data.vlan_mac.u.mac.mac; in bnx2x_set_one_mac_e2() local
916 bnx2x_set_mac_in_nig(bp, add, mac, in bnx2x_set_one_mac_e2()
919 bnx2x_set_mac_in_nig(bp, add, mac, in bnx2x_set_one_mac_e2()
929 &rule_entry->mac.header); in bnx2x_set_one_mac_e2()
932 (add ? "add" : "delete"), mac, raw->cl_id); in bnx2x_set_one_mac_e2()
935 bnx2x_set_fw_mac_addr(&rule_entry->mac.mac_msb, in bnx2x_set_one_mac_e2()
936 &rule_entry->mac.mac_mid, in bnx2x_set_one_mac_e2()
937 &rule_entry->mac.mac_lsb, mac); in bnx2x_set_one_mac_e2()
938 rule_entry->mac.inner_mac = in bnx2x_set_one_mac_e2()
939 cpu_to_le16(elem->cmd_data.vlan_mac.u.mac.is_inner_mac); in bnx2x_set_one_mac_e2()
950 &rule_entry->mac.header); in bnx2x_set_one_mac_e2()
953 bnx2x_set_fw_mac_addr(&rule_entry->mac.mac_msb, in bnx2x_set_one_mac_e2()
954 &rule_entry->mac.mac_mid, in bnx2x_set_one_mac_e2()
955 &rule_entry->mac.mac_lsb, mac); in bnx2x_set_one_mac_e2()
956 rule_entry->mac.inner_mac = in bnx2x_set_one_mac_e2()
958 u.mac.is_inner_mac); in bnx2x_set_one_mac_e2()
993 struct bnx2x_vlan_mac_obj *o, bool add, int opcode, u8 *mac, in bnx2x_vlan_mac_set_cfg_entry_e1x() argument
1012 &cfg_entry->lsb_mac_addr, mac); in bnx2x_vlan_mac_set_cfg_entry_e1x()
1020 u8 *mac, u16 vlan_id, int opcode, struct mac_configuration_cmd *config) in bnx2x_vlan_mac_set_rdata_e1x() argument
1027 bnx2x_vlan_mac_set_cfg_entry_e1x(bp, o, add, opcode, mac, vlan_id, in bnx2x_vlan_mac_set_rdata_e1x()
1032 mac, raw->cl_id, cam_offset); in bnx2x_vlan_mac_set_rdata_e1x()
1063 elem->cmd_data.vlan_mac.u.mac.mac, 0, in bnx2x_set_one_mac_e1x()
1130 u8 *mac = elem->cmd_data.vlan_mac.u.vlan_mac.mac; in bnx2x_set_one_vlan_mac_e2() local
1145 &rule_entry->pair.mac_lsb, mac); in bnx2x_set_one_vlan_mac_e2()
1165 &rule_entry->pair.mac_lsb, mac); in bnx2x_set_one_vlan_mac_e2()
1202 elem->cmd_data.vlan_mac.u.vlan_mac.mac, in bnx2x_set_one_vlan_mac_e1h()
1277 struct bnx2x_mac_ramrod_data *data = &elem->cmd_data.vlan_mac.u.mac; in bnx2x_exeq_get_mac()
1281 if (!memcmp(&pos->cmd_data.vlan_mac.u.mac, data, in bnx2x_exeq_get_mac()
2594 static inline u8 bnx2x_mcast_bin_from_mac(u8 *mac) in bnx2x_mcast_bin_from_mac() argument
2596 return (crc32c_le(0, mac, ETH_ALEN) >> 24) & 0xff; in bnx2x_mcast_bin_from_mac()
2601 u8 mac[ETH_ALEN]; member
2732 memcpy(mac_elem->mac, pos->mac, ETH_ALEN); in bnx2x_mcast_enqueue_cmd()
2851 bin = bnx2x_mcast_bin_from_mac(cfg_data->mac); in bnx2x_mcast_set_one_rule_e2()
2945 cfg_data.mac = &pmac_pos->mac[0]; in bnx2x_mcast_hdl_pending_add_e2()
2951 pmac_pos->mac); in bnx2x_mcast_hdl_pending_add_e2()
3032 int bin = bnx2x_mcast_bin_from_mac(pmac_pos->mac); in bnx2x_mcast_hdl_pending_set_e2_convert()
3035 pmac_pos->mac); in bnx2x_mcast_hdl_pending_set_e2_convert()
3176 cfg_data.mac = mlist_pos->mac; in bnx2x_mcast_hdl_add()
3182 mlist_pos->mac); in bnx2x_mcast_hdl_add()
3497 bit = bnx2x_mcast_bin_from_mac(mlist_pos->mac); in bnx2x_mcast_hdl_add_e1h()
3501 mlist_pos->mac, bit); in bnx2x_mcast_hdl_add_e1h()
3672 cfg_data->mac); in bnx2x_mcast_set_one_rule_e1()
3735 cfg_data.mac = &elem->mac[0]; in bnx2x_mcast_handle_restore_cmd_e1()
3741 cfg_data.mac); in bnx2x_mcast_handle_restore_cmd_e1()
3769 cfg_data.mac = &pmac_pos->mac[0]; in bnx2x_mcast_handle_pending_cmds_e1()
3775 pmac_pos->mac); in bnx2x_mcast_handle_pending_cmds_e1()
3809 __le16 *fw_lo, u8 *mac) in bnx2x_get_fw_mac_addr() argument
3811 mac[1] = ((u8 *)fw_hi)[0]; in bnx2x_get_fw_mac_addr()
3812 mac[0] = ((u8 *)fw_hi)[1]; in bnx2x_get_fw_mac_addr()
3813 mac[3] = ((u8 *)fw_mid)[0]; in bnx2x_get_fw_mac_addr()
3814 mac[2] = ((u8 *)fw_mid)[1]; in bnx2x_get_fw_mac_addr()
3815 mac[5] = ((u8 *)fw_lo)[0]; in bnx2x_get_fw_mac_addr()
3816 mac[4] = ((u8 *)fw_lo)[1]; in bnx2x_get_fw_mac_addr()
3860 elem->mac); in bnx2x_mcast_refresh_registry_e1()
3862 elem->mac); in bnx2x_mcast_refresh_registry_e1()