summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2019-08-11 10:35:52 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-11 10:53:30 -0700
commit57986617a736aec2980c1c78a9dd8dcdf477ee6e (patch)
tree8ec0b8d6b94bf68e3032a1789b56cce466ea5ac9 /include/uapi
parentca30707dee2bc8bc81cfd8b4277fe90f7ca6df1f (diff)
downloadlinux-stable-57986617a736aec2980c1c78a9dd8dcdf477ee6e.tar.gz
linux-stable-57986617a736aec2980c1c78a9dd8dcdf477ee6e.tar.bz2
linux-stable-57986617a736aec2980c1c78a9dd8dcdf477ee6e.zip
drop_monitor: Allow truncation of dropped packets
When sending dropped packets to user space it is not always necessary to copy the entire packet as usually only the headers are of interest. Allow user to specify the truncation length and add the original length of the packet as additional metadata to the netlink message. By default no truncation is performed. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/net_dropmon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/net_dropmon.h b/include/uapi/linux/net_dropmon.h
index cfaaf75371b8..5cd7eb1f66ba 100644
--- a/include/uapi/linux/net_dropmon.h
+++ b/include/uapi/linux/net_dropmon.h
@@ -75,6 +75,8 @@ enum net_dm_attr {
NET_DM_ATTR_PROTO, /* u16 */
NET_DM_ATTR_PAYLOAD, /* binary */
NET_DM_ATTR_PAD,
+ NET_DM_ATTR_TRUNC_LEN, /* u32 */
+ NET_DM_ATTR_ORIG_LEN, /* u32 */
__NET_DM_ATTR_MAX,
NET_DM_ATTR_MAX = __NET_DM_ATTR_MAX - 1