|MC_UNICST(9E)||Driver Entry Points||MC_UNICST(9E)|
const uint8_t *mac);
mc_unicst() entry point is used by the GLDv3 to indicate that the device driver should update the primary MAC address of the device. In the basic mode of operation, this entry point is required and the device has a single primary MAC address. If multiple MAC addresses are required, the device will be placed into promiscuous mode. This call should overwrite the existing MAC address that is programmed into the device.
As noted in the PARAMETERS section, the mac array is guaranteed to be at least as many bytes as is required to specify an address; however, it should be assumed to be no longer than that value.
The device driver can optionally assert that the address is in the valid form for a unicast address and then program the device. The device driver can access its device soft state by casting the device pointer to the appropriate structure. As this may be called while other operations are ongoing, the device driver should employ the appropriate locking while updating the data.
It is recommended that device drivers always maintain a copy of the current unicast address in its soft state so that way it can recover from various device reset and errors or handle requests to suspend and resume the device that may result in device registers being cleared.
Some devices support multiple MAC address filters. The
mc_unicst() entry point only supports a single MAC
address. In this case, devices should only use a single MAC address and
replace that MAC address. Support for using more than a single MAC address
filter will be provided by future interfaces.
|May 31, 2016||OmniOS|