Lines Matching defs:mcast
2448 struct ecore_filter_mcast *mcast;
2454 mcast = &ha->ecore_mcast;
2455 bzero(mcast, sizeof(struct ecore_filter_mcast));
2458 mcast->opcode = ECORE_FILTER_ADD;
2460 mcast->opcode = ECORE_FILTER_REMOVE;
2462 mcast->num_mc_addrs = 1;
2463 memcpy(mcast->mac, mac_addr, ETH_ALEN);
2465 rc = ecore_filter_mcast_cmd(cdev, mcast, ECORE_SPQ_MODE_CB, NULL);
2476 if (QL_MAC_CMP(ha->mcast[i].addr, mta) == 0)
2481 if ((ha->mcast[i].addr[0] == 0) &&
2482 (ha->mcast[i].addr[1] == 0) &&
2483 (ha->mcast[i].addr[2] == 0) &&
2484 (ha->mcast[i].addr[3] == 0) &&
2485 (ha->mcast[i].addr[4] == 0) &&
2486 (ha->mcast[i].addr[5] == 0)) {
2490 bcopy(mta, ha->mcast[i].addr, ETH_ALEN);
2505 if (QL_MAC_CMP(ha->mcast[i].addr, mta) == 0) {
2509 ha->mcast[i].addr[0] = 0;
2510 ha->mcast[i].addr[1] = 0;
2511 ha->mcast[i].addr[2] = 0;
2512 ha->mcast[i].addr[3] = 0;
2513 ha->mcast[i].addr[4] = 0;
2514 ha->mcast[i].addr[5] = 0;
6982 struct ecore_filter_mcast *mcast;
6988 mcast = &ha->ecore_mcast;
6989 bzero(mcast, sizeof(struct ecore_filter_mcast));
6991 mcast->opcode = ECORE_FILTER_REMOVE;
6994 if (ha->mcast[i].addr[0] || ha->mcast[i].addr[1] ||
6995 ha->mcast[i].addr[2] || ha->mcast[i].addr[3] ||
6996 ha->mcast[i].addr[4] || ha->mcast[i].addr[5]) {
6997 memcpy(&mcast->mac[i][0], &ha->mcast[i].addr[0], ETH_ALEN);
6998 mcast->num_mc_addrs++;
7001 mcast = &ha->ecore_mcast;
7003 rc = ecore_filter_mcast_cmd(cdev, mcast, ECORE_SPQ_MODE_CB, NULL);
7005 bzero(ha->mcast, (sizeof(qlnx_mcast_t) * QLNX_MAX_NUM_MULTICAST_ADDRS));