Contents

ifnet_set_offload

Declaration

errno_t ifnet_set_offload(ifnet_t interface, ifnet_offload_t offload);

Parameters

  • interface:

    The interface.

  • offload:

    The new set of flags indicating which offload options the device supports.

Return Value

0 on success otherwise the errno error.

Discussion

Sets a bitfield to indicate special hardware offload support provided by the interface such as hardware checksums and VLAN. This replaces the if_hwassist flags field. Any flags unrecognized by the stack will not be set.

Note the system will automatically set the interface capabilities that correspond to the offload flags modified -- i.e. the driver does not have to call ifnet_set_capabilities_enabled() and ifnet_set_capabilities_supported().

See Also

Network Kernel Extensions