zijianzhang@ wrote: > From: Zijian Zhang <zijianzhang@xxxxxxxxxxxxx> > > total_bytes in msg_loop_rx should also take push into account, otherwise > total_bytes will be a smaller value, which makes the msg_loop_rx end early. > > Besides, total_bytes has already taken pop, so we don't need to subtract > some bytes from iov_buf in sendmsg_test. The additional subtraction may > make total_bytes a negative number, and msg_loop_rx will just end without > checking anything. > > Fixes: 18d4e900a450 ("bpf: Selftests, improve test_sockmap total bytes counter") > Fixes: d69672147faa ("selftests, bpf: Add one test for sockmap with strparser") > Signed-off-by: Zijian Zhang <zijianzhang@xxxxxxxxxxxxx> > --- Reviewed-by: John Fastabend <john.fastabend@xxxxxxxxx>