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.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -88,7 +88,8 @@ struct switchtec_ioctl_event_summary { · 87 unmodified lines | ||
| 88 | 88 | #define SWITCHTEC_IOCTL_EVENT_FORCE_SPEED 26 |
| 89 | 89 | #define SWITCHTEC_IOCTL_EVENT_CREDIT_TIMEOUT 27 |
| 90 | 90 | #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 | |
| 92 | 93 | |
| 93 | 94 | #define SWITCHTEC_IOCTL_EVENT_LOCAL_PART_IDX -1 |
| 94 | 95 | #define SWITCHTEC_IOCTL_EVENT_IDX_ALL -2 |