diff options
author | Danielle Ratson <danieller@mellanox.com> | 2020-07-09 16:18:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-09 23:15:30 +0300 |
commit | a0f49b54865273c895be3826d6d59cbc5ad725c2 (patch) | |
tree | f31fa3811a4ab42a1d6f45035e7d78473bf2b86a /include/uapi/linux/devlink.h | |
parent | 1b604efb6c28902df306fce610fba761e9c056d2 (diff) | |
download | linux-a0f49b54865273c895be3826d6d59cbc5ad725c2.tar.xz |
devlink: Add a new devlink port split ability attribute and pass to netlink
Add a new attribute that indicates the split ability of devlink port.
Drivers are expected to set it via devlink_port_attrs_set(), before
registering the port.
Signed-off-by: Danielle Ratson <danieller@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/devlink.h')
-rw-r--r-- | include/uapi/linux/devlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h index f741ab8d9cf0..cfef4245ea5a 100644 --- a/include/uapi/linux/devlink.h +++ b/include/uapi/linux/devlink.h @@ -456,6 +456,7 @@ enum devlink_attr { DEVLINK_ATTR_INFO_BOARD_SERIAL_NUMBER, /* string */ DEVLINK_ATTR_PORT_LANES, /* u32 */ + DEVLINK_ATTR_PORT_SPLITTABLE, /* u8 */ /* add new attributes above here, update the policy in devlink.c */ |