Hi Hussein,
It’s for both, you can verify this by looking at the SDM template and MAC address table of the switch:
SW1#show sdm prefer | include unicast mac
number of unicast mac addresses: 8K
SW1#show mac address-table count | include Space
Total Mac Address Space Available: 8048
An L2 switch still has a TCAM table, they can do things like access-lists where we also use the TCAM.
You can see the content of the TCAM table for L2 entries with show platform tcam table l2 detail
or show platform tcam table mac-address detail
.
For some MAC addresses, it shows the mask (FFFF.FFFF.FFFF) which is an exact match.