Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: devlink.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* include/uapi/linux/devlink.h - Network physical device Netlink interface
[2] Fix | Delete
* Copyright (c) 2016 Mellanox Technologies. All rights reserved.
[3] Fix | Delete
* Copyright (c) 2016 Jiri Pirko <jiri@mellanox.com>
[4] Fix | Delete
*
[5] Fix | Delete
* This program is free software; you can redistribute it and/or modify
[6] Fix | Delete
* it under the terms of the GNU General Public License as published by
[7] Fix | Delete
* the Free Software Foundation; either version 2 of the License, or
[8] Fix | Delete
* (at your option) any later version.
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
#ifndef _LINUX_DEVLINK_H_
[12] Fix | Delete
#define _LINUX_DEVLINK_H_
[13] Fix | Delete
[14] Fix | Delete
#include <linux/const.h>
[15] Fix | Delete
[16] Fix | Delete
#define DEVLINK_GENL_NAME "devlink"
[17] Fix | Delete
#define DEVLINK_GENL_VERSION 0x1
[18] Fix | Delete
#define DEVLINK_GENL_MCGRP_CONFIG_NAME "config"
[19] Fix | Delete
[20] Fix | Delete
enum devlink_command {
[21] Fix | Delete
/* don't change the order or add anything between, this is ABI! */
[22] Fix | Delete
DEVLINK_CMD_UNSPEC,
[23] Fix | Delete
[24] Fix | Delete
DEVLINK_CMD_GET, /* can dump */
[25] Fix | Delete
DEVLINK_CMD_SET,
[26] Fix | Delete
DEVLINK_CMD_NEW,
[27] Fix | Delete
DEVLINK_CMD_DEL,
[28] Fix | Delete
[29] Fix | Delete
DEVLINK_CMD_PORT_GET, /* can dump */
[30] Fix | Delete
DEVLINK_CMD_PORT_SET,
[31] Fix | Delete
DEVLINK_CMD_PORT_NEW,
[32] Fix | Delete
DEVLINK_CMD_PORT_DEL,
[33] Fix | Delete
[34] Fix | Delete
DEVLINK_CMD_PORT_SPLIT,
[35] Fix | Delete
DEVLINK_CMD_PORT_UNSPLIT,
[36] Fix | Delete
[37] Fix | Delete
DEVLINK_CMD_SB_GET, /* can dump */
[38] Fix | Delete
DEVLINK_CMD_SB_SET,
[39] Fix | Delete
DEVLINK_CMD_SB_NEW,
[40] Fix | Delete
DEVLINK_CMD_SB_DEL,
[41] Fix | Delete
[42] Fix | Delete
DEVLINK_CMD_SB_POOL_GET, /* can dump */
[43] Fix | Delete
DEVLINK_CMD_SB_POOL_SET,
[44] Fix | Delete
DEVLINK_CMD_SB_POOL_NEW,
[45] Fix | Delete
DEVLINK_CMD_SB_POOL_DEL,
[46] Fix | Delete
[47] Fix | Delete
DEVLINK_CMD_SB_PORT_POOL_GET, /* can dump */
[48] Fix | Delete
DEVLINK_CMD_SB_PORT_POOL_SET,
[49] Fix | Delete
DEVLINK_CMD_SB_PORT_POOL_NEW,
[50] Fix | Delete
DEVLINK_CMD_SB_PORT_POOL_DEL,
[51] Fix | Delete
[52] Fix | Delete
DEVLINK_CMD_SB_TC_POOL_BIND_GET, /* can dump */
[53] Fix | Delete
DEVLINK_CMD_SB_TC_POOL_BIND_SET,
[54] Fix | Delete
DEVLINK_CMD_SB_TC_POOL_BIND_NEW,
[55] Fix | Delete
DEVLINK_CMD_SB_TC_POOL_BIND_DEL,
[56] Fix | Delete
[57] Fix | Delete
/* Shared buffer occupancy monitoring commands */
[58] Fix | Delete
DEVLINK_CMD_SB_OCC_SNAPSHOT,
[59] Fix | Delete
DEVLINK_CMD_SB_OCC_MAX_CLEAR,
[60] Fix | Delete
[61] Fix | Delete
DEVLINK_CMD_ESWITCH_GET,
[62] Fix | Delete
#define DEVLINK_CMD_ESWITCH_MODE_GET /* obsolete, never use this! */ \
[63] Fix | Delete
DEVLINK_CMD_ESWITCH_GET
[64] Fix | Delete
[65] Fix | Delete
DEVLINK_CMD_ESWITCH_SET,
[66] Fix | Delete
#define DEVLINK_CMD_ESWITCH_MODE_SET /* obsolete, never use this! */ \
[67] Fix | Delete
DEVLINK_CMD_ESWITCH_SET
[68] Fix | Delete
[69] Fix | Delete
DEVLINK_CMD_DPIPE_TABLE_GET,
[70] Fix | Delete
DEVLINK_CMD_DPIPE_ENTRIES_GET,
[71] Fix | Delete
DEVLINK_CMD_DPIPE_HEADERS_GET,
[72] Fix | Delete
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET,
[73] Fix | Delete
DEVLINK_CMD_RESOURCE_SET,
[74] Fix | Delete
DEVLINK_CMD_RESOURCE_DUMP,
[75] Fix | Delete
[76] Fix | Delete
/* Hot driver reload, makes configuration changes take place. The
[77] Fix | Delete
* devlink instance is not released during the process.
[78] Fix | Delete
*/
[79] Fix | Delete
DEVLINK_CMD_RELOAD,
[80] Fix | Delete
[81] Fix | Delete
DEVLINK_CMD_PARAM_GET, /* can dump */
[82] Fix | Delete
DEVLINK_CMD_PARAM_SET,
[83] Fix | Delete
DEVLINK_CMD_PARAM_NEW,
[84] Fix | Delete
DEVLINK_CMD_PARAM_DEL,
[85] Fix | Delete
[86] Fix | Delete
DEVLINK_CMD_REGION_GET,
[87] Fix | Delete
DEVLINK_CMD_REGION_SET,
[88] Fix | Delete
DEVLINK_CMD_REGION_NEW,
[89] Fix | Delete
DEVLINK_CMD_REGION_DEL,
[90] Fix | Delete
DEVLINK_CMD_REGION_READ,
[91] Fix | Delete
[92] Fix | Delete
DEVLINK_CMD_PORT_PARAM_GET, /* can dump */
[93] Fix | Delete
DEVLINK_CMD_PORT_PARAM_SET,
[94] Fix | Delete
DEVLINK_CMD_PORT_PARAM_NEW,
[95] Fix | Delete
DEVLINK_CMD_PORT_PARAM_DEL,
[96] Fix | Delete
[97] Fix | Delete
DEVLINK_CMD_INFO_GET, /* can dump */
[98] Fix | Delete
[99] Fix | Delete
DEVLINK_CMD_HEALTH_REPORTER_GET,
[100] Fix | Delete
DEVLINK_CMD_HEALTH_REPORTER_SET,
[101] Fix | Delete
DEVLINK_CMD_HEALTH_REPORTER_RECOVER,
[102] Fix | Delete
DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE,
[103] Fix | Delete
DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET,
[104] Fix | Delete
DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR,
[105] Fix | Delete
[106] Fix | Delete
DEVLINK_CMD_FLASH_UPDATE,
[107] Fix | Delete
DEVLINK_CMD_FLASH_UPDATE_END, /* notification only */
[108] Fix | Delete
DEVLINK_CMD_FLASH_UPDATE_STATUS, /* notification only */
[109] Fix | Delete
[110] Fix | Delete
DEVLINK_CMD_TRAP_GET, /* can dump */
[111] Fix | Delete
DEVLINK_CMD_TRAP_SET,
[112] Fix | Delete
DEVLINK_CMD_TRAP_NEW,
[113] Fix | Delete
DEVLINK_CMD_TRAP_DEL,
[114] Fix | Delete
[115] Fix | Delete
DEVLINK_CMD_TRAP_GROUP_GET, /* can dump */
[116] Fix | Delete
DEVLINK_CMD_TRAP_GROUP_SET,
[117] Fix | Delete
DEVLINK_CMD_TRAP_GROUP_NEW,
[118] Fix | Delete
DEVLINK_CMD_TRAP_GROUP_DEL,
[119] Fix | Delete
[120] Fix | Delete
DEVLINK_CMD_TRAP_POLICER_GET, /* can dump */
[121] Fix | Delete
DEVLINK_CMD_TRAP_POLICER_SET,
[122] Fix | Delete
DEVLINK_CMD_TRAP_POLICER_NEW,
[123] Fix | Delete
DEVLINK_CMD_TRAP_POLICER_DEL,
[124] Fix | Delete
[125] Fix | Delete
DEVLINK_CMD_HEALTH_REPORTER_TEST,
[126] Fix | Delete
[127] Fix | Delete
DEVLINK_CMD_RATE_GET, /* can dump */
[128] Fix | Delete
DEVLINK_CMD_RATE_SET,
[129] Fix | Delete
DEVLINK_CMD_RATE_NEW,
[130] Fix | Delete
DEVLINK_CMD_RATE_DEL,
[131] Fix | Delete
[132] Fix | Delete
__RH_RESERVED_DEVLINK_CMD_LINECARD_GET, /* can dump */
[133] Fix | Delete
__RH_RESERVED_DEVLINK_CMD_LINECARD_SET,
[134] Fix | Delete
__RH_RESERVED_DEVLINK_CMD_LINECARD_NEW,
[135] Fix | Delete
__RH_RESERVED_DEVLINK_CMD_LINECARD_DEL,
[136] Fix | Delete
[137] Fix | Delete
DEVLINK_CMD_SELFTESTS_GET, /* can dump */
[138] Fix | Delete
DEVLINK_CMD_SELFTESTS_RUN,
[139] Fix | Delete
[140] Fix | Delete
/* add new commands above here */
[141] Fix | Delete
__DEVLINK_CMD_MAX,
[142] Fix | Delete
DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 1
[143] Fix | Delete
};
[144] Fix | Delete
[145] Fix | Delete
enum devlink_port_type {
[146] Fix | Delete
DEVLINK_PORT_TYPE_NOTSET,
[147] Fix | Delete
DEVLINK_PORT_TYPE_AUTO,
[148] Fix | Delete
DEVLINK_PORT_TYPE_ETH,
[149] Fix | Delete
DEVLINK_PORT_TYPE_IB,
[150] Fix | Delete
};
[151] Fix | Delete
[152] Fix | Delete
enum devlink_sb_pool_type {
[153] Fix | Delete
DEVLINK_SB_POOL_TYPE_INGRESS,
[154] Fix | Delete
DEVLINK_SB_POOL_TYPE_EGRESS,
[155] Fix | Delete
};
[156] Fix | Delete
[157] Fix | Delete
/* static threshold - limiting the maximum number of bytes.
[158] Fix | Delete
* dynamic threshold - limiting the maximum number of bytes
[159] Fix | Delete
* based on the currently available free space in the shared buffer pool.
[160] Fix | Delete
* In this mode, the maximum quota is calculated based
[161] Fix | Delete
* on the following formula:
[162] Fix | Delete
* max_quota = alpha / (1 + alpha) * Free_Buffer
[163] Fix | Delete
* While Free_Buffer is the amount of none-occupied buffer associated to
[164] Fix | Delete
* the relevant pool.
[165] Fix | Delete
* The value range which can be passed is 0-20 and serves
[166] Fix | Delete
* for computation of alpha by following formula:
[167] Fix | Delete
* alpha = 2 ^ (passed_value - 10)
[168] Fix | Delete
*/
[169] Fix | Delete
[170] Fix | Delete
enum devlink_sb_threshold_type {
[171] Fix | Delete
DEVLINK_SB_THRESHOLD_TYPE_STATIC,
[172] Fix | Delete
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC,
[173] Fix | Delete
};
[174] Fix | Delete
[175] Fix | Delete
#define DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX 20
[176] Fix | Delete
[177] Fix | Delete
enum devlink_eswitch_mode {
[178] Fix | Delete
DEVLINK_ESWITCH_MODE_LEGACY,
[179] Fix | Delete
DEVLINK_ESWITCH_MODE_SWITCHDEV,
[180] Fix | Delete
};
[181] Fix | Delete
[182] Fix | Delete
enum devlink_eswitch_inline_mode {
[183] Fix | Delete
DEVLINK_ESWITCH_INLINE_MODE_NONE,
[184] Fix | Delete
DEVLINK_ESWITCH_INLINE_MODE_LINK,
[185] Fix | Delete
DEVLINK_ESWITCH_INLINE_MODE_NETWORK,
[186] Fix | Delete
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT,
[187] Fix | Delete
};
[188] Fix | Delete
[189] Fix | Delete
enum devlink_eswitch_encap_mode {
[190] Fix | Delete
DEVLINK_ESWITCH_ENCAP_MODE_NONE,
[191] Fix | Delete
DEVLINK_ESWITCH_ENCAP_MODE_BASIC,
[192] Fix | Delete
};
[193] Fix | Delete
[194] Fix | Delete
enum devlink_port_flavour {
[195] Fix | Delete
DEVLINK_PORT_FLAVOUR_PHYSICAL, /* Any kind of a port physically
[196] Fix | Delete
* facing the user.
[197] Fix | Delete
*/
[198] Fix | Delete
DEVLINK_PORT_FLAVOUR_CPU, /* CPU port */
[199] Fix | Delete
DEVLINK_PORT_FLAVOUR_DSA, /* Distributed switch architecture
[200] Fix | Delete
* interconnect port.
[201] Fix | Delete
*/
[202] Fix | Delete
DEVLINK_PORT_FLAVOUR_PCI_PF, /* Represents eswitch port for
[203] Fix | Delete
* the PCI PF. It is an internal
[204] Fix | Delete
* port that faces the PCI PF.
[205] Fix | Delete
*/
[206] Fix | Delete
DEVLINK_PORT_FLAVOUR_PCI_VF, /* Represents eswitch port
[207] Fix | Delete
* for the PCI VF. It is an internal
[208] Fix | Delete
* port that faces the PCI VF.
[209] Fix | Delete
*/
[210] Fix | Delete
DEVLINK_PORT_FLAVOUR_VIRTUAL, /* Any virtual port facing the user. */
[211] Fix | Delete
DEVLINK_PORT_FLAVOUR_UNUSED, /* Port which exists in the switch, but
[212] Fix | Delete
* is not used in any way.
[213] Fix | Delete
*/
[214] Fix | Delete
DEVLINK_PORT_FLAVOUR_PCI_SF, /* Represents eswitch port
[215] Fix | Delete
* for the PCI SF. It is an internal
[216] Fix | Delete
* port that faces the PCI SF.
[217] Fix | Delete
*/
[218] Fix | Delete
};
[219] Fix | Delete
[220] Fix | Delete
enum devlink_rate_type {
[221] Fix | Delete
DEVLINK_RATE_TYPE_LEAF,
[222] Fix | Delete
DEVLINK_RATE_TYPE_NODE,
[223] Fix | Delete
};
[224] Fix | Delete
[225] Fix | Delete
enum devlink_param_cmode {
[226] Fix | Delete
DEVLINK_PARAM_CMODE_RUNTIME,
[227] Fix | Delete
DEVLINK_PARAM_CMODE_DRIVERINIT,
[228] Fix | Delete
DEVLINK_PARAM_CMODE_PERMANENT,
[229] Fix | Delete
[230] Fix | Delete
/* Add new configuration modes above */
[231] Fix | Delete
__DEVLINK_PARAM_CMODE_MAX,
[232] Fix | Delete
DEVLINK_PARAM_CMODE_MAX = __DEVLINK_PARAM_CMODE_MAX - 1
[233] Fix | Delete
};
[234] Fix | Delete
[235] Fix | Delete
enum devlink_param_fw_load_policy_value {
[236] Fix | Delete
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER,
[237] Fix | Delete
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH,
[238] Fix | Delete
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK,
[239] Fix | Delete
DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_UNKNOWN,
[240] Fix | Delete
};
[241] Fix | Delete
[242] Fix | Delete
enum devlink_param_reset_dev_on_drv_probe_value {
[243] Fix | Delete
DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_UNKNOWN,
[244] Fix | Delete
DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_ALWAYS,
[245] Fix | Delete
DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_NEVER,
[246] Fix | Delete
DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_DISK,
[247] Fix | Delete
};
[248] Fix | Delete
[249] Fix | Delete
enum {
[250] Fix | Delete
DEVLINK_ATTR_STATS_RX_PACKETS, /* u64 */
[251] Fix | Delete
DEVLINK_ATTR_STATS_RX_BYTES, /* u64 */
[252] Fix | Delete
DEVLINK_ATTR_STATS_RX_DROPPED, /* u64 */
[253] Fix | Delete
[254] Fix | Delete
__DEVLINK_ATTR_STATS_MAX,
[255] Fix | Delete
DEVLINK_ATTR_STATS_MAX = __DEVLINK_ATTR_STATS_MAX - 1
[256] Fix | Delete
};
[257] Fix | Delete
[258] Fix | Delete
/* Specify what sections of a flash component can be overwritten when
[259] Fix | Delete
* performing an update. Overwriting of firmware binary sections is always
[260] Fix | Delete
* implicitly assumed to be allowed.
[261] Fix | Delete
*
[262] Fix | Delete
* Each section must be documented in
[263] Fix | Delete
* Documentation/networking/devlink/devlink-flash.rst
[264] Fix | Delete
*
[265] Fix | Delete
*/
[266] Fix | Delete
enum {
[267] Fix | Delete
DEVLINK_FLASH_OVERWRITE_SETTINGS_BIT,
[268] Fix | Delete
DEVLINK_FLASH_OVERWRITE_IDENTIFIERS_BIT,
[269] Fix | Delete
[270] Fix | Delete
__DEVLINK_FLASH_OVERWRITE_MAX_BIT,
[271] Fix | Delete
DEVLINK_FLASH_OVERWRITE_MAX_BIT = __DEVLINK_FLASH_OVERWRITE_MAX_BIT - 1
[272] Fix | Delete
};
[273] Fix | Delete
[274] Fix | Delete
#define DEVLINK_FLASH_OVERWRITE_SETTINGS _BITUL(DEVLINK_FLASH_OVERWRITE_SETTINGS_BIT)
[275] Fix | Delete
#define DEVLINK_FLASH_OVERWRITE_IDENTIFIERS _BITUL(DEVLINK_FLASH_OVERWRITE_IDENTIFIERS_BIT)
[276] Fix | Delete
[277] Fix | Delete
#define DEVLINK_SUPPORTED_FLASH_OVERWRITE_SECTIONS \
[278] Fix | Delete
(_BITUL(__DEVLINK_FLASH_OVERWRITE_MAX_BIT) - 1)
[279] Fix | Delete
[280] Fix | Delete
enum devlink_attr_selftest_id {
[281] Fix | Delete
DEVLINK_ATTR_SELFTEST_ID_UNSPEC,
[282] Fix | Delete
DEVLINK_ATTR_SELFTEST_ID_FLASH, /* flag */
[283] Fix | Delete
[284] Fix | Delete
__DEVLINK_ATTR_SELFTEST_ID_MAX,
[285] Fix | Delete
DEVLINK_ATTR_SELFTEST_ID_MAX = __DEVLINK_ATTR_SELFTEST_ID_MAX - 1
[286] Fix | Delete
};
[287] Fix | Delete
[288] Fix | Delete
enum devlink_selftest_status {
[289] Fix | Delete
DEVLINK_SELFTEST_STATUS_SKIP,
[290] Fix | Delete
DEVLINK_SELFTEST_STATUS_PASS,
[291] Fix | Delete
DEVLINK_SELFTEST_STATUS_FAIL
[292] Fix | Delete
};
[293] Fix | Delete
[294] Fix | Delete
enum devlink_attr_selftest_result {
[295] Fix | Delete
DEVLINK_ATTR_SELFTEST_RESULT_UNSPEC,
[296] Fix | Delete
DEVLINK_ATTR_SELFTEST_RESULT, /* nested */
[297] Fix | Delete
DEVLINK_ATTR_SELFTEST_RESULT_ID, /* u32, enum devlink_attr_selftest_id */
[298] Fix | Delete
DEVLINK_ATTR_SELFTEST_RESULT_STATUS, /* u8, enum devlink_selftest_status */
[299] Fix | Delete
[300] Fix | Delete
__DEVLINK_ATTR_SELFTEST_RESULT_MAX,
[301] Fix | Delete
DEVLINK_ATTR_SELFTEST_RESULT_MAX = __DEVLINK_ATTR_SELFTEST_RESULT_MAX - 1
[302] Fix | Delete
};
[303] Fix | Delete
[304] Fix | Delete
/**
[305] Fix | Delete
* enum devlink_trap_action - Packet trap action.
[306] Fix | Delete
* @DEVLINK_TRAP_ACTION_DROP: Packet is dropped by the device and a copy is not
[307] Fix | Delete
* sent to the CPU.
[308] Fix | Delete
* @DEVLINK_TRAP_ACTION_TRAP: The sole copy of the packet is sent to the CPU.
[309] Fix | Delete
* @DEVLINK_TRAP_ACTION_MIRROR: Packet is forwarded by the device and a copy is
[310] Fix | Delete
* sent to the CPU.
[311] Fix | Delete
*/
[312] Fix | Delete
enum devlink_trap_action {
[313] Fix | Delete
DEVLINK_TRAP_ACTION_DROP,
[314] Fix | Delete
DEVLINK_TRAP_ACTION_TRAP,
[315] Fix | Delete
DEVLINK_TRAP_ACTION_MIRROR,
[316] Fix | Delete
};
[317] Fix | Delete
[318] Fix | Delete
/**
[319] Fix | Delete
* enum devlink_trap_type - Packet trap type.
[320] Fix | Delete
* @DEVLINK_TRAP_TYPE_DROP: Trap reason is a drop. Trapped packets are only
[321] Fix | Delete
* processed by devlink and not injected to the
[322] Fix | Delete
* kernel's Rx path.
[323] Fix | Delete
* @DEVLINK_TRAP_TYPE_EXCEPTION: Trap reason is an exception. Packet was not
[324] Fix | Delete
* forwarded as intended due to an exception
[325] Fix | Delete
* (e.g., missing neighbour entry) and trapped to
[326] Fix | Delete
* control plane for resolution. Trapped packets
[327] Fix | Delete
* are processed by devlink and injected to
[328] Fix | Delete
* the kernel's Rx path.
[329] Fix | Delete
* @DEVLINK_TRAP_TYPE_CONTROL: Packet was trapped because it is required for
[330] Fix | Delete
* the correct functioning of the control plane.
[331] Fix | Delete
* For example, an ARP request packet. Trapped
[332] Fix | Delete
* packets are injected to the kernel's Rx path,
[333] Fix | Delete
* but not reported to drop monitor.
[334] Fix | Delete
*/
[335] Fix | Delete
enum devlink_trap_type {
[336] Fix | Delete
DEVLINK_TRAP_TYPE_DROP,
[337] Fix | Delete
DEVLINK_TRAP_TYPE_EXCEPTION,
[338] Fix | Delete
DEVLINK_TRAP_TYPE_CONTROL,
[339] Fix | Delete
};
[340] Fix | Delete
[341] Fix | Delete
enum {
[342] Fix | Delete
/* Trap can report input port as metadata */
[343] Fix | Delete
DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT,
[344] Fix | Delete
/* Trap can report flow action cookie as metadata */
[345] Fix | Delete
DEVLINK_ATTR_TRAP_METADATA_TYPE_FA_COOKIE,
[346] Fix | Delete
};
[347] Fix | Delete
[348] Fix | Delete
enum devlink_reload_action {
[349] Fix | Delete
DEVLINK_RELOAD_ACTION_UNSPEC,
[350] Fix | Delete
DEVLINK_RELOAD_ACTION_DRIVER_REINIT, /* Driver entities re-instantiation */
[351] Fix | Delete
DEVLINK_RELOAD_ACTION_FW_ACTIVATE, /* FW activate */
[352] Fix | Delete
[353] Fix | Delete
/* Add new reload actions above */
[354] Fix | Delete
__DEVLINK_RELOAD_ACTION_MAX,
[355] Fix | Delete
DEVLINK_RELOAD_ACTION_MAX = __DEVLINK_RELOAD_ACTION_MAX - 1
[356] Fix | Delete
};
[357] Fix | Delete
[358] Fix | Delete
enum devlink_reload_limit {
[359] Fix | Delete
DEVLINK_RELOAD_LIMIT_UNSPEC, /* unspecified, no constraints */
[360] Fix | Delete
DEVLINK_RELOAD_LIMIT_NO_RESET, /* No reset allowed, no down time allowed,
[361] Fix | Delete
* no link flap and no configuration is lost.
[362] Fix | Delete
*/
[363] Fix | Delete
[364] Fix | Delete
/* Add new reload limit above */
[365] Fix | Delete
__DEVLINK_RELOAD_LIMIT_MAX,
[366] Fix | Delete
DEVLINK_RELOAD_LIMIT_MAX = __DEVLINK_RELOAD_LIMIT_MAX - 1
[367] Fix | Delete
};
[368] Fix | Delete
[369] Fix | Delete
#define DEVLINK_RELOAD_LIMITS_VALID_MASK (_BITUL(__DEVLINK_RELOAD_LIMIT_MAX) - 1)
[370] Fix | Delete
[371] Fix | Delete
enum devlink_attr {
[372] Fix | Delete
/* don't change the order or add anything between, this is ABI! */
[373] Fix | Delete
DEVLINK_ATTR_UNSPEC,
[374] Fix | Delete
[375] Fix | Delete
/* bus name + dev name together are a handle for devlink entity */
[376] Fix | Delete
DEVLINK_ATTR_BUS_NAME, /* string */
[377] Fix | Delete
DEVLINK_ATTR_DEV_NAME, /* string */
[378] Fix | Delete
[379] Fix | Delete
DEVLINK_ATTR_PORT_INDEX, /* u32 */
[380] Fix | Delete
DEVLINK_ATTR_PORT_TYPE, /* u16 */
[381] Fix | Delete
DEVLINK_ATTR_PORT_DESIRED_TYPE, /* u16 */
[382] Fix | Delete
DEVLINK_ATTR_PORT_NETDEV_IFINDEX, /* u32 */
[383] Fix | Delete
DEVLINK_ATTR_PORT_NETDEV_NAME, /* string */
[384] Fix | Delete
DEVLINK_ATTR_PORT_IBDEV_NAME, /* string */
[385] Fix | Delete
DEVLINK_ATTR_PORT_SPLIT_COUNT, /* u32 */
[386] Fix | Delete
DEVLINK_ATTR_PORT_SPLIT_GROUP, /* u32 */
[387] Fix | Delete
DEVLINK_ATTR_SB_INDEX, /* u32 */
[388] Fix | Delete
DEVLINK_ATTR_SB_SIZE, /* u32 */
[389] Fix | Delete
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT, /* u16 */
[390] Fix | Delete
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT, /* u16 */
[391] Fix | Delete
DEVLINK_ATTR_SB_INGRESS_TC_COUNT, /* u16 */
[392] Fix | Delete
DEVLINK_ATTR_SB_EGRESS_TC_COUNT, /* u16 */
[393] Fix | Delete
DEVLINK_ATTR_SB_POOL_INDEX, /* u16 */
[394] Fix | Delete
DEVLINK_ATTR_SB_POOL_TYPE, /* u8 */
[395] Fix | Delete
DEVLINK_ATTR_SB_POOL_SIZE, /* u32 */
[396] Fix | Delete
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE, /* u8 */
[397] Fix | Delete
DEVLINK_ATTR_SB_THRESHOLD, /* u32 */
[398] Fix | Delete
DEVLINK_ATTR_SB_TC_INDEX, /* u16 */
[399] Fix | Delete
DEVLINK_ATTR_SB_OCC_CUR, /* u32 */
[400] Fix | Delete
DEVLINK_ATTR_SB_OCC_MAX, /* u32 */
[401] Fix | Delete
DEVLINK_ATTR_ESWITCH_MODE, /* u16 */
[402] Fix | Delete
DEVLINK_ATTR_ESWITCH_INLINE_MODE, /* u8 */
[403] Fix | Delete
[404] Fix | Delete
DEVLINK_ATTR_DPIPE_TABLES, /* nested */
[405] Fix | Delete
DEVLINK_ATTR_DPIPE_TABLE, /* nested */
[406] Fix | Delete
DEVLINK_ATTR_DPIPE_TABLE_NAME, /* string */
[407] Fix | Delete
DEVLINK_ATTR_DPIPE_TABLE_SIZE, /* u64 */
[408] Fix | Delete
DEVLINK_ATTR_DPIPE_TABLE_MATCHES, /* nested */
[409] Fix | Delete
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS, /* nested */
[410] Fix | Delete
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED, /* u8 */
[411] Fix | Delete
[412] Fix | Delete
DEVLINK_ATTR_DPIPE_ENTRIES, /* nested */
[413] Fix | Delete
DEVLINK_ATTR_DPIPE_ENTRY, /* nested */
[414] Fix | Delete
DEVLINK_ATTR_DPIPE_ENTRY_INDEX, /* u64 */
[415] Fix | Delete
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES, /* nested */
[416] Fix | Delete
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES, /* nested */
[417] Fix | Delete
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER, /* u64 */
[418] Fix | Delete
[419] Fix | Delete
DEVLINK_ATTR_DPIPE_MATCH, /* nested */
[420] Fix | Delete
DEVLINK_ATTR_DPIPE_MATCH_VALUE, /* nested */
[421] Fix | Delete
DEVLINK_ATTR_DPIPE_MATCH_TYPE, /* u32 */
[422] Fix | Delete
[423] Fix | Delete
DEVLINK_ATTR_DPIPE_ACTION, /* nested */
[424] Fix | Delete
DEVLINK_ATTR_DPIPE_ACTION_VALUE, /* nested */
[425] Fix | Delete
DEVLINK_ATTR_DPIPE_ACTION_TYPE, /* u32 */
[426] Fix | Delete
[427] Fix | Delete
DEVLINK_ATTR_DPIPE_VALUE,
[428] Fix | Delete
DEVLINK_ATTR_DPIPE_VALUE_MASK,
[429] Fix | Delete
DEVLINK_ATTR_DPIPE_VALUE_MAPPING, /* u32 */
[430] Fix | Delete
[431] Fix | Delete
DEVLINK_ATTR_DPIPE_HEADERS, /* nested */
[432] Fix | Delete
DEVLINK_ATTR_DPIPE_HEADER, /* nested */
[433] Fix | Delete
DEVLINK_ATTR_DPIPE_HEADER_NAME, /* string */
[434] Fix | Delete
DEVLINK_ATTR_DPIPE_HEADER_ID, /* u32 */
[435] Fix | Delete
DEVLINK_ATTR_DPIPE_HEADER_FIELDS, /* nested */
[436] Fix | Delete
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL, /* u8 */
[437] Fix | Delete
DEVLINK_ATTR_DPIPE_HEADER_INDEX, /* u32 */
[438] Fix | Delete
[439] Fix | Delete
DEVLINK_ATTR_DPIPE_FIELD, /* nested */
[440] Fix | Delete
DEVLINK_ATTR_DPIPE_FIELD_NAME, /* string */
[441] Fix | Delete
DEVLINK_ATTR_DPIPE_FIELD_ID, /* u32 */
[442] Fix | Delete
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH, /* u32 */
[443] Fix | Delete
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE, /* u32 */
[444] Fix | Delete
[445] Fix | Delete
DEVLINK_ATTR_PAD,
[446] Fix | Delete
[447] Fix | Delete
DEVLINK_ATTR_ESWITCH_ENCAP_MODE, /* u8 */
[448] Fix | Delete
DEVLINK_ATTR_RESOURCE_LIST, /* nested */
[449] Fix | Delete
DEVLINK_ATTR_RESOURCE, /* nested */
[450] Fix | Delete
DEVLINK_ATTR_RESOURCE_NAME, /* string */
[451] Fix | Delete
DEVLINK_ATTR_RESOURCE_ID, /* u64 */
[452] Fix | Delete
DEVLINK_ATTR_RESOURCE_SIZE, /* u64 */
[453] Fix | Delete
DEVLINK_ATTR_RESOURCE_SIZE_NEW, /* u64 */
[454] Fix | Delete
DEVLINK_ATTR_RESOURCE_SIZE_VALID, /* u8 */
[455] Fix | Delete
DEVLINK_ATTR_RESOURCE_SIZE_MIN, /* u64 */
[456] Fix | Delete
DEVLINK_ATTR_RESOURCE_SIZE_MAX, /* u64 */
[457] Fix | Delete
DEVLINK_ATTR_RESOURCE_SIZE_GRAN, /* u64 */
[458] Fix | Delete
DEVLINK_ATTR_RESOURCE_UNIT, /* u8 */
[459] Fix | Delete
DEVLINK_ATTR_RESOURCE_OCC, /* u64 */
[460] Fix | Delete
DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID, /* u64 */
[461] Fix | Delete
DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS,/* u64 */
[462] Fix | Delete
[463] Fix | Delete
DEVLINK_ATTR_PORT_FLAVOUR, /* u16 */
[464] Fix | Delete
DEVLINK_ATTR_PORT_NUMBER, /* u32 */
[465] Fix | Delete
DEVLINK_ATTR_PORT_SPLIT_SUBPORT_NUMBER, /* u32 */
[466] Fix | Delete
[467] Fix | Delete
DEVLINK_ATTR_PARAM, /* nested */
[468] Fix | Delete
DEVLINK_ATTR_PARAM_NAME, /* string */
[469] Fix | Delete
DEVLINK_ATTR_PARAM_GENERIC, /* flag */
[470] Fix | Delete
DEVLINK_ATTR_PARAM_TYPE, /* u8 */
[471] Fix | Delete
DEVLINK_ATTR_PARAM_VALUES_LIST, /* nested */
[472] Fix | Delete
DEVLINK_ATTR_PARAM_VALUE, /* nested */
[473] Fix | Delete
DEVLINK_ATTR_PARAM_VALUE_DATA, /* dynamic */
[474] Fix | Delete
DEVLINK_ATTR_PARAM_VALUE_CMODE, /* u8 */
[475] Fix | Delete
[476] Fix | Delete
DEVLINK_ATTR_REGION_NAME, /* string */
[477] Fix | Delete
DEVLINK_ATTR_REGION_SIZE, /* u64 */
[478] Fix | Delete
DEVLINK_ATTR_REGION_SNAPSHOTS, /* nested */
[479] Fix | Delete
DEVLINK_ATTR_REGION_SNAPSHOT, /* nested */
[480] Fix | Delete
DEVLINK_ATTR_REGION_SNAPSHOT_ID, /* u32 */
[481] Fix | Delete
[482] Fix | Delete
DEVLINK_ATTR_REGION_CHUNKS, /* nested */
[483] Fix | Delete
DEVLINK_ATTR_REGION_CHUNK, /* nested */
[484] Fix | Delete
DEVLINK_ATTR_REGION_CHUNK_DATA, /* binary */
[485] Fix | Delete
DEVLINK_ATTR_REGION_CHUNK_ADDR, /* u64 */
[486] Fix | Delete
DEVLINK_ATTR_REGION_CHUNK_LEN, /* u64 */
[487] Fix | Delete
[488] Fix | Delete
DEVLINK_ATTR_INFO_DRIVER_NAME, /* string */
[489] Fix | Delete
DEVLINK_ATTR_INFO_SERIAL_NUMBER, /* string */
[490] Fix | Delete
DEVLINK_ATTR_INFO_VERSION_FIXED, /* nested */
[491] Fix | Delete
DEVLINK_ATTR_INFO_VERSION_RUNNING, /* nested */
[492] Fix | Delete
DEVLINK_ATTR_INFO_VERSION_STORED, /* nested */
[493] Fix | Delete
DEVLINK_ATTR_INFO_VERSION_NAME, /* string */
[494] Fix | Delete
DEVLINK_ATTR_INFO_VERSION_VALUE, /* string */
[495] Fix | Delete
[496] Fix | Delete
DEVLINK_ATTR_SB_POOL_CELL_SIZE, /* u32 */
[497] Fix | Delete
[498] Fix | Delete
DEVLINK_ATTR_FMSG, /* nested */
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function