aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/switchtec_ioctl.h
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2017-11-29 10:28:43 -0700
committerBjorn Helgaas <bhelgaas@google.com>2017-12-18 23:08:11 -0600
commitf0edce7a7f4c236f2d05040746b388cfac8796a1 (patch)
tree2f3307725b8660e602be3afcdfe34e351a2a6d1f /include/uapi/linux/switchtec_ioctl.h
parentLinux 4.15-rc4 (diff)
downloadlinux-dev-f0edce7a7f4c236f2d05040746b388cfac8796a1.tar.xz
linux-dev-f0edce7a7f4c236f2d05040746b388cfac8796a1.zip
switchtec: Add Global Fabric Manager Server (GFMS) event
Add a new event type that is newly exposed by recent firmware. The event will never occur if the firmware is too old. If user space tries to use this event in an older kernel, it will just get an EINVAL which is perfectly acceptable in the existing user space code. Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/uapi/linux/switchtec_ioctl.h')
-rw-r--r--include/uapi/linux/switchtec_ioctl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/switchtec_ioctl.h b/include/uapi/linux/switchtec_ioctl.h
index 75df44373034..4f4daf8db954 100644
--- a/include/uapi/linux/switchtec_ioctl.h
+++ b/include/uapi/linux/switchtec_ioctl.h
@@ -88,7 +88,8 @@ struct switchtec_ioctl_event_summary {
#define SWITCHTEC_IOCTL_EVENT_FORCE_SPEED 26
#define SWITCHTEC_IOCTL_EVENT_CREDIT_TIMEOUT 27
#define SWITCHTEC_IOCTL_EVENT_LINK_STATE 28
-#define SWITCHTEC_IOCTL_MAX_EVENTS 29
+#define SWITCHTEC_IOCTL_EVENT_GFMS 29
+#define SWITCHTEC_IOCTL_MAX_EVENTS 30
#define SWITCHTEC_IOCTL_EVENT_LOCAL_PART_IDX -1
#define SWITCHTEC_IOCTL_EVENT_IDX_ALL -2