diff options
author | Christopher Ferris <cferris@google.com> | 2017-07-26 13:09:46 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2017-07-26 13:10:29 -0700 |
commit | 0543f743b6f5bc5c0652568c763e6dfb9ddce647 (patch) | |
tree | a1bc872886238cf7f50be21efe22bfd61138b3ab /original/uapi/linux/psample.h | |
parent | ab0b76f533c12b642cfbe4adb6e601e340599ad6 (diff) | |
download | kernel-headers-0543f743b6f5bc5c0652568c763e6dfb9ddce647.tar.gz |
Update to kernel headers v4.12.3.
Test: NA
Change-Id: Iee3d607e8a0fe866ffa1f123308af0713719ea29
Diffstat (limited to 'original/uapi/linux/psample.h')
-rw-r--r-- | original/uapi/linux/psample.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/original/uapi/linux/psample.h b/original/uapi/linux/psample.h new file mode 100644 index 0000000..ed48996 --- /dev/null +++ b/original/uapi/linux/psample.h @@ -0,0 +1,35 @@ +#ifndef __UAPI_PSAMPLE_H +#define __UAPI_PSAMPLE_H + +enum { + /* sampled packet metadata */ + PSAMPLE_ATTR_IIFINDEX, + PSAMPLE_ATTR_OIFINDEX, + PSAMPLE_ATTR_ORIGSIZE, + PSAMPLE_ATTR_SAMPLE_GROUP, + PSAMPLE_ATTR_GROUP_SEQ, + PSAMPLE_ATTR_SAMPLE_RATE, + PSAMPLE_ATTR_DATA, + + /* commands attributes */ + PSAMPLE_ATTR_GROUP_REFCOUNT, + + __PSAMPLE_ATTR_MAX +}; + +enum psample_command { + PSAMPLE_CMD_SAMPLE, + PSAMPLE_CMD_GET_GROUP, + PSAMPLE_CMD_NEW_GROUP, + PSAMPLE_CMD_DEL_GROUP, +}; + +/* Can be overridden at runtime by module option */ +#define PSAMPLE_ATTR_MAX (__PSAMPLE_ATTR_MAX - 1) + +#define PSAMPLE_NL_MCGRP_CONFIG_NAME "config" +#define PSAMPLE_NL_MCGRP_SAMPLE_NAME "packets" +#define PSAMPLE_GENL_NAME "psample" +#define PSAMPLE_GENL_VERSION 1 + +#endif |