You can allocate network resources to datalinks to increase the system's efficiency to process packets. You can allocate network resources by setting datalink properties when you create a datalink. Alternatively, you can set datalink properties to an existing datalink. You can set the following datalink properties to allocate network resources to a datalink by using the dladm command:
maxbw – Specifies the maximum amount of bandwidth that you can allocate to a datalink. For more information, see Use Case: Managing Network Resources by Setting Datalink and Flow Properties.
rxrings and txrings – Specifies the number of receive rings and transmit rings of a NIC that you can assign to a specific datalink. For more information, see Managing NIC Rings.
pool – Specifies the name of the CPU pool containing sets of CPU that you can assign to a datalink to manage network processes efficiently. For more information, see Managing Pools and CPUs.
cpus – Specifies the name of the CPUs that you can assign to a datalink. For more information, see Managing Pools and CPUs.
lro – Specifies the status of the large receive offload (LRO) feature for a datalink. For more information, see Using the Large Receive Offload Feature in Oracle Solaris.
For a demonstration of managing network resources in Oracle Solaris, see Managing Network Resources Using Oracle Solaris (https://www.oracle.com/webfolder/technetwork/tutorials/tutorial/solaris/11/ManagingNetworkResources/ManagingNetworkResources.htm).
You can allocate resources to existing datalinks or while creating new datalinks.
The following commands are used for allocating network resources in datalinks:
To simultaneously create a virtual link and allocate resources to it, use the following command syntax:
# dladm create-vnic –l link –p prop=value[,...] VNIC
Refers to the name of the link which can be either a physical link or a virtual link.
Refers to the datalink property. For information about the different types of datalink properties that can be set for resource allocation, see Managing Network Resources by Using Datalink Properties.
To set the property for an existing link, use the following command syntax:
# dladm set-linkprop –p prop=value[,...] link
For more information, see the dladm(1M) man page.