Lines Matching full:sent

552 	int expected, zero = 0, sent, recvd, avail;  in do_test_sockmap_skb_verdict_fionread()  local
591 sent = xsend(p1, &buf, split_len, 0); in do_test_sockmap_skb_verdict_fionread()
592 sent += xsend(p1, &buf, sizeof(buf) - split_len, 0); in do_test_sockmap_skb_verdict_fionread()
593 ASSERT_EQ(sent, sizeof(buf), "xsend(p1)"); in do_test_sockmap_skb_verdict_fionread()
625 int c1, p1, sent, recvd; in test_sockmap_skb_verdict_change_tail() local
644 sent = xsend(p1, "Tr", 2, 0); in test_sockmap_skb_verdict_change_tail()
645 ASSERT_EQ(sent, 2, "xsend(p1)"); in test_sockmap_skb_verdict_change_tail()
650 sent = xsend(p1, "G", 1, 0); in test_sockmap_skb_verdict_change_tail()
651 ASSERT_EQ(sent, 1, "xsend(p1)"); in test_sockmap_skb_verdict_change_tail()
656 sent = xsend(p1, "E", 1, 0); in test_sockmap_skb_verdict_change_tail()
657 ASSERT_EQ(sent, 1, "xsend(p1)"); in test_sockmap_skb_verdict_change_tail()
671 int err, c1, p1, zero = 0, sent, recvd, avail; in test_sockmap_skb_verdict_peek_helper() local
683 sent = xsend(p1, snd, sizeof(snd), 0); in test_sockmap_skb_verdict_peek_helper()
684 ASSERT_EQ(sent, sizeof(snd), "xsend(p1)"); in test_sockmap_skb_verdict_peek_helper()
1069 int map, err, sent, recvd, zero = 0, one = 1, on = 1; in test_sockmap_zc() local
1099 sent = xsend(c0, buf, sizeof(buf), 0); in test_sockmap_zc()
1100 if (!ASSERT_EQ(sent, sizeof(buf), "xsend")) in test_sockmap_zc()
1105 if (!ASSERT_EQ(recvd, sent, "recv_timeout(p1)")) in test_sockmap_zc()
1112 sent = xsend(c1, buf, sizeof(buf) - 1, 0); in test_sockmap_zc()
1113 if (!ASSERT_EQ(sent, sizeof(buf) - 1, "xsend")) in test_sockmap_zc()
1143 int i, map, err, sent, recvd, zero = 0, one = 1; in test_sockmap_copied_seq() local
1178 /* just trigger sockamp: data sent by c0 will be received by p1 */ in test_sockmap_copied_seq()
1179 sent = xsend(c0, buf, sizeof(buf), 0); in test_sockmap_copied_seq()
1180 if (!ASSERT_EQ(sent, sizeof(buf), "xsend(c0), bpf")) in test_sockmap_copied_seq()
1186 if (!ASSERT_EQ(recvd, sent, "recv_timeout(p1), bpf") || in test_sockmap_copied_seq()
1202 sent = xsend(c1, buf, sizeof(buf), 0); in test_sockmap_copied_seq()
1203 if (!ASSERT_EQ(sent, sizeof(buf), "xsend(c1), native")) in test_sockmap_copied_seq()
1207 if (!ASSERT_EQ(recvd, sent, "recv_timeout(p1), native")) in test_sockmap_copied_seq()
1211 sent = xsend(c0, buf, sizeof(buf), 0); in test_sockmap_copied_seq()
1212 if (!ASSERT_EQ(sent, sizeof(buf), "xsend(c0), native")) in test_sockmap_copied_seq()
1216 if (!ASSERT_EQ(recvd, sent, "recv_timeout(p0), native")) in test_sockmap_copied_seq()
1252 int map, err, sent, recvd, zero = 0, one = 1, avail = 0, expected; in test_sockmap_multi_channels() local
1282 sent = xsend(c1, buf, 2, 0); in test_sockmap_multi_channels()
1283 if (!ASSERT_EQ(sent, 2, "xsend(2)")) in test_sockmap_multi_channels()
1290 sent = xsend(c0, buf + 2, sizeof(buf) - 2, 0); in test_sockmap_multi_channels()
1291 if (!ASSERT_EQ(sent, sizeof(buf) - 2, "xsend(remain-data)")) in test_sockmap_multi_channels()