History

packet_diag: disclose meminfo values

sk_rmem_alloc is disclosed via /proc/net/packet but not via netlink messages. The goal is to have the same level of information.

Nicolas Dichtel committed 13 years ago

Commit 76d0eeb1 parent 62641902 files · +6 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/packet_diag.h+2−0
@@ -16,6 +16,7 @@ struct packet_diag_req { · 15 unmodified lines
1616 #define PACKET_SHOW_MCLIST 0x00000002 /* A set of packet_diag_mclist-s */
1717 #define PACKET_SHOW_RING_CFG 0x00000004 /* Rings configuration parameters */
1818 #define PACKET_SHOW_FANOUT 0x00000008
19+#define PACKET_SHOW_MEMINFO 0x00000010
1920
2021 struct packet_diag_msg {
2122 __u8 pdiag_family;
@@ -33,6 +34,7 @@ enum { · 11 unmodified lines
3334 PACKET_DIAG_TX_RING,
3435 PACKET_DIAG_FANOUT,
3536 PACKET_DIAG_UID,
37+ PACKET_DIAG_MEMINFO,
3638
3739 __PACKET_DIAG_MAX,
3840 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t