This section describes how to assign CPU resources to a datalink by configuring the cpu property. Unlike rings, you cannot allocate CPUs exclusively for a datalink. You can allocate the same set of CPUs to multiple datalinks.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
# dladm show-linkprop -p cpus link
A list of CPUs that process packets for the datalink. Interrupts for the datalink might also be targeted to one of the CPUs in the list.
# dladm set-linkprop -p cpus=cpu1,cpu2,... link
Refers to the CPU number that you want to assign to the link. You can dedicate multiple CPUs to the link.
# dladm show-linkprop -p cpus link
This example shows how to dedicate specific CPUs to the datalink net0.
# dladm show-linkprop -p cpus net0 LINK PROPERTY PERM VALUE EFFECTIVE DEFAULT POSSIBLE net0 cpus rw -- 0-2 -- --
The output shows that the system has implicitly assigned three CPUs (0-2) to the datalink net0. However, the CPUs are not exclusively allocated to the datalink net0.
# dladm set-linkprop -p cpus=0,1 net0 # dladm show-linkprop -p cpus net0 LINK PROPERTY PERM VALUE EFFECTIVE DEFAULT POSSIBLE net0 cpus rw 0-1 0-1 -- --
The output shows that you have explicitly assigned two CPUs (0-1) to the datalink net0. The allocated CPUs will process packets for the datalink net0.