blob: ce1116cff53d81ef6d1c831c9708fe31acd90a77 [file] [log] [blame]
Greg Kroah-Hartman6f52b162017-11-01 15:08:43 +01001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Yotam Gigi6ae0a622017-01-23 11:07:08 +01002#ifndef __UAPI_PSAMPLE_H
3#define __UAPI_PSAMPLE_H
4
5enum {
6 /* sampled packet metadata */
7 PSAMPLE_ATTR_IIFINDEX,
8 PSAMPLE_ATTR_OIFINDEX,
9 PSAMPLE_ATTR_ORIGSIZE,
10 PSAMPLE_ATTR_SAMPLE_GROUP,
11 PSAMPLE_ATTR_GROUP_SEQ,
12 PSAMPLE_ATTR_SAMPLE_RATE,
13 PSAMPLE_ATTR_DATA,
14
15 /* commands attributes */
16 PSAMPLE_ATTR_GROUP_REFCOUNT,
17
18 __PSAMPLE_ATTR_MAX
19};
20
21enum psample_command {
22 PSAMPLE_CMD_SAMPLE,
23 PSAMPLE_CMD_GET_GROUP,
24 PSAMPLE_CMD_NEW_GROUP,
25 PSAMPLE_CMD_DEL_GROUP,
26};
27
28/* Can be overridden at runtime by module option */
29#define PSAMPLE_ATTR_MAX (__PSAMPLE_ATTR_MAX - 1)
30
31#define PSAMPLE_NL_MCGRP_CONFIG_NAME "config"
32#define PSAMPLE_NL_MCGRP_SAMPLE_NAME "packets"
33#define PSAMPLE_GENL_NAME "psample"
34#define PSAMPLE_GENL_VERSION 1
35
36#endif