]> git.baikalelectronics.ru Git - kernel.git/commit
drop_monitor: Allow truncation of dropped packets
authorIdo Schimmel <idosch@mellanox.com>
Sun, 11 Aug 2019 07:35:52 +0000 (10:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Aug 2019 17:53:30 +0000 (10:53 -0700)
commite278677b112723ab98abef01f12e27977d929939
tree8ec0b8d6b94bf68e3032a1789b56cce466ea5ac9
parentc02e8c82b0e076d234a693a88e88f04164a7efde
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>
include/uapi/linux/net_dropmon.h
net/core/drop_monitor.c