xsk: proper Rx drop statistics update
authorBjörn Töpel <bjorn.topel@intel.com>
Mon, 4 Jun 2018 11:57:12 +0000 (13:57 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 4 Jun 2018 15:21:02 +0000 (17:21 +0200)
commita509a95536a86ef84deb16c656d741437791b414
tree7003dd6cf67754e4320e4983604ad29c5ae2ee47
parent4e64c835254095f55044d393e628dd3e92fca304
xsk: proper Rx drop statistics update

Previously, rx_dropped could be updated incorrectly, e.g. if the XDP
program redirected the frame to a socket bound to a different queue
than where the XDP program was executing.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xsk.c