WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #44: new file mode 100644 WARNING: line length of 92 exceeds 80 columns #96: FILE: tools/testing/selftests/bpf/test_xsk.c:48: + * 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 #97: FILE: tools/testing/selftests/bpf/test_xsk.c:49: + * 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 #123: FILE: tools/testing/selftests/bpf/test_xsk.c:75: + return (mode == TEST_MODE_SKB) ? XDP_FLAGS_SKB_MODE : XDP_FLAGS_DRV_MODE; WARNING: line length of 88 exceeds 80 columns #131: FILE: tools/testing/selftests/bpf/test_xsk.c:83: +int xsk_configure_umem(struct ifobject *ifobj, struct xsk_umem_info *umem, void *buffer, CHECK: Alignment should match open parenthesis #132: FILE: tools/testing/selftests/bpf/test_xsk.c:84: +int xsk_configure_umem(struct ifobject *ifobj, struct xsk_umem_info *umem, void *buffer, + u64 size) WARNING: line length of 81 exceeds 80 columns #188: FILE: tools/testing/selftests/bpf/test_xsk.c:140: + if (setsockopt(xsk_socket__fd(xsk->xsk), SOL_SOCKET, SO_PREFER_BUSY_POLL, WARNING: line length of 81 exceeds 80 columns #198: FILE: tools/testing/selftests/bpf/test_xsk.c:150: + if (setsockopt(xsk_socket__fd(xsk->xsk), SOL_SOCKET, SO_BUSY_POLL_BUDGET, WARNING: line length of 81 exceeds 80 columns #203: FILE: tools/testing/selftests/bpf/test_xsk.c:155: +int xsk_configure_socket(struct xsk_socket_info *xsk, struct xsk_umem_info *umem, CHECK: Alignment should match open parenthesis #204: FILE: tools/testing/selftests/bpf/test_xsk.c:156: +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 #225: FILE: tools/testing/selftests/bpf/test_xsk.c:177: + return xsk_socket__create(&xsk->xsk, ifobject->ifindex, 0, umem->umem, rxr, txr, &cfg); WARNING: line length of 81 exceeds 80 columns #302: FILE: tools/testing/selftests/bpf/test_xsk.c:254: + memset(&ifobj->xsk_arr[j], 0, sizeof(ifobj->xsk_arr[j])); WARNING: line length of 85 exceeds 80 columns #303: FILE: tools/testing/selftests/bpf/test_xsk.c:255: + ifobj->xsk_arr[j].rxqsize = XSK_RING_CONS__DEFAULT_NUM_DESCS; WARNING: line length of 91 exceeds 80 columns #306: FILE: tools/testing/selftests/bpf/test_xsk.c:258: + ifobj->xsk_arr[j].pkt_stream = test->tx_pkt_stream_default; WARNING: line length of 91 exceeds 80 columns #308: FILE: tools/testing/selftests/bpf/test_xsk.c:260: + ifobj->xsk_arr[j].pkt_stream = test->rx_pkt_stream_default; CHECK: Alignment should match open parenthesis #337: FILE: tools/testing/selftests/bpf/test_xsk.c:289: +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 #371: FILE: tools/testing/selftests/bpf/test_xsk.c:323: +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 #372: FILE: tools/testing/selftests/bpf/test_xsk.c:324: + struct bpf_program *xdp_prog_tx, struct bpf_map *xskmap_rx, WARNING: line length of 92 exceeds 80 columns #417: FILE: tools/testing/selftests/bpf/test_xsk.c:369: +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 #468: FILE: tools/testing/selftests/bpf/test_xsk.c:420: +static u32 pkt_nb_frags(u32 frame_size, struct pkt_stream *pkt_stream, struct pkt *pkt) WARNING: line length of 88 exceeds 80 columns #501: FILE: tools/testing/selftests/bpf/test_xsk.c:453: +static void pkt_set(struct pkt_stream *pkt_stream, struct pkt *pkt, int offset, u32 len) WARNING: line length of 99 exceeds 80 columns #508: FILE: tools/testing/selftests/bpf/test_xsk.c:460: +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 #521: FILE: tools/testing/selftests/bpf/test_xsk.c:473: +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 #549: FILE: tools/testing/selftests/bpf/test_xsk.c:501: + return pkt_stream_generate(pkt_stream->nb_pkts, pkt_stream->pkts[0].len); WARNING: line length of 89 exceeds 80 columns #552: FILE: tools/testing/selftests/bpf/test_xsk.c:504: +static void pkt_stream_replace_ifobject(struct ifobject *ifobj, u32 nb_pkts, u32 pkt_len) WARNING: line length of 86 exceeds 80 columns #571: FILE: tools/testing/selftests/bpf/test_xsk.c:523: + pkt_stream_pkt_set(pkt_stream, &pkt_stream->pkts[i], offset, pkt_len); WARNING: line length of 84 exceeds 80 columns #576: FILE: tools/testing/selftests/bpf/test_xsk.c:528: +static void pkt_stream_replace_half(struct test_spec *test, u32 pkt_len, int offset) WARNING: line length of 82 exceeds 80 columns #587: FILE: tools/testing/selftests/bpf/test_xsk.c:539: + test->ifobj_rx->xsk->pkt_stream = pkt_stream_generate(pkt_stream->nb_pkts, WARNING: line length of 87 exceeds 80 columns #588: FILE: tools/testing/selftests/bpf/test_xsk.c:540: + pkt_stream->pkts[0].len); WARNING: line length of 82 exceeds 80 columns #604: FILE: tools/testing/selftests/bpf/test_xsk.c:556: + pkt_stream->pkts[0].len, i, 2); WARNING: line length of 82 exceeds 80 columns #609: FILE: tools/testing/selftests/bpf/test_xsk.c:561: + pkt_stream->pkts[0].len, i, 2); WARNING: line length of 100 exceeds 80 columns #626: FILE: tools/testing/selftests/bpf/test_xsk.c:578: +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 #646: FILE: tools/testing/selftests/bpf/test_xsk.c:598: +static struct pkt_stream *__pkt_stream_generate_custom(struct ifobject *ifobj, struct pkt *frames, WARNING: line length of 84 exceeds 80 columns #647: FILE: tools/testing/selftests/bpf/test_xsk.c:599: + u32 nb_frames, bool verbatim) WARNING: line length of 86 exceeds 80 columns #680: FILE: tools/testing/selftests/bpf/test_xsk.c:632: + print_verbose("offset: %d len: %u valid: %u options: %u pkt_nb: %u\n", WARNING: line length of 92 exceeds 80 columns #681: FILE: tools/testing/selftests/bpf/test_xsk.c:633: + pkt->offset, pkt->len, pkt->valid, pkt->options, pkt->pkt_nb); WARNING: line length of 93 exceeds 80 columns #697: FILE: tools/testing/selftests/bpf/test_xsk.c:649: +static void pkt_stream_generate_custom(struct test_spec *test, struct pkt *pkts, u32 nb_pkts) WARNING: line length of 87 exceeds 80 columns #701: FILE: tools/testing/selftests/bpf/test_xsk.c:653: + pkt_stream = __pkt_stream_generate_custom(test->ifobj_tx, pkts, nb_pkts, true); WARNING: line length of 88 exceeds 80 columns #704: FILE: tools/testing/selftests/bpf/test_xsk.c:656: + pkt_stream = __pkt_stream_generate_custom(test->ifobj_rx, pkts, nb_pkts, false); WARNING: line length of 84 exceeds 80 columns #754: FILE: tools/testing/selftests/bpf/test_xsk.c:706: +static bool is_offset_correct(struct xsk_umem_info *umem, struct pkt *pkt, u64 addr) WARNING: line length of 91 exceeds 80 columns #763: FILE: tools/testing/selftests/bpf/test_xsk.c:715: + expected_offset = (pkt_offset + headroom + XDP_PACKET_HEADROOM) % umem->frame_size; WARNING: line length of 92 exceeds 80 columns #768: FILE: tools/testing/selftests/bpf/test_xsk.c:720: + ksft_print_msg("[%s] expected [%u], got [%u]\n", __func__, expected_offset, offset); WARNING: line length of 88 exceeds 80 columns #778: FILE: tools/testing/selftests/bpf/test_xsk.c:730: + ksft_print_msg("[%s] expected meta_count [%d], got meta_count [%llu]\n", WARNING: line length of 85 exceeds 80 columns #796: FILE: tools/testing/selftests/bpf/test_xsk.c:748: + ksft_print_msg("Error: could not find bss section of XDP program\n"); WARNING: line length of 89 exceeds 80 columns #802: FILE: tools/testing/selftests/bpf/test_xsk.c:754: + ksft_print_msg("Error: bpf_map_lookup_elem failed with error %d\n", ret); WARNING: line length of 95 exceeds 80 columns #806: FILE: tools/testing/selftests/bpf/test_xsk.c:758: + /* Set the 'adjust_value' variable to -EOPNOTSUPP in the XDP program if the adjust_tail WARNING: line length of 84 exceeds 80 columns #807: FILE: tools/testing/selftests/bpf/test_xsk.c:759: + * helper is not supported. Skip the adjust_tail test case in this scenario. WARNING: line length of 93 exceeds 80 columns #812: FILE: tools/testing/selftests/bpf/test_xsk.c:764: +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 #826: FILE: tools/testing/selftests/bpf/test_xsk.c:778: + if (!umem->unaligned_mode && addr % umem->frame_size + len > umem->frame_size) { WARNING: line length of 82 exceeds 80 columns #827: FILE: tools/testing/selftests/bpf/test_xsk.c:779: + ksft_print_msg("Frag crosses frame boundary addr: %llx len: %u\n", WARNING: line length of 87 exceeds 80 columns #850: FILE: tools/testing/selftests/bpf/test_xsk.c:802: + ksft_print_msg("[%s] expected seqnum at start [%u], got seqnum [%u]\n", WARNING: line length of 85 exceeds 80 columns #860: FILE: tools/testing/selftests/bpf/test_xsk.c:812: + ksft_print_msg("[%s] expected seqnum at end [%u], got seqnum [%u]\n", WARNING: line length of 85 exceeds 80 columns #875: FILE: tools/testing/selftests/bpf/test_xsk.c:827: + ksft_print_msg("[%s] expected packet length [%d], got length [%d]\n", WARNING: line length of 87 exceeds 80 columns #921: FILE: tools/testing/selftests/bpf/test_xsk.c:873: + ret = sendto(xsk_socket__fd(xsk->xsk), NULL, 0, MSG_DONTWAIT, NULL, 0); WARNING: line length of 89 exceeds 80 columns #925: FILE: tools/testing/selftests/bpf/test_xsk.c:877: + if (errno == ENOBUFS || errno == EAGAIN || errno == EBUSY || errno == ENETDOWN) { WARNING: line length of 84 exceeds 80 columns #936: FILE: tools/testing/selftests/bpf/test_xsk.c:888: + ret = recvfrom(xsk_socket__fd(xsk->xsk), NULL, 0, MSG_DONTWAIT, NULL, NULL); WARNING: line length of 93 exceeds 80 columns #958: FILE: tools/testing/selftests/bpf/test_xsk.c:910: + u64 addr = *xsk_ring_cons__comp_addr(&xsk->umem->cq, idx + rcvd - 1); WARNING: line length of 86 exceeds 80 columns #960: FILE: tools/testing/selftests/bpf/test_xsk.c:912: + ksft_print_msg("[%s] Too many packets completed\n", __func__); WARNING: line length of 81 exceeds 80 columns #1001: FILE: tools/testing/selftests/bpf/test_xsk.c:953: + ksft_print_msg("ERROR: [%s] Poll timed out\n", __func__); WARNING: line length of 89 exceeds 80 columns #1026: FILE: tools/testing/selftests/bpf/test_xsk.c:978: + const struct xdp_desc *desc = xsk_ring_cons__rx_desc(&xsk->rx, idx_rx++); WARNING: line length of 81 exceeds 80 columns #1033: FILE: tools/testing/selftests/bpf/test_xsk.c:985: + pkt = pkt_stream_get_next_rx_pkt(pkt_stream, &pkts_sent); WARNING: line length of 99 exceeds 80 columns #1035: FILE: tools/testing/selftests/bpf/test_xsk.c:987: + ksft_print_msg("[%s] received too many packets addr: %lx len %u\n", WARNING: line length of 89 exceeds 80 columns #1041: FILE: tools/testing/selftests/bpf/test_xsk.c:993: + print_verbose("Rx: addr: %lx len: %u options: %u pkt_nb: %u valid: %u\n", WARNING: line length of 87 exceeds 80 columns #1042: FILE: tools/testing/selftests/bpf/test_xsk.c:994: + addr, desc->len, desc->options, pkt->pkt_nb, pkt->valid); WARNING: line length of 82 exceeds 80 columns #1044: FILE: tools/testing/selftests/bpf/test_xsk.c:996: + if (!is_frag_valid(umem, addr, desc->len, pkt->pkt_nb, pkt_len) || WARNING: line length of 82 exceeds 80 columns #1045: FILE: tools/testing/selftests/bpf/test_xsk.c:997: + !is_offset_correct(umem, pkt, addr) || (ifobj->use_metadata && WARNING: line length of 85 exceeds 80 columns #1070: FILE: tools/testing/selftests/bpf/test_xsk.c:1022: + /* In the middle of a packet. Start over from beginning of packet. */ WARNING: line length of 92 exceeds 80 columns #1093: FILE: tools/testing/selftests/bpf/test_xsk.c:1045: +bool all_packets_received(struct test_spec *test, struct xsk_socket_info *xsk, u32 sock_num, WARNING: line length of 89 exceeds 80 columns #1141: FILE: tools/testing/selftests/bpf/test_xsk.c:1093: + ksft_print_msg("ERROR: [%s] Receive loop timed out\n", __func__); WARNING: line length of 92 exceeds 80 columns #1150: FILE: tools/testing/selftests/bpf/test_xsk.c:1102: +static int __send_pkts(struct ifobject *ifobject, struct xsk_socket_info *xsk, bool timeout) WARNING: line length of 86 exceeds 80 columns #1161: FILE: tools/testing/selftests/bpf/test_xsk.c:1113: + if (pkts_in_flight >= (int)((umem_size(umem) - xsk->batch_size * buffer_len) / WARNING: line length of 91 exceeds 80 columns #1172: FILE: tools/testing/selftests/bpf/test_xsk.c:1124: + while (xsk_ring_prod__reserve(&xsk->tx, xsk->batch_size, &idx) < xsk->batch_size) { WARNING: line length of 85 exceeds 80 columns #1177: FILE: tools/testing/selftests/bpf/test_xsk.c:1129: + ksft_print_msg("ERROR: [%s] Poll error %d\n", WARNING: line length of 93 exceeds 80 columns #1211: FILE: tools/testing/selftests/bpf/test_xsk.c:1163: + struct xdp_desc *tx_desc = xsk_ring_prod__tx_desc(&xsk->tx, idx + i); WARNING: line length of 97 exceeds 80 columns #1225: FILE: tools/testing/selftests/bpf/test_xsk.c:1177: + pkt_generate(xsk, umem, tx_desc->addr, tx_desc->len, pkt->pkt_nb, WARNING: line length of 87 exceeds 80 columns #1229: FILE: tools/testing/selftests/bpf/test_xsk.c:1181: + print_verbose("Tx addr: %llx len: %u options: %u pkt_nb: %u\n", WARNING: line length of 98 exceeds 80 columns #1230: FILE: tools/testing/selftests/bpf/test_xsk.c:1182: + tx_desc->addr, tx_desc->len, tx_desc->options, pkt->pkt_nb); WARNING: line length of 85 exceeds 80 columns #1235: FILE: tools/testing/selftests/bpf/test_xsk.c:1187: + pkt = pkt_stream_get_next_tx_pkt(pkt_stream); WARNING: line length of 85 exceeds 80 columns #1258: FILE: tools/testing/selftests/bpf/test_xsk.c:1210: + ksft_print_msg("ERROR: [%s] Poll error %d\n", __func__, ret); WARNING: line length of 94 exceeds 80 columns #1289: FILE: tools/testing/selftests/bpf/test_xsk.c:1241: + ksft_print_msg("ERROR: [%s] Transmission loop timed out\n", __func__); WARNING: line length of 95 exceeds 80 columns #1315: FILE: tools/testing/selftests/bpf/test_xsk.c:1267: + if (!pkt_stream || pkt_stream->current_pkt_nb >= pkt_stream->nb_pkts) { WARNING: line length of 84 exceeds 80 columns #1319: FILE: tools/testing/selftests/bpf/test_xsk.c:1271: + ret = __send_pkts(ifobject, &ifobject->xsk_arr[i], timeout); WARNING: line length of 86 exceeds 80 columns #1353: FILE: tools/testing/selftests/bpf/test_xsk.c:1305: + ksft_print_msg("[%s] getsockopt optlen error. Expected: %u got: %u\n", WARNING: line length of 93 exceeds 80 columns #1447: FILE: tools/testing/selftests/bpf/test_xsk.c:1399: + ksft_print_msg("[%s] tx_invalid_descs incorrect. Got [%llu] expected [%u]\n", CHECK: Alignment should match open parenthesis #1468: FILE: tools/testing/selftests/bpf/test_xsk.c:1420: + ret = xsk_configure_socket(&ifobject->xsk_arr[i], umem, + ifobject, shared); WARNING: line length of 87 exceeds 80 columns #1472: FILE: tools/testing/selftests/bpf/test_xsk.c:1424: + /* Retry if it fails as xsk_socket__create() is asynchronous */ WARNING: line length of 83 exceeds 80 columns #1482: FILE: tools/testing/selftests/bpf/test_xsk.c:1434: +static void thread_common_ops_tx(struct test_spec *test, struct ifobject *ifobject) WARNING: line length of 83 exceeds 80 columns #1487: FILE: tools/testing/selftests/bpf/test_xsk.c:1439: + memcpy(ifobject->umem, test->ifobj_rx->umem, sizeof(struct xsk_umem_info)); WARNING: line length of 93 exceeds 80 columns #1491: FILE: tools/testing/selftests/bpf/test_xsk.c:1443: +static void xsk_populate_fill_ring(struct xsk_umem_info *umem, struct pkt_stream *pkt_stream, WARNING: line length of 83 exceeds 80 columns #1508: FILE: tools/testing/selftests/bpf/test_xsk.c:1460: + struct pkt *pkt = pkt_stream_get_next_rx_pkt(pkt_stream, &nb_pkts); WARNING: line length of 84 exceeds 80 columns #1512: FILE: tools/testing/selftests/bpf/test_xsk.c:1464: + for (i = 0; i < pkt_nb_frags(rx_frame_size, pkt_stream, pkt); i++) { WARNING: line length of 83 exceeds 80 columns #1516: FILE: tools/testing/selftests/bpf/test_xsk.c:1468: + addr = filled * umem->frame_size + umem->base_addr; WARNING: line length of 96 exceeds 80 columns #1518: FILE: tools/testing/selftests/bpf/test_xsk.c:1470: + addr = pkt->offset % umem->frame_size + umem_alloc_buffer(umem); WARNING: line length of 99 exceeds 80 columns #1568: FILE: tools/testing/selftests/bpf/test_xsk.c:1520: + xsk_populate_fill_ring(ifobject->umem, ifobject->xsk->pkt_stream, ifobject->use_fill_ring); WARNING: line length of 81 exceeds 80 columns #1572: FILE: tools/testing/selftests/bpf/test_xsk.c:1524: + ret = xsk_update_xskmap(ifobject->xskmap, ifobject->xsk->xsk, i); WARNING: line length of 81 exceeds 80 columns #1611: FILE: tools/testing/selftests/bpf/test_xsk.c:1563: + err = xsk_update_xskmap(ifobject->xskmap, ifobject->xsk->xsk, 0); WARNING: line length of 84 exceeds 80 columns #1613: FILE: tools/testing/selftests/bpf/test_xsk.c:1565: + ksft_print_msg("Error: Failed to update xskmap, error %s\n", WARNING: line length of 88 exceeds 80 columns #1627: FILE: tools/testing/selftests/bpf/test_xsk.c:1579: + if (test->adjust_tail && !is_adjust_tail_supported(ifobject->xdp_progs)) WARNING: line length of 81 exceeds 80 columns #1657: FILE: tools/testing/selftests/bpf/test_xsk.c:1609: + return ifobj->xdp_prog != test->xdp_prog_rx || ifobj->mode != test->mode; WARNING: line length of 81 exceeds 80 columns #1664: FILE: tools/testing/selftests/bpf/test_xsk.c:1616: + return ifobj->xdp_prog != test->xdp_prog_tx || ifobj->mode != test->mode; WARNING: line length of 82 exceeds 80 columns #1667: FILE: tools/testing/selftests/bpf/test_xsk.c:1619: +static void xsk_reattach_xdp(struct ifobject *ifobj, struct bpf_program *xdp_prog, WARNING: line length of 88 exceeds 80 columns #1673: FILE: tools/testing/selftests/bpf/test_xsk.c:1625: + err = xsk_attach_xdp_program(xdp_prog, ifobj->ifindex, mode_to_xdp_flags(mode)); WARNING: line length of 83 exceeds 80 columns #1679: FILE: tools/testing/selftests/bpf/test_xsk.c:1631: + if (ifobj->mode != mode && (mode == TEST_MODE_DRV || mode == TEST_MODE_ZC)) WARNING: line length of 83 exceeds 80 columns #1690: FILE: tools/testing/selftests/bpf/test_xsk.c:1642: +static void xsk_attach_xdp_progs(struct test_spec *test, struct ifobject *ifobj_rx, WARNING: line length of 91 exceeds 80 columns #1694: FILE: tools/testing/selftests/bpf/test_xsk.c:1646: + xsk_reattach_xdp(ifobj_rx, test->xdp_prog_rx, test->xskmap_rx, test->mode); WARNING: line length of 91 exceeds 80 columns #1700: FILE: tools/testing/selftests/bpf/test_xsk.c:1652: + xsk_reattach_xdp(ifobj_tx, test->xdp_prog_tx, test->xskmap_tx, test->mode); WARNING: line length of 86 exceeds 80 columns #1703: FILE: tools/testing/selftests/bpf/test_xsk.c:1655: +static int __testapp_validate_traffic(struct test_spec *test, struct ifobject *ifobj1, WARNING: line length of 81 exceeds 80 columns #1710: FILE: tools/testing/selftests/bpf/test_xsk.c:1662: + if (test->mode == TEST_MODE_ZC && (!ifobj1->multi_buff_zc_supp || WARNING: line length of 94 exceeds 80 columns #1711: FILE: tools/testing/selftests/bpf/test_xsk.c:1663: + (ifobj2 && !ifobj2->multi_buff_zc_supp))) { WARNING: line length of 86 exceeds 80 columns #1712: FILE: tools/testing/selftests/bpf/test_xsk.c:1664: + ksft_print_msg("Multi buffer for zero-copy not supported.\n"); WARNING: line length of 91 exceeds 80 columns #1716: FILE: tools/testing/selftests/bpf/test_xsk.c:1668: + (ifobj2 && !ifobj2->multi_buff_supp))) { WARNING: line length of 83 exceeds 80 columns #1789: FILE: tools/testing/selftests/bpf/test_xsk.c:1741: + ksft_print_msg("Failed to change HW ring size.\n"); WARNING: line length of 81 exceeds 80 columns #1793: FILE: tools/testing/selftests/bpf/test_xsk.c:1745: + ksft_print_msg("Changing HW ring size not supported.\n"); WARNING: line length of 97 exceeds 80 columns #1802: FILE: tools/testing/selftests/bpf/test_xsk.c:1754: +static int testapp_validate_traffic_single_thread(struct test_spec *test, struct ifobject *ifobj) WARNING: line length of 85 exceeds 80 columns #1861: FILE: tools/testing/selftests/bpf/test_xsk.c:1813: + ret = xsk_update_xskmap(test->ifobj_rx->xskmap, test->ifobj_rx->xsk->xsk, 0); WARNING: line length of 81 exceeds 80 columns #1894: FILE: tools/testing/selftests/bpf/test_xsk.c:1846: + test->ifobj_rx->umem->frame_headroom = test->ifobj_rx->umem->frame_size - WARNING: line length of 96 exceeds 80 columns #1910: FILE: tools/testing/selftests/bpf/test_xsk.c:1862: + pkt_stream_replace(test, DEFAULT_UMEM_BUFFERS + DEFAULT_UMEM_BUFFERS / 2, MIN_PKT_SIZE); WARNING: line length of 98 exceeds 80 columns #1911: FILE: tools/testing/selftests/bpf/test_xsk.c:1863: + test->ifobj_rx->xsk->pkt_stream = pkt_stream_generate(DEFAULT_UMEM_BUFFERS, MIN_PKT_SIZE); WARNING: line length of 96 exceeds 80 columns #1921: FILE: tools/testing/selftests/bpf/test_xsk.c:1873: + pkt_stream_replace(test, DEFAULT_UMEM_BUFFERS + DEFAULT_UMEM_BUFFERS / 2, MIN_PKT_SIZE); WARNING: line length of 98 exceeds 80 columns #1922: FILE: tools/testing/selftests/bpf/test_xsk.c:1874: + test->ifobj_rx->xsk->pkt_stream = pkt_stream_generate(DEFAULT_UMEM_BUFFERS, MIN_PKT_SIZE); WARNING: line length of 81 exceeds 80 columns #1977: FILE: tools/testing/selftests/bpf/test_xsk.c:1929: + {umem_size, XSK_UMEM__LARGE_FRAME_SIZE, 0, false, XDP_PKT_CONTD}, WARNING: line length of 84 exceeds 80 columns #1983: FILE: tools/testing/selftests/bpf/test_xsk.c:1935: + {0, XSK_UMEM__LARGE_FRAME_SIZE, 0, false, XSK_DESC__INVALID_OPTION}, WARNING: line length of 89 exceeds 80 columns #2018: FILE: tools/testing/selftests/bpf/test_xsk.c:1970: + {umem_size - MIN_PKT_SIZE - 2 * umem->frame_size, MIN_PKT_SIZE, 0, true}, WARNING: line length of 94 exceeds 80 columns #2054: FILE: tools/testing/selftests/bpf/test_xsk.c:2006: + test_spec_set_xdp_prog(test, skel_rx->progs.xsk_xdp_drop, skel_tx->progs.xsk_xdp_drop, WARNING: line length of 86 exceeds 80 columns #2096: FILE: tools/testing/selftests/bpf/test_xsk.c:2048: + /* create invalid frame by set umem frame_size and pkt length equal to 2048 */ WARNING: line length of 100 exceeds 80 columns #2119: FILE: tools/testing/selftests/bpf/test_xsk.c:2071: + ksft_print_msg("Can't get MAX_SKB_FRAGS from system, using default (17)\n"); WARNING: line length of 81 exceeds 80 columns #2175: FILE: tools/testing/selftests/bpf/test_xsk.c:2127: + size_t mmap_sz = 2 * DEFAULT_UMEM_BUFFERS * XSK_UMEM__DEFAULT_FRAME_SIZE; WARNING: line length of 81 exceeds 80 columns #2179: FILE: tools/testing/selftests/bpf/test_xsk.c:2131: + MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, -1, MAP_HUGE_2MB); WARNING: line length of 88 exceeds 80 columns #2278: FILE: tools/testing/selftests/bpf/test_xsk.c:2230: + umem_size = test->ifobj_tx->umem->num_frames * test->ifobj_tx->umem->frame_size; WARNING: line length of 91 exceeds 80 columns #2347: FILE: tools/testing/selftests/bpf/test_xsk.c:2299: + /* 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 #2350: FILE: tools/testing/selftests/bpf/test_xsk.c:2302: + test->ifobj_tx->xsk->batch_size = test->ifobj_tx->ring.tx_max_pending - 8; WARNING: line length of 82 exceeds 80 columns #2351: FILE: tools/testing/selftests/bpf/test_xsk.c:2303: + test->ifobj_rx->xsk->batch_size = test->ifobj_tx->ring.tx_max_pending - 8; WARNING: line length of 81 exceeds 80 columns #2378: FILE: tools/testing/selftests/bpf/test_xsk.c:2330: + pkt_stream_replace_ifobject(test->ifobj_tx, DEFAULT_BATCH_SIZE, pkt_len); WARNING: line length of 89 exceeds 80 columns #2379: FILE: tools/testing/selftests/bpf/test_xsk.c:2331: + pkt_stream_replace_ifobject(test->ifobj_rx, DEFAULT_BATCH_SIZE, pkt_len + value); WARNING: line length of 92 exceeds 80 columns #2386: FILE: tools/testing/selftests/bpf/test_xsk.c:2338: + ksft_print_msg("%s %sResize pkt with bpf_xdp_adjust_tail() not supported\n", WARNING: line length of 81 exceeds 80 columns #2387: FILE: tools/testing/selftests/bpf/test_xsk.c:2339: + mode_string(test), busy_poll_string(test)); CHECK: Alignment should match open parenthesis #2387: FILE: tools/testing/selftests/bpf/test_xsk.c:2339: + ksft_print_msg("%s %sResize pkt with bpf_xdp_adjust_tail() not supported\n", + mode_string(test), busy_poll_string(test)); WARNING: line length of 100 exceeds 80 columns #2404: FILE: tools/testing/selftests/bpf/test_xsk.c:2356: + return testapp_adjust_tail(test, -XSK_UMEM__MAX_FRAME_SIZE, XSK_UMEM__LARGE_FRAME_SIZE * 2); WARNING: line length of 87 exceeds 80 columns #2416: FILE: tools/testing/selftests/bpf/test_xsk.c:2368: + /* Grow by (frag_size - last_frag_Size) - 1 to stay inside the last fragment */ WARNING: line length of 83 exceeds 80 columns #2426: FILE: tools/testing/selftests/bpf/test_xsk.c:2378: + ksft_print_msg("Can not run TX_QUEUE_CONSUMER test for ZC mode\n"); WARNING: line length of 86 exceeds 80 columns #2511: 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 #2513: 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 #2517: 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 #2517: 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 #2612: FILE: tools/testing/selftests/bpf/test_xsk.h:138: +}; +struct ifobject *ifobject_create(void); WARNING: line length of 99 exceeds 80 columns #2616: 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 #2617: 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 #2620: FILE: tools/testing/selftests/bpf/test_xsk.h:146: + + WARNING: line length of 86 exceeds 80 columns #2732: 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 #2738: 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 #2740: 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 #2748: 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 #2755: 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 #2756: 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 #2759: 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 #2760: 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 #2762: 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 #2763: 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 #2764: 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 #2765: 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 #2767: 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 #3148: FILE: tools/testing/selftests/bpf/xskxceiver.c:266: + ksft_test_result_pass("PASS: %s %s%s\n", mode_string(test), busy_poll_string(test), WARNING: line length of 99 exceeds 80 columns #3152: FILE: tools/testing/selftests/bpf/xskxceiver.c:270: + ksft_test_result_skip("SKIP: %s %s%s\n", mode_string(test), busy_poll_string(test), WARNING: line length of 99 exceeds 80 columns #3156: FILE: tools/testing/selftests/bpf/xskxceiver.c:274: + ksft_test_result_fail("FAIL: %s %s%s\n", mode_string(test), busy_poll_string(test), WARNING: line length of 90 exceeds 80 columns #3160: FILE: tools/testing/selftests/bpf/xskxceiver.c:278: + ksft_test_result_fail("FAIL: %s %s%s -- Unexpected returned value (%d)\n", WARNING: line length of 98 exceeds 80 columns #3161: FILE: tools/testing/selftests/bpf/xskxceiver.c:279: + mode_string(test), busy_poll_string(test), test->name, ret); WARNING: line length of 87 exceeds 80 columns #3429: FILE: tools/testing/selftests/bpf/xskxceiver.c:297: + prog_fd = bpf_prog_load(BPF_PROG_TYPE_XDP, NULL, "GPL", insns, insn_cnt, NULL); total: 0 errors, 159 warnings, 8 checks, 5523 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 31ef126a7def ("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, 159 warnings, 8 checks, 5523 lines checked