Print this page
2553 mac address should be a dladm link property

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/mac.h
          +++ new/usr/src/uts/common/sys/mac.h
↓ open down ↓ 125 lines elided ↑ open up ↑
 126  126  /*
 127  127   * Maximum MAC address length
 128  128   */
 129  129  #define MAXMACADDRLEN           20
 130  130  
 131  131  typedef enum {
 132  132          MAC_LOGTYPE_LINK = 1,
 133  133          MAC_LOGTYPE_FLOW
 134  134  } mac_logtype_t;
 135  135  
      136 +typedef struct mac_addrprop_s {
      137 +        uint32_t        ma_len;
      138 +        uint8_t         ma_addr[MAXMACADDRLEN];
      139 +} mac_addrprop_t;
      140 +
 136  141  #define MAXLINKPROPNAME         256             /* max property name len */
 137  142  
 138  143  /*
 139  144   * Public properties.
 140  145   *
 141  146   * Note that there are 2 sets of parameters: the *_EN_* values are
 142  147   * those that the Administrator configures for autonegotiation. The
 143  148   * _ADV_* values are those that are currently exposed over the wire.
 144  149   */
 145  150  typedef enum {
↓ open down ↓ 52 lines elided ↑ open up ↑
 198  203          MAC_PROP_LDECAY,
 199  204          MAC_PROP_RESOURCE,
 200  205          MAC_PROP_RESOURCE_EFF,
 201  206          MAC_PROP_RXRINGSRANGE,
 202  207          MAC_PROP_TXRINGSRANGE,
 203  208          MAC_PROP_MAX_TX_RINGS_AVAIL,
 204  209          MAC_PROP_MAX_RX_RINGS_AVAIL,
 205  210          MAC_PROP_MAX_RXHWCLNT_AVAIL,
 206  211          MAC_PROP_MAX_TXHWCLNT_AVAIL,
 207  212          MAC_PROP_IB_LINKMODE,
      213 +        MAC_PROP_MACADDRESS,
 208  214          MAC_PROP_PRIVATE = -1
 209  215  } mac_prop_id_t;
 210  216  
 211  217  /*
 212  218   * Flags to figure out r/w status of legacy ndd props.
 213  219   */
 214  220  #define MAC_PROP_PERM_READ              0x0001
 215  221  #define MAC_PROP_PERM_WRITE             0x0010
 216  222  #define MAC_PROP_MAP_KSTAT              0x0100
 217  223  #define MAC_PROP_PERM_RW                (MAC_PROP_PERM_READ|MAC_PROP_PERM_WRITE)
↓ open down ↓ 435 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX