MAC_LSO_GET(9F) Kernel Functions for Drivers MAC_LSO_GET(9F)

mac_lso_getget LSO information on message blocks

#include <sys/mac_provider.h>

void
mac_lso_get(mblk_t *mp, uint32_t *mss, uint32_t *flags);

illumos DDI specific

mp
A pointer to a mblk(9S) structure that contains an outgoing frame.
mss
A pointer to a value that will be filled in with the maximum segment size (MSS).
flags
A pointer to a value that will be filled in with various flags that indicate the behavior to perform.

The () function is used by device drivers that have indicated that they support the capability to determine whether large send offload (also known as large segmentation offload or LSO) is required for this frame or not. If so, the driver should take the appropriate actions to program the hardware to perform LSO.

The () function should only be called on the first mblk_t that begins a given individual frame in a chain. In other words, it only works on entries where it is the first of many possible entries linked together by the member. The first mblk_t received from any mac(9E) API or pointed to by a pointer should be used.

A device driver should first look at the flags argument to determine what to do. flags may be a bitwise inclusive OR of the following:

This flag indicates that hardware needs to perform segmentation offload. The maximum segment size that the driver should use is available through the mss argument.

The mac_lso_get() function may be called from , , or context.

mac(9E), mblk(9S)

June 2, 2016 OmniOS