Reporting sk_drops to user space was available for UDP sockets using /proc interface. Add this to sock_diag, so that we can have the same information available to ss users, and we'll be able to add sk_drops indications for TCP sockets as well.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -20,6 +20,7 @@ enum { · 19 unmodified lines | |||
| 20 | SK_MEMINFO_WMEM_QUEUED, | 20 | SK_MEMINFO_WMEM_QUEUED, |
| 21 | SK_MEMINFO_OPTMEM, | 21 | SK_MEMINFO_OPTMEM, |
| 22 | SK_MEMINFO_BACKLOG, | 22 | SK_MEMINFO_BACKLOG, |
| 23 | SK_MEMINFO_DROPS, | ||
| 23 | 24 | ||
| 24 | SK_MEMINFO_VARS, | 25 | SK_MEMINFO_VARS, |
| 25 | }; | 26 | }; |