WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #42: new file mode 100644 WARNING: line length of 91 exceeds 80 columns #98: FILE: tools/testing/selftests/bpf/test_xsk.c:52: + ksft_test_result_fail("FAIL: %s %s%s\n", mode_string(test), busy_poll_string(test), WARNING: line length of 92 exceeds 80 columns #104: FILE: tools/testing/selftests/bpf/test_xsk.c:58: + * 16-bits and a intra packet data sequence number in the lower 16 bits. So the 3rd packet's WARNING: line length of 84 exceeds 80 columns #105: FILE: tools/testing/selftests/bpf/test_xsk.c:59: + * 5th word of data will contain the number (2<<16) | 4 as they are numbered from 0. WARNING: line length of 81 exceeds 80 columns #131: FILE: tools/testing/selftests/bpf/test_xsk.c:85: + return (mode == TEST_MODE_SKB) ? XDP_FLAGS_SKB_MODE : XDP_FLAGS_DRV_MODE; WARNING: line length of 88 exceeds 80 columns #139: FILE: tools/testing/selftests/bpf/test_xsk.c:93: +int xsk_configure_umem(struct ifobject *ifobj, struct xsk_umem_info *umem, void *buffer, CHECK: Alignment should match open parenthesis #140: FILE: tools/testing/selftests/bpf/test_xsk.c:94: +int xsk_configure_umem(struct ifobject *ifobj, struct xsk_umem_info *umem, void *buffer, + u64 size) WARNING: line length of 81 exceeds 80 columns #196: FILE: tools/testing/selftests/bpf/test_xsk.c:150: + if (setsockopt(xsk_socket__fd(xsk->xsk), SOL_SOCKET, SO_PREFER_BUSY_POLL, WARNING: line length of 81 exceeds 80 columns #206: FILE: tools/testing/selftests/bpf/test_xsk.c:160: + if (setsockopt(xsk_socket__fd(xsk->xsk), SOL_SOCKET, SO_BUSY_POLL_BUDGET, WARNING: line length of 81 exceeds 80 columns #211: FILE: tools/testing/selftests/bpf/test_xsk.c:165: +int xsk_configure_socket(struct xsk_socket_info *xsk, struct xsk_umem_info *umem, CHECK: Alignment should match open parenthesis #212: FILE: tools/testing/selftests/bpf/test_xsk.c:166: +int xsk_configure_socket(struct xsk_socket_info *xsk, struct xsk_umem_info *umem, + struct ifobject *ifobject, bool shared) WARNING: line length of 95 exceeds 80 columns #233: FILE: tools/testing/selftests/bpf/test_xsk.c:187: + return xsk_socket__create(&xsk->xsk, ifobject->ifindex, 0, umem->umem, rxr, txr, &cfg); WARNING: line length of 81 exceeds 80 columns #310: FILE: tools/testing/selftests/bpf/test_xsk.c:264: + memset(&ifobj->xsk_arr[j], 0, sizeof(ifobj->xsk_arr[j])); WARNING: line length of 85 exceeds 80 columns #311: FILE: tools/testing/selftests/bpf/test_xsk.c:265: + ifobj->xsk_arr[j].rxqsize = XSK_RING_CONS__DEFAULT_NUM_DESCS; WARNING: line length of 91 exceeds 80 columns #314: FILE: tools/testing/selftests/bpf/test_xsk.c:268: + ifobj->xsk_arr[j].pkt_stream = test->tx_pkt_stream_default; WARNING: line length of 91 exceeds 80 columns #316: FILE: tools/testing/selftests/bpf/test_xsk.c:270: + ifobj->xsk_arr[j].pkt_stream = test->rx_pkt_stream_default; CHECK: Alignment should match open parenthesis #345: FILE: tools/testing/selftests/bpf/test_xsk.c:299: +void test_init(struct test_spec *test, struct ifobject *ifobj_tx, + struct ifobject *ifobj_rx, enum test_mode mode, WARNING: line length of 91 exceeds 80 columns #379: FILE: tools/testing/selftests/bpf/test_xsk.c:333: +static void test_spec_set_xdp_prog(struct test_spec *test, struct bpf_program *xdp_prog_rx, WARNING: line length of 94 exceeds 80 columns #380: FILE: tools/testing/selftests/bpf/test_xsk.c:334: + struct bpf_program *xdp_prog_tx, struct bpf_map *xskmap_rx, WARNING: line length of 92 exceeds 80 columns #425: FILE: tools/testing/selftests/bpf/test_xsk.c:379: +static struct pkt *pkt_stream_get_next_rx_pkt(struct pkt_stream *pkt_stream, u32 *pkts_sent) WARNING: line length of 87 exceeds 80 columns #476: FILE: tools/testing/selftests/bpf/test_xsk.c:430: +static u32 pkt_nb_frags(u32 frame_size, struct pkt_stream *pkt_stream, struct pkt *pkt) WARNING: line length of 88 exceeds 80 columns #509: FILE: tools/testing/selftests/bpf/test_xsk.c:463: +static void pkt_set(struct pkt_stream *pkt_stream, struct pkt *pkt, int offset, u32 len) WARNING: line length of 99 exceeds 80 columns #516: FILE: tools/testing/selftests/bpf/test_xsk.c:470: +static void pkt_stream_pkt_set(struct pkt_stream *pkt_stream, struct pkt *pkt, int offset, u32 len) WARNING: line length of 99 exceeds 80 columns #529: FILE: tools/testing/selftests/bpf/test_xsk.c:483: +static struct pkt_stream *__pkt_stream_generate(u32 nb_pkts, u32 pkt_len, u32 nb_start, u32 nb_off) WARNING: line length of 81 exceeds 80 columns #557: FILE: tools/testing/selftests/bpf/test_xsk.c:511: + return pkt_stream_generate(pkt_stream->nb_pkts, pkt_stream->pkts[0].len); WARNING: line length of 89 exceeds 80 columns #560: FILE: tools/testing/selftests/bpf/test_xsk.c:514: +static void pkt_stream_replace_ifobject(struct ifobject *ifobj, u32 nb_pkts, u32 pkt_len) WARNING: line length of 86 exceeds 80 columns #579: FILE: tools/testing/selftests/bpf/test_xsk.c:533: + pkt_stream_pkt_set(pkt_stream, &pkt_stream->pkts[i], offset, pkt_len); WARNING: line length of 84 exceeds 80 columns #584: FILE: tools/testing/selftests/bpf/test_xsk.c:538: +static void pkt_stream_replace_half(struct test_spec *test, u32 pkt_len, int offset) WARNING: line length of 82 exceeds 80 columns #595: FILE: tools/testing/selftests/bpf/test_xsk.c:549: + test->ifobj_rx->xsk->pkt_stream = pkt_stream_generate(pkt_stream->nb_pkts, WARNING: line length of 87 exceeds 80 columns #596: FILE: tools/testing/selftests/bpf/test_xsk.c:550: + pkt_stream->pkts[0].len); WARNING: line length of 82 exceeds 80 columns #612: FILE: tools/testing/selftests/bpf/test_xsk.c:566: + pkt_stream->pkts[0].len, i, 2); WARNING: line length of 82 exceeds 80 columns #617: FILE: tools/testing/selftests/bpf/test_xsk.c:571: + pkt_stream->pkts[0].len, i, 2); WARNING: line length of 100 exceeds 80 columns #634: FILE: tools/testing/selftests/bpf/test_xsk.c:588: +static void pkt_generate(struct xsk_socket_info *xsk, struct xsk_umem_info *umem, u64 addr, u32 len, WARNING: line length of 98 exceeds 80 columns #654: FILE: tools/testing/selftests/bpf/test_xsk.c:608: +static struct pkt_stream *__pkt_stream_generate_custom(struct ifobject *ifobj, struct pkt *frames, WARNING: line length of 84 exceeds 80 columns #655: FILE: tools/testing/selftests/bpf/test_xsk.c:609: + u32 nb_frames, bool verbatim) WARNING: line length of 86 exceeds 80 columns #688: FILE: tools/testing/selftests/bpf/test_xsk.c:642: + print_verbose("offset: %d len: %u valid: %u options: %u pkt_nb: %u\n", WARNING: line length of 92 exceeds 80 columns #689: FILE: tools/testing/selftests/bpf/test_xsk.c:643: + pkt->offset, pkt->len, pkt->valid, pkt->options, pkt->pkt_nb); WARNING: line length of 93 exceeds 80 columns #705: FILE: tools/testing/selftests/bpf/test_xsk.c:659: +static void pkt_stream_generate_custom(struct test_spec *test, struct pkt *pkts, u32 nb_pkts) WARNING: line length of 87 exceeds 80 columns #709: FILE: tools/testing/selftests/bpf/test_xsk.c:663: + pkt_stream = __pkt_stream_generate_custom(test->ifobj_tx, pkts, nb_pkts, true); WARNING: line length of 88 exceeds 80 columns #712: FILE: tools/testing/selftests/bpf/test_xsk.c:666: + pkt_stream = __pkt_stream_generate_custom(test->ifobj_rx, pkts, nb_pkts, false); WARNING: line length of 84 exceeds 80 columns #762: FILE: tools/testing/selftests/bpf/test_xsk.c:716: +static bool is_offset_correct(struct xsk_umem_info *umem, struct pkt *pkt, u64 addr) WARNING: line length of 91 exceeds 80 columns #771: FILE: tools/testing/selftests/bpf/test_xsk.c:725: + expected_offset = (pkt_offset + headroom + XDP_PACKET_HEADROOM) % umem->frame_size; WARNING: line length of 92 exceeds 80 columns #776: FILE: tools/testing/selftests/bpf/test_xsk.c:730: + ksft_print_msg("[%s] expected [%u], got [%u]\n", __func__, expected_offset, offset); WARNING: line length of 88 exceeds 80 columns #786: FILE: tools/testing/selftests/bpf/test_xsk.c:740: + ksft_print_msg("[%s] expected meta_count [%d], got meta_count [%llu]\n", WARNING: line length of 85 exceeds 80 columns #804: FILE: tools/testing/selftests/bpf/test_xsk.c:758: + ksft_print_msg("Error: could not find bss section of XDP program\n"); WARNING: line length of 89 exceeds 80 columns #810: FILE: tools/testing/selftests/bpf/test_xsk.c:764: + ksft_print_msg("Error: bpf_map_lookup_elem failed with error %d\n", ret); WARNING: line length of 95 exceeds 80 columns #814: FILE: tools/testing/selftests/bpf/test_xsk.c:768: + /* Set the 'adjust_value' variable to -EOPNOTSUPP in the XDP program if the adjust_tail WARNING: line length of 84 exceeds 80 columns #815: FILE: tools/testing/selftests/bpf/test_xsk.c:769: + * helper is not supported. Skip the adjust_tail test case in this scenario. WARNING: line length of 93 exceeds 80 columns #820: FILE: tools/testing/selftests/bpf/test_xsk.c:774: +static bool is_frag_valid(struct xsk_umem_info *umem, u64 addr, u32 len, u32 expected_pkt_nb, WARNING: line length of 88 exceeds 80 columns #834: FILE: tools/testing/selftests/bpf/test_xsk.c:788: + if (!umem->unaligned_mode && addr % umem->frame_size + len > umem->frame_size) { WARNING: line length of 82 exceeds 80 columns #835: FILE: tools/testing/selftests/bpf/test_xsk.c:789: + ksft_print_msg("Frag crosses frame boundary addr: %llx len: %u\n", WARNING: line length of 87 exceeds 80 columns #858: FILE: tools/testing/selftests/bpf/test_xsk.c:812: + ksft_print_msg("[%s] expected seqnum at start [%u], got seqnum [%u]\n", WARNING: line length of 85 exceeds 80 columns #868: FILE: tools/testing/selftests/bpf/test_xsk.c:822: + ksft_print_msg("[%s] expected seqnum at end [%u], got seqnum [%u]\n", WARNING: line length of 85 exceeds 80 columns #883: FILE: tools/testing/selftests/bpf/test_xsk.c:837: + ksft_print_msg("[%s] expected packet length [%d], got length [%d]\n", WARNING: line length of 87 exceeds 80 columns #929: FILE: tools/testing/selftests/bpf/test_xsk.c:883: + ret = sendto(xsk_socket__fd(xsk->xsk), NULL, 0, MSG_DONTWAIT, NULL, 0); WARNING: line length of 89 exceeds 80 columns #933: FILE: tools/testing/selftests/bpf/test_xsk.c:887: + if (errno == ENOBUFS || errno == EAGAIN || errno == EBUSY || errno == ENETDOWN) { WARNING: line length of 84 exceeds 80 columns #944: FILE: tools/testing/selftests/bpf/test_xsk.c:898: + ret = recvfrom(xsk_socket__fd(xsk->xsk), NULL, 0, MSG_DONTWAIT, NULL, NULL); WARNING: line length of 93 exceeds 80 columns #966: FILE: tools/testing/selftests/bpf/test_xsk.c:920: + u64 addr = *xsk_ring_cons__comp_addr(&xsk->umem->cq, idx + rcvd - 1); WARNING: line length of 86 exceeds 80 columns #968: FILE: tools/testing/selftests/bpf/test_xsk.c:922: + ksft_print_msg("[%s] Too many packets completed\n", __func__); WARNING: line length of 81 exceeds 80 columns #1009: FILE: tools/testing/selftests/bpf/test_xsk.c:963: + ksft_print_msg("ERROR: [%s] Poll timed out\n", __func__); WARNING: line length of 89 exceeds 80 columns #1034: FILE: tools/testing/selftests/bpf/test_xsk.c:988: + const struct xdp_desc *desc = xsk_ring_cons__rx_desc(&xsk->rx, idx_rx++); WARNING: line length of 81 exceeds 80 columns #1041: FILE: tools/testing/selftests/bpf/test_xsk.c:995: + pkt = pkt_stream_get_next_rx_pkt(pkt_stream, &pkts_sent); WARNING: line length of 99 exceeds 80 columns #1043: FILE: tools/testing/selftests/bpf/test_xsk.c:997: + ksft_print_msg("[%s] received too many packets addr: %lx len %u\n", WARNING: line length of 89 exceeds 80 columns #1049: FILE: tools/testing/selftests/bpf/test_xsk.c:1003: + print_verbose("Rx: addr: %lx len: %u options: %u pkt_nb: %u valid: %u\n", WARNING: line length of 87 exceeds 80 columns #1050: FILE: tools/testing/selftests/bpf/test_xsk.c:1004: + addr, desc->len, desc->options, pkt->pkt_nb, pkt->valid); WARNING: line length of 82 exceeds 80 columns #1052: FILE: tools/testing/selftests/bpf/test_xsk.c:1006: + if (!is_frag_valid(umem, addr, desc->len, pkt->pkt_nb, pkt_len) || WARNING: line length of 82 exceeds 80 columns #1053: FILE: tools/testing/selftests/bpf/test_xsk.c:1007: + !is_offset_correct(umem, pkt, addr) || (ifobj->use_metadata && WARNING: line length of 85 exceeds 80 columns #1078: FILE: tools/testing/selftests/bpf/test_xsk.c:1032: + /* In the middle of a packet. Start over from beginning of packet. */ WARNING: line length of 92 exceeds 80 columns #1101: FILE: tools/testing/selftests/bpf/test_xsk.c:1055: +bool all_packets_received(struct test_spec *test, struct xsk_socket_info *xsk, u32 sock_num, WARNING: line length of 89 exceeds 80 columns #1149: FILE: tools/testing/selftests/bpf/test_xsk.c:1103: + ksft_print_msg("ERROR: [%s] Receive loop timed out\n", __func__); WARNING: line length of 92 exceeds 80 columns #1158: FILE: tools/testing/selftests/bpf/test_xsk.c:1112: +static int __send_pkts(struct ifobject *ifobject, struct xsk_socket_info *xsk, bool timeout) WARNING: line length of 86 exceeds 80 columns #1169: FILE: tools/testing/selftests/bpf/test_xsk.c:1123: + if (pkts_in_flight >= (int)((umem_size(umem) - xsk->batch_size * buffer_len) / WARNING: line length of 91 exceeds 80 columns #1180: FILE: tools/testing/selftests/bpf/test_xsk.c:1134: + while (xsk_ring_prod__reserve(&xsk->tx, xsk->batch_size, &idx) < xsk->batch_size) { WARNING: line length of 85 exceeds 80 columns #1185: FILE: tools/testing/selftests/bpf/test_xsk.c:1139: + ksft_print_msg("ERROR: [%s] Poll error %d\n", WARNING: line length of 93 exceeds 80 columns #1219: FILE: tools/testing/selftests/bpf/test_xsk.c:1173: + struct xdp_desc *tx_desc = xsk_ring_prod__tx_desc(&xsk->tx, idx + i); WARNING: line length of 97 exceeds 80 columns #1233: FILE: tools/testing/selftests/bpf/test_xsk.c:1187: + pkt_generate(xsk, umem, tx_desc->addr, tx_desc->len, pkt->pkt_nb, WARNING: line length of 87 exceeds 80 columns #1237: FILE: tools/testing/selftests/bpf/test_xsk.c:1191: + print_verbose("Tx addr: %llx len: %u options: %u pkt_nb: %u\n", WARNING: line length of 98 exceeds 80 columns #1238: FILE: tools/testing/selftests/bpf/test_xsk.c:1192: + tx_desc->addr, tx_desc->len, tx_desc->options, pkt->pkt_nb); WARNING: line length of 85 exceeds 80 columns #1243: FILE: tools/testing/selftests/bpf/test_xsk.c:1197: + pkt = pkt_stream_get_next_tx_pkt(pkt_stream); WARNING: line length of 85 exceeds 80 columns #1266: FILE: tools/testing/selftests/bpf/test_xsk.c:1220: + ksft_print_msg("ERROR: [%s] Poll error %d\n", __func__, ret); WARNING: line length of 94 exceeds 80 columns #1297: FILE: tools/testing/selftests/bpf/test_xsk.c:1251: + ksft_print_msg("ERROR: [%s] Transmission loop timed out\n", __func__); WARNING: line length of 95 exceeds 80 columns #1323: FILE: tools/testing/selftests/bpf/test_xsk.c:1277: + if (!pkt_stream || pkt_stream->current_pkt_nb >= pkt_stream->nb_pkts) { WARNING: line length of 84 exceeds 80 columns #1327: FILE: tools/testing/selftests/bpf/test_xsk.c:1281: + ret = __send_pkts(ifobject, &ifobject->xsk_arr[i], timeout); WARNING: line length of 86 exceeds 80 columns #1361: FILE: tools/testing/selftests/bpf/test_xsk.c:1315: + ksft_print_msg("[%s] getsockopt optlen error. Expected: %u got: %u\n", WARNING: line length of 93 exceeds 80 columns #1455: FILE: tools/testing/selftests/bpf/test_xsk.c:1409: + ksft_print_msg("[%s] tx_invalid_descs incorrect. Got [%llu] expected [%u]\n", CHECK: Alignment should match open parenthesis #1476: FILE: tools/testing/selftests/bpf/test_xsk.c:1430: + ret = xsk_configure_socket(&ifobject->xsk_arr[i], umem, + ifobject, shared); WARNING: line length of 87 exceeds 80 columns #1480: FILE: tools/testing/selftests/bpf/test_xsk.c:1434: + /* Retry if it fails as xsk_socket__create() is asynchronous */ WARNING: line length of 83 exceeds 80 columns #1490: FILE: tools/testing/selftests/bpf/test_xsk.c:1444: +static void thread_common_ops_tx(struct test_spec *test, struct ifobject *ifobject) WARNING: line length of 83 exceeds 80 columns #1495: FILE: tools/testing/selftests/bpf/test_xsk.c:1449: + memcpy(ifobject->umem, test->ifobj_rx->umem, sizeof(struct xsk_umem_info)); WARNING: line length of 93 exceeds 80 columns #1499: FILE: tools/testing/selftests/bpf/test_xsk.c:1453: +static void xsk_populate_fill_ring(struct xsk_umem_info *umem, struct pkt_stream *pkt_stream, WARNING: line length of 83 exceeds 80 columns #1516: FILE: tools/testing/selftests/bpf/test_xsk.c:1470: + struct pkt *pkt = pkt_stream_get_next_rx_pkt(pkt_stream, &nb_pkts); WARNING: line length of 84 exceeds 80 columns #1520: FILE: tools/testing/selftests/bpf/test_xsk.c:1474: + for (i = 0; i < pkt_nb_frags(rx_frame_size, pkt_stream, pkt); i++) { WARNING: line length of 83 exceeds 80 columns #1524: FILE: tools/testing/selftests/bpf/test_xsk.c:1478: + addr = filled * umem->frame_size + umem->base_addr; WARNING: line length of 96 exceeds 80 columns #1526: FILE: tools/testing/selftests/bpf/test_xsk.c:1480: + addr = pkt->offset % umem->frame_size + umem_alloc_buffer(umem); WARNING: line length of 99 exceeds 80 columns #1576: FILE: tools/testing/selftests/bpf/test_xsk.c:1530: + xsk_populate_fill_ring(ifobject->umem, ifobject->xsk->pkt_stream, ifobject->use_fill_ring); WARNING: line length of 81 exceeds 80 columns #1580: FILE: tools/testing/selftests/bpf/test_xsk.c:1534: + ret = xsk_update_xskmap(ifobject->xskmap, ifobject->xsk->xsk, i); WARNING: line length of 81 exceeds 80 columns #1619: FILE: tools/testing/selftests/bpf/test_xsk.c:1573: + err = xsk_update_xskmap(ifobject->xskmap, ifobject->xsk->xsk, 0); WARNING: line length of 84 exceeds 80 columns #1621: FILE: tools/testing/selftests/bpf/test_xsk.c:1575: + ksft_print_msg("Error: Failed to update xskmap, error %s\n", WARNING: line length of 88 exceeds 80 columns #1635: FILE: tools/testing/selftests/bpf/test_xsk.c:1589: + if (test->adjust_tail && !is_adjust_tail_supported(ifobject->xdp_progs)) WARNING: line length of 81 exceeds 80 columns #1665: FILE: tools/testing/selftests/bpf/test_xsk.c:1619: + return ifobj->xdp_prog != test->xdp_prog_rx || ifobj->mode != test->mode; WARNING: line length of 81 exceeds 80 columns #1672: FILE: tools/testing/selftests/bpf/test_xsk.c:1626: + return ifobj->xdp_prog != test->xdp_prog_tx || ifobj->mode != test->mode; WARNING: line length of 82 exceeds 80 columns #1675: FILE: tools/testing/selftests/bpf/test_xsk.c:1629: +static void xsk_reattach_xdp(struct ifobject *ifobj, struct bpf_program *xdp_prog, WARNING: line length of 88 exceeds 80 columns #1681: FILE: tools/testing/selftests/bpf/test_xsk.c:1635: + err = xsk_attach_xdp_program(xdp_prog, ifobj->ifindex, mode_to_xdp_flags(mode)); WARNING: line length of 83 exceeds 80 columns #1687: FILE: tools/testing/selftests/bpf/test_xsk.c:1641: + if (ifobj->mode != mode && (mode == TEST_MODE_DRV || mode == TEST_MODE_ZC)) WARNING: line length of 83 exceeds 80 columns #1698: FILE: tools/testing/selftests/bpf/test_xsk.c:1652: +static void xsk_attach_xdp_progs(struct test_spec *test, struct ifobject *ifobj_rx, WARNING: line length of 91 exceeds 80 columns #1702: FILE: tools/testing/selftests/bpf/test_xsk.c:1656: + xsk_reattach_xdp(ifobj_rx, test->xdp_prog_rx, test->xskmap_rx, test->mode); WARNING: line length of 91 exceeds 80 columns #1708: FILE: tools/testing/selftests/bpf/test_xsk.c:1662: + xsk_reattach_xdp(ifobj_tx, test->xdp_prog_tx, test->xskmap_tx, test->mode); WARNING: line length of 86 exceeds 80 columns #1711: FILE: tools/testing/selftests/bpf/test_xsk.c:1665: +static int __testapp_validate_traffic(struct test_spec *test, struct ifobject *ifobj1, WARNING: line length of 81 exceeds 80 columns #1718: FILE: tools/testing/selftests/bpf/test_xsk.c:1672: + if (test->mode == TEST_MODE_ZC && (!ifobj1->multi_buff_zc_supp || WARNING: line length of 94 exceeds 80 columns #1719: FILE: tools/testing/selftests/bpf/test_xsk.c:1673: + (ifobj2 && !ifobj2->multi_buff_zc_supp))) { WARNING: line length of 93 exceeds 80 columns #1720: FILE: tools/testing/selftests/bpf/test_xsk.c:1674: + ksft_test_result_skip("Multi buffer for zero-copy not supported.\n"); WARNING: line length of 91 exceeds 80 columns #1724: FILE: tools/testing/selftests/bpf/test_xsk.c:1678: + (ifobj2 && !ifobj2->multi_buff_supp))) { WARNING: line length of 90 exceeds 80 columns #1797: FILE: tools/testing/selftests/bpf/test_xsk.c:1751: + ksft_test_result_skip("Failed to change HW ring size.\n"); WARNING: line length of 88 exceeds 80 columns #1801: FILE: tools/testing/selftests/bpf/test_xsk.c:1755: + ksft_test_result_skip("Changing HW ring size not supported.\n"); WARNING: line length of 97 exceeds 80 columns #1810: FILE: tools/testing/selftests/bpf/test_xsk.c:1764: +static int testapp_validate_traffic_single_thread(struct test_spec *test, struct ifobject *ifobj) WARNING: line length of 85 exceeds 80 columns #1869: FILE: tools/testing/selftests/bpf/test_xsk.c:1823: + ret = xsk_update_xskmap(test->ifobj_rx->xskmap, test->ifobj_rx->xsk->xsk, 0); WARNING: line length of 83 exceeds 80 columns #1897: FILE: tools/testing/selftests/bpf/test_xsk.c:1851: + ksft_test_result_skip("Can not run RX_DROPPED test for ZC mode\n"); WARNING: line length of 81 exceeds 80 columns #1902: FILE: tools/testing/selftests/bpf/test_xsk.c:1856: + test->ifobj_rx->umem->frame_headroom = test->ifobj_rx->umem->frame_size - WARNING: line length of 96 exceeds 80 columns #1918: FILE: tools/testing/selftests/bpf/test_xsk.c:1872: + pkt_stream_replace(test, DEFAULT_UMEM_BUFFERS + DEFAULT_UMEM_BUFFERS / 2, MIN_PKT_SIZE); WARNING: line length of 98 exceeds 80 columns #1919: FILE: tools/testing/selftests/bpf/test_xsk.c:1873: + test->ifobj_rx->xsk->pkt_stream = pkt_stream_generate(DEFAULT_UMEM_BUFFERS, MIN_PKT_SIZE); WARNING: line length of 96 exceeds 80 columns #1929: FILE: tools/testing/selftests/bpf/test_xsk.c:1883: + pkt_stream_replace(test, DEFAULT_UMEM_BUFFERS + DEFAULT_UMEM_BUFFERS / 2, MIN_PKT_SIZE); WARNING: line length of 98 exceeds 80 columns #1930: FILE: tools/testing/selftests/bpf/test_xsk.c:1884: + test->ifobj_rx->xsk->pkt_stream = pkt_stream_generate(DEFAULT_UMEM_BUFFERS, MIN_PKT_SIZE); WARNING: line length of 81 exceeds 80 columns #1985: FILE: tools/testing/selftests/bpf/test_xsk.c:1939: + {umem_size, XSK_UMEM__LARGE_FRAME_SIZE, 0, false, XDP_PKT_CONTD}, WARNING: line length of 84 exceeds 80 columns #1991: FILE: tools/testing/selftests/bpf/test_xsk.c:1945: + {0, XSK_UMEM__LARGE_FRAME_SIZE, 0, false, XSK_DESC__INVALID_OPTION}, WARNING: line length of 89 exceeds 80 columns #2026: FILE: tools/testing/selftests/bpf/test_xsk.c:1980: + {umem_size - MIN_PKT_SIZE - 2 * umem->frame_size, MIN_PKT_SIZE, 0, true}, WARNING: line length of 94 exceeds 80 columns #2062: FILE: tools/testing/selftests/bpf/test_xsk.c:2016: + test_spec_set_xdp_prog(test, skel_rx->progs.xsk_xdp_drop, skel_tx->progs.xsk_xdp_drop, WARNING: line length of 85 exceeds 80 columns #2084: FILE: tools/testing/selftests/bpf/test_xsk.c:2038: + ksft_print_msg("Error: could not find bss section of XDP program\n"); WARNING: line length of 86 exceeds 80 columns #2116: FILE: tools/testing/selftests/bpf/test_xsk.c:2070: + /* create invalid frame by set umem frame_size and pkt length equal to 2048 */ WARNING: line length of 100 exceeds 80 columns #2139: FILE: tools/testing/selftests/bpf/test_xsk.c:2093: + ksft_print_msg("Can't get MAX_SKB_FRAGS from system, using default (17)\n"); WARNING: line length of 81 exceeds 80 columns #2195: FILE: tools/testing/selftests/bpf/test_xsk.c:2149: + size_t mmap_sz = 2 * DEFAULT_UMEM_BUFFERS * XSK_UMEM__DEFAULT_FRAME_SIZE; WARNING: line length of 81 exceeds 80 columns #2199: FILE: tools/testing/selftests/bpf/test_xsk.c:2153: + MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, -1, MAP_HUGE_2MB); WARNING: line length of 88 exceeds 80 columns #2298: FILE: tools/testing/selftests/bpf/test_xsk.c:2252: + umem_size = test->ifobj_tx->umem->num_frames * test->ifobj_tx->umem->frame_size; WARNING: line length of 91 exceeds 80 columns #2367: FILE: tools/testing/selftests/bpf/test_xsk.c:2321: + /* Set batch_size to 8152 for testing, as the ice HW ignores the 3 lowest bits when WARNING: line length of 82 exceeds 80 columns #2370: FILE: tools/testing/selftests/bpf/test_xsk.c:2324: + test->ifobj_tx->xsk->batch_size = test->ifobj_tx->ring.tx_max_pending - 8; WARNING: line length of 82 exceeds 80 columns #2371: FILE: tools/testing/selftests/bpf/test_xsk.c:2325: + test->ifobj_rx->xsk->batch_size = test->ifobj_tx->ring.tx_max_pending - 8; WARNING: line length of 81 exceeds 80 columns #2398: FILE: tools/testing/selftests/bpf/test_xsk.c:2352: + pkt_stream_replace_ifobject(test->ifobj_tx, DEFAULT_BATCH_SIZE, pkt_len); WARNING: line length of 89 exceeds 80 columns #2399: FILE: tools/testing/selftests/bpf/test_xsk.c:2353: + pkt_stream_replace_ifobject(test->ifobj_rx, DEFAULT_BATCH_SIZE, pkt_len + value); WARNING: line length of 99 exceeds 80 columns #2406: FILE: tools/testing/selftests/bpf/test_xsk.c:2360: + ksft_test_result_skip("%s %sResize pkt with bpf_xdp_adjust_tail() not supported\n", WARNING: line length of 81 exceeds 80 columns #2407: FILE: tools/testing/selftests/bpf/test_xsk.c:2361: + mode_string(test), busy_poll_string(test)); WARNING: line length of 100 exceeds 80 columns #2424: FILE: tools/testing/selftests/bpf/test_xsk.c:2378: + return testapp_adjust_tail(test, -XSK_UMEM__MAX_FRAME_SIZE, XSK_UMEM__LARGE_FRAME_SIZE * 2); WARNING: line length of 87 exceeds 80 columns #2436: FILE: tools/testing/selftests/bpf/test_xsk.c:2390: + /* Grow by (frag_size - last_frag_Size) - 1 to stay inside the last fragment */ WARNING: line length of 90 exceeds 80 columns #2446: FILE: tools/testing/selftests/bpf/test_xsk.c:2400: + ksft_test_result_skip("Can not run TX_QUEUE_CONSUMER test for ZC mode\n"); WARNING: line length of 86 exceeds 80 columns #2531: FILE: tools/testing/selftests/bpf/test_xsk.h:37: +static void __exit_with_error(int error, const char *file, const char *func, int line) WARNING: line length of 88 exceeds 80 columns #2533: FILE: tools/testing/selftests/bpf/test_xsk.h:39: + ksft_test_result_fail("[%s:%s:%i]: ERROR: %d/\"%s\"\n", file, func, line, error, WARNING: line length of 85 exceeds 80 columns #2537: FILE: tools/testing/selftests/bpf/test_xsk.h:43: +#define exit_with_error(error) __exit_with_error(error, __FILE__, __func__, __LINE__) CHECK: Please use a blank line after function/struct/union/enum declarations #2537: FILE: tools/testing/selftests/bpf/test_xsk.h:43: +} +#define exit_with_error(error) __exit_with_error(error, __FILE__, __func__, __LINE__) CHECK: Please use a blank line after function/struct/union/enum declarations #2632: FILE: tools/testing/selftests/bpf/test_xsk.h:138: +}; +struct ifobject *ifobject_create(void); WARNING: line length of 99 exceeds 80 columns #2636: FILE: tools/testing/selftests/bpf/test_xsk.h:142: +int xsk_configure_umem(struct ifobject *ifobj, struct xsk_umem_info *umem, void *buffer, u64 size); WARNING: line length of 81 exceeds 80 columns #2637: FILE: tools/testing/selftests/bpf/test_xsk.h:143: +int xsk_configure_socket(struct xsk_socket_info *xsk, struct xsk_umem_info *umem, CHECK: Please don't use multiple blank lines #2640: FILE: tools/testing/selftests/bpf/test_xsk.h:146: + + WARNING: line length of 86 exceeds 80 columns #2752: FILE: tools/testing/selftests/bpf/test_xsk.h:258: + {.name = "SEND_RECEIVE_2K_FRAME", .test_func = testapp_send_receive_2k_frame}, WARNING: line length of 88 exceeds 80 columns #2758: FILE: tools/testing/selftests/bpf/test_xsk.h:264: + {.name = "SEND_RECEIVE_UNALIGNED", .test_func = testapp_send_receive_unaligned}, WARNING: line length of 99 exceeds 80 columns #2760: FILE: tools/testing/selftests/bpf/test_xsk.h:266: + {.name = "ALIGNED_INV_DESC_2K_FRAME_SIZE", .test_func = testapp_aligned_inv_desc_2k_frame}, WARNING: line length of 81 exceeds 80 columns #2768: FILE: tools/testing/selftests/bpf/test_xsk.h:274: + {.name = "STAT_TX_INVALID", .test_func = testapp_stats_tx_invalid_descs}, WARNING: line length of 87 exceeds 80 columns #2775: FILE: tools/testing/selftests/bpf/test_xsk.h:281: + {.name = "XDP_METADATA_COPY_MULTI_BUFF", .test_func = testapp_xdp_metadata_mb}, WARNING: line length of 82 exceeds 80 columns #2776: FILE: tools/testing/selftests/bpf/test_xsk.h:282: + {.name = "SEND_RECEIVE_9K_PACKETS", .test_func = testapp_send_receive_mb}, WARNING: line length of 90 exceeds 80 columns #2779: FILE: tools/testing/selftests/bpf/test_xsk.h:285: + {.name = "ALIGNED_INV_DESC_MULTI_BUFF", .test_func = testapp_aligned_inv_desc_mb}, WARNING: line length of 94 exceeds 80 columns #2780: FILE: tools/testing/selftests/bpf/test_xsk.h:286: + {.name = "UNALIGNED_INV_DESC_MULTI_BUFF", .test_func = testapp_unaligned_inv_desc_mb}, WARNING: line length of 82 exceeds 80 columns #2782: FILE: tools/testing/selftests/bpf/test_xsk.h:288: + {.name = "HW_SW_MIN_RING_SIZE", .test_func = testapp_hw_sw_min_ring_size}, WARNING: line length of 82 exceeds 80 columns #2783: FILE: tools/testing/selftests/bpf/test_xsk.h:289: + {.name = "HW_SW_MAX_RING_SIZE", .test_func = testapp_hw_sw_max_ring_size}, WARNING: line length of 84 exceeds 80 columns #2784: FILE: tools/testing/selftests/bpf/test_xsk.h:290: + {.name = "XDP_ADJUST_TAIL_SHRINK", .test_func = testapp_adjust_tail_shrink}, WARNING: line length of 98 exceeds 80 columns #2785: FILE: tools/testing/selftests/bpf/test_xsk.h:291: + {.name = "XDP_ADJUST_TAIL_SHRINK_MULTI_BUFF", .test_func = testapp_adjust_tail_shrink_mb}, WARNING: line length of 94 exceeds 80 columns #2787: FILE: tools/testing/selftests/bpf/test_xsk.h:293: + {.name = "XDP_ADJUST_TAIL_GROW_MULTI_BUFF", .test_func = testapp_adjust_tail_grow_mb}, WARNING: line length of 99 exceeds 80 columns #3178: FILE: tools/testing/selftests/bpf/xskxceiver.c:265: + ksft_test_result_pass("PASS: %s %s%s\n", mode_string(test), busy_poll_string(test), WARNING: line length of 87 exceeds 80 columns #3436: FILE: tools/testing/selftests/bpf/xskxceiver.c:282: + prog_fd = bpf_prog_load(BPF_PROG_TYPE_XDP, NULL, "GPL", insns, insn_cnt, NULL); total: 0 errors, 158 warnings, 7 checks, 5544 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit a5d74d0b9a11 ("selftests/bpf: test_xsk: Split xskxceiver") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 158 warnings, 7 checks, 5544 lines checked