Merge branches 'devel-stable', 'entry', 'fixes', 'mach-types', 'misc' and 'smp-hotplu...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / uapi / linux / packet_diag.h
CommitLineData
96ec6327
PE
1#ifndef __PACKET_DIAG_H__
2#define __PACKET_DIAG_H__
3
4#include <linux/types.h>
5
6struct packet_diag_req {
7 __u8 sdiag_family;
8 __u8 sdiag_protocol;
9 __u16 pad;
10 __u32 pdiag_ino;
11 __u32 pdiag_show;
12 __u32 pdiag_cookie[2];
13};
14
8a360be0 15#define PACKET_SHOW_INFO 0x00000001 /* Basic packet_sk information */
eea68e2f 16#define PACKET_SHOW_MCLIST 0x00000002 /* A set of packet_diag_mclist-s */
16f01365 17#define PACKET_SHOW_RING_CFG 0x00000004 /* Rings configuration parameters */
fff3321d 18#define PACKET_SHOW_FANOUT 0x00000008
8a360be0 19
96ec6327
PE
20struct packet_diag_msg {
21 __u8 pdiag_family;
22 __u8 pdiag_type;
23 __u16 pdiag_num;
24
25 __u32 pdiag_ino;
26 __u32 pdiag_cookie[2];
27};
28
8a360be0
PE
29enum {
30 PACKET_DIAG_INFO,
eea68e2f 31 PACKET_DIAG_MCLIST,
16f01365
PE
32 PACKET_DIAG_RX_RING,
33 PACKET_DIAG_TX_RING,
fff3321d 34 PACKET_DIAG_FANOUT,
8a360be0 35
ae5fc987 36 __PACKET_DIAG_MAX,
8a360be0
PE
37};
38
ae5fc987
AV
39#define PACKET_DIAG_MAX (__PACKET_DIAG_MAX - 1)
40
8a360be0
PE
41struct packet_diag_info {
42 __u32 pdi_index;
43 __u32 pdi_version;
44 __u32 pdi_reserve;
45 __u32 pdi_copy_thresh;
46 __u32 pdi_tstamp;
47 __u32 pdi_flags;
48
49#define PDI_RUNNING 0x1
50#define PDI_AUXDATA 0x2
51#define PDI_ORIGDEV 0x4
52#define PDI_VNETHDR 0x8
53#define PDI_LOSS 0x10
54};
55
eea68e2f
PE
56struct packet_diag_mclist {
57 __u32 pdmc_index;
58 __u32 pdmc_count;
59 __u16 pdmc_type;
60 __u16 pdmc_alen;
61 __u8 pdmc_addr[MAX_ADDR_LEN];
62};
63
16f01365
PE
64struct packet_diag_ring {
65 __u32 pdr_block_size;
66 __u32 pdr_block_nr;
67 __u32 pdr_frame_size;
68 __u32 pdr_frame_nr;
69 __u32 pdr_retire_tmo;
70 __u32 pdr_sizeof_priv;
71 __u32 pdr_features;
72};
73
96ec6327 74#endif