Lines Matching refs:mac
645 DP(BNX2X_MSG_SP, "Checking MAC %pM for ADD command\n", data->mac.mac); in bnx2x_check_mac_add()
647 if (!is_valid_ether_addr(data->mac.mac)) in bnx2x_check_mac_add()
652 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && in bnx2x_check_mac_add()
653 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) in bnx2x_check_mac_add()
681 data->vlan_mac.mac, data->vlan_mac.vlan); in bnx2x_check_vlan_mac_add()
685 (!memcmp(data->vlan_mac.mac, pos->u.vlan_mac.mac, in bnx2x_check_vlan_mac_add()
702 DP(BNX2X_MSG_SP, "Checking MAC %pM for DEL command\n", data->mac.mac); in bnx2x_check_mac_del()
705 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && in bnx2x_check_mac_del()
706 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) in bnx2x_check_mac_del()
736 data->vlan_mac.mac, data->vlan_mac.vlan); in bnx2x_check_vlan_mac_del()
740 (!memcmp(data->vlan_mac.mac, pos->u.vlan_mac.mac, in bnx2x_check_vlan_mac_del()
893 u8 *mac = elem->cmd_data.vlan_mac.u.mac.mac; in bnx2x_set_one_mac_e2() local
914 bnx2x_set_mac_in_nig(bp, add, mac, in bnx2x_set_one_mac_e2()
917 bnx2x_set_mac_in_nig(bp, add, mac, in bnx2x_set_one_mac_e2()
927 &rule_entry->mac.header); in bnx2x_set_one_mac_e2()
930 (add ? "add" : "delete"), mac, raw->cl_id); in bnx2x_set_one_mac_e2()
933 bnx2x_set_fw_mac_addr(&rule_entry->mac.mac_msb, in bnx2x_set_one_mac_e2()
934 &rule_entry->mac.mac_mid, in bnx2x_set_one_mac_e2()
935 &rule_entry->mac.mac_lsb, mac); in bnx2x_set_one_mac_e2()
936 rule_entry->mac.inner_mac = in bnx2x_set_one_mac_e2()
937 cpu_to_le16(elem->cmd_data.vlan_mac.u.mac.is_inner_mac); in bnx2x_set_one_mac_e2()
948 &rule_entry->mac.header); in bnx2x_set_one_mac_e2()
951 bnx2x_set_fw_mac_addr(&rule_entry->mac.mac_msb, in bnx2x_set_one_mac_e2()
952 &rule_entry->mac.mac_mid, in bnx2x_set_one_mac_e2()
953 &rule_entry->mac.mac_lsb, mac); in bnx2x_set_one_mac_e2()
954 rule_entry->mac.inner_mac = in bnx2x_set_one_mac_e2()
956 u.mac.is_inner_mac); in bnx2x_set_one_mac_e2()
991 struct bnx2x_vlan_mac_obj *o, bool add, int opcode, u8 *mac, in bnx2x_vlan_mac_set_cfg_entry_e1x() argument
1010 &cfg_entry->lsb_mac_addr, mac); in bnx2x_vlan_mac_set_cfg_entry_e1x()
1018 u8 *mac, u16 vlan_id, int opcode, struct mac_configuration_cmd *config) in bnx2x_vlan_mac_set_rdata_e1x() argument
1025 bnx2x_vlan_mac_set_cfg_entry_e1x(bp, o, add, opcode, mac, vlan_id, in bnx2x_vlan_mac_set_rdata_e1x()
1030 mac, raw->cl_id, cam_offset); in bnx2x_vlan_mac_set_rdata_e1x()
1061 elem->cmd_data.vlan_mac.u.mac.mac, 0, in bnx2x_set_one_mac_e1x()
1128 u8 *mac = elem->cmd_data.vlan_mac.u.vlan_mac.mac; in bnx2x_set_one_vlan_mac_e2() local
1143 &rule_entry->pair.mac_lsb, mac); in bnx2x_set_one_vlan_mac_e2()
1163 &rule_entry->pair.mac_lsb, mac); in bnx2x_set_one_vlan_mac_e2()
1200 elem->cmd_data.vlan_mac.u.vlan_mac.mac, in bnx2x_set_one_vlan_mac_e1h()
1275 struct bnx2x_mac_ramrod_data *data = &elem->cmd_data.vlan_mac.u.mac; in bnx2x_exeq_get_mac()
1279 if (!memcmp(&pos->cmd_data.vlan_mac.u.mac, data, in bnx2x_exeq_get_mac()
2592 static inline u8 bnx2x_mcast_bin_from_mac(u8 *mac) in bnx2x_mcast_bin_from_mac() argument
2594 return (crc32c_le(0, mac, ETH_ALEN) >> 24) & 0xff; in bnx2x_mcast_bin_from_mac()
2599 u8 mac[ETH_ALEN]; member
2672 memcpy(cur_mac->mac, pos->mac, ETH_ALEN); in bnx2x_mcast_enqueue_cmd()
2782 bin = bnx2x_mcast_bin_from_mac(cfg_data->mac); in bnx2x_mcast_set_one_rule_e2()
2866 cfg_data.mac = &pmac_pos->mac[0]; in bnx2x_mcast_hdl_pending_add_e2()
2872 pmac_pos->mac); in bnx2x_mcast_hdl_pending_add_e2()
2988 cfg_data.mac = mlist_pos->mac; in bnx2x_mcast_hdl_add()
2994 mlist_pos->mac); in bnx2x_mcast_hdl_add()
3284 bit = bnx2x_mcast_bin_from_mac(mlist_pos->mac); in bnx2x_mcast_hdl_add_e1h()
3288 mlist_pos->mac, bit); in bnx2x_mcast_hdl_add_e1h()
3453 cfg_data->mac); in bnx2x_mcast_set_one_rule_e1()
3516 cfg_data.mac = &elem->mac[0]; in bnx2x_mcast_handle_restore_cmd_e1()
3522 cfg_data.mac); in bnx2x_mcast_handle_restore_cmd_e1()
3550 cfg_data.mac = &pmac_pos->mac[0]; in bnx2x_mcast_handle_pending_cmds_e1()
3556 pmac_pos->mac); in bnx2x_mcast_handle_pending_cmds_e1()
3589 __le16 *fw_lo, u8 *mac) in bnx2x_get_fw_mac_addr() argument
3591 mac[1] = ((u8 *)fw_hi)[0]; in bnx2x_get_fw_mac_addr()
3592 mac[0] = ((u8 *)fw_hi)[1]; in bnx2x_get_fw_mac_addr()
3593 mac[3] = ((u8 *)fw_mid)[0]; in bnx2x_get_fw_mac_addr()
3594 mac[2] = ((u8 *)fw_mid)[1]; in bnx2x_get_fw_mac_addr()
3595 mac[5] = ((u8 *)fw_lo)[0]; in bnx2x_get_fw_mac_addr()
3596 mac[4] = ((u8 *)fw_lo)[1]; in bnx2x_get_fw_mac_addr()
3640 elem->mac); in bnx2x_mcast_refresh_registry_e1()
3642 elem->mac); in bnx2x_mcast_refresh_registry_e1()