Lines Matching refs:mps_macs
85 const uint8_t *tlvs, uint8_t mps_macs,
461 * plus the possible MAC address(es) to mpc->mps_macs.
462 * For a freshly allocated MPOA client mpc->mps_macs == 0.
466 const uint8_t *tlvs, uint8_t mps_macs,
470 num_macs = (mps_macs > 1) ? mps_macs : 1;
474 kfree(mpc->mps_macs);
476 mpc->mps_macs = kmalloc_array(ETH_ALEN, num_macs, GFP_KERNEL);
477 if (mpc->mps_macs == NULL) {
482 ether_addr_copy(mpc->mps_macs, router_mac);
484 if (mps_macs > 0)
485 memcpy(mpc->mps_macs, tlvs, mps_macs*ETH_ALEN);
486 tlvs += mps_macs*ETH_ALEN;
595 if (ether_addr_equal(eth->h_dest, mpc->mps_macs + i * ETH_ALEN))
1376 kfree(client->mps_macs);
1378 client->mps_macs = kmemdup(msg->MPS_ctrl, ETH_ALEN, GFP_KERNEL);
1379 if (client->mps_macs == NULL) {
1514 kfree(mpc->mps_macs);