aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/port.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2020-03-09 11:34:35 -0400
committerDavid S. Miller <davem@davemloft.net>2020-03-11 23:12:16 -0700
commit46e4c421a053c36bf7a33dda2272481bcaf3eed3 (patch)
tree76c4e9db0d24d3027cff0ecfc537d0e8ab373d74 /net/dsa/port.c
parentsxgbe: Fix off by one in samsung driver strncpy size arg (diff)
downloadlinux-dev-46e4c421a053c36bf7a33dda2272481bcaf3eed3.tar.xz
linux-dev-46e4c421a053c36bf7a33dda2272481bcaf3eed3.zip
net/packet: tpacket_rcv: do not increment ring index on drop
In one error case, tpacket_rcv drops packets after incrementing the ring producer index. If this happens, it does not update tp_status to TP_STATUS_USER and thus the reader is stalled for an iteration of the ring, causing out of order arrival. The only such error path is when virtio_net_hdr_from_skb fails due to encountering an unknown GSO type. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/port.c')
0 files changed, 0 insertions, 0 deletions