To allow for more flexible testing of the stm class, make it possible to specify the ranges of masters and channels that the dummy_stm devices cover. This is done via module parameters.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -12,6 +12,10 @@ · 11 unmodified lines | ||
| 12 | 12 | |
| 13 | 13 | #include <linux/types.h> |
| 14 | 14 | |
| 15 | +/* Maximum allowed master and channel values */ | |
| 16 | +#define STP_MASTER_MAX 0xffff | |
| 17 | +#define STP_CHANNEL_MAX 0xffff | |
| 18 | + | |
| 15 | 19 | /** |
| 16 | 20 | * struct stp_policy_id - identification for the STP policy |
| 17 | 21 | * @size: size of the structure including real id[] length |