2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
15 .Dt MAC_MAXSDU_UPDATE 9F
19 .Nd indicate that a device's maximum data size has changed
21 .In sys/mac_provider.h
32 The MAC handle obtained from a call to
35 An integer representing the maximum size data payload.
40 function is used to inform the MAC layer that the device represented by
43 has changed the largest size frame that it can transmit, also known as
44 its Send Data Unit (SDU).
45 This should be called when the device's MTU has been requested to be changed
48 entry point has been called with the property
50 or some other device-related event occurring.
54 represents the size of the largest payload ignoring the size of its own
55 headers or any margin.
56 For example, for an Ethernet-based device, this size should not include the
57 Ethernet header or any VLAN tags.
59 Through VNICs and other virtual data links, many different devices may
60 be using a single physical device and have their own MTUs.
61 The system takes care of those concerns and will not ask a device driver to
62 update the MTU without verifying this.
64 Upon successful completion, the
68 Otherwise, a non-negative error is returned.
70 For an example of how a device driver should use the
84 is lower than the minimum SDU of the device.