linux-kernelorg-stable/include/uapi
Jeffrey Ji 794c24e992 net-core: rx_otherhost_dropped to core_stats
Increment rx_otherhost_dropped counter when packet dropped due to
mismatched dest MAC addr.

An example when this drop can occur is when manually crafting raw
packets that will be consumed by a user space application via a tap
device. For testing purposes local traffic was generated using trafgen
for the client and netcat to start a server

Tested: Created 2 netns, sent 1 packet using trafgen from 1 to the other
with "{eth(daddr=$INCORRECT_MAC...}", verified that iproute2 showed the
counter was incremented. (Also had to modify iproute2 to show the stat,
additional patch for that coming next.)

Signed-off-by: Jeffrey Ji <jeffreyji@google.com>
Reviewed-by: Brian Vazquez <brianvv@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220406172600.1141083-1-jeffreyjilinux@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-04-07 20:32:49 -07:00
..
asm-generic mm: madvise: MADV_DONTNEED_LOCKED 2022-03-24 19:06:51 -07:00
drm
linux net-core: rx_otherhost_dropped to core_stats 2022-04-07 20:32:49 -07:00
misc misc: fastrpc: Add support to secure memory map 2022-03-18 14:11:00 +01:00
mtd
rdma
scsi
sound ASoC: Updates for v5.18 2022-03-21 16:19:21 +01:00
video
xen
Kbuild