History

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.

Logan Gunthorpe committed 8 years ago

Commit f0edce71 parent 1291a0d3 files · +6 −1Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/switchtec_ioctl.h+2−1
@@ -88,7 +88,8 @@ struct switchtec_ioctl_event_summary { · 87 unmodified lines
8888 #define SWITCHTEC_IOCTL_EVENT_FORCE_SPEED 26
8989 #define SWITCHTEC_IOCTL_EVENT_CREDIT_TIMEOUT 27
9090 #define SWITCHTEC_IOCTL_EVENT_LINK_STATE 28
91−#define SWITCHTEC_IOCTL_MAX_EVENTS 29
91+#define SWITCHTEC_IOCTL_EVENT_GFMS 29
92+#define SWITCHTEC_IOCTL_MAX_EVENTS 30
9293
9394 #define SWITCHTEC_IOCTL_EVENT_LOCAL_PART_IDX -1
9495 #define SWITCHTEC_IOCTL_EVENT_IDX_ALL -2