summaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154/at86rf230.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2018-07-31 11:43:38 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-31 19:02:01 +0200
commitca9e83b4a55bfa1cc1395b48c3bf70381833526b (patch)
tree799f43a467e6825725d957993154a84365411af7 /drivers/net/ieee802154/at86rf230.h
parentMerge branch 'xsk-improvements-to-RX-queue-check-and-replace' (diff)
downloadlinux-ca9e83b4a55bfa1cc1395b48c3bf70381833526b.tar.xz
linux-ca9e83b4a55bfa1cc1395b48c3bf70381833526b.zip
virtio-net: correctly update XDP_TX counters
Commit 5b8f3c8d30a6 ("virtio_net: Add XDP related stats") tries to count TX XDP stats in virtnet_receive(). This will cause several issues: - virtnet_xdp_sq() was called without checking whether or not XDP is set. This may cause out of bound access when there's no enough txq for XDP. - Stats were updated even if there's no XDP/XDP_TX. Fixing this by reusing virtnet_xdp_xmit() for XDP_TX which can counts TX XDP counter itself and remove the unnecessary tx stats embedded in rx stats. Reported-by: syzbot+604f8271211546f5b3c7@syzkaller.appspotmail.com Fixes: 5b8f3c8d30a6 ("virtio_net: Add XDP related stats") Cc: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp> Signed-off-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ieee802154/at86rf230.h')
0 files changed, 0 insertions, 0 deletions