Added debug print function which includes packet payload bytes. Printing starts from an offset, so it's easy to e.g. limit print to IPv4 header bytes only: odp_packet_print_data(pkt, l3_offset(pkt), 20)
----------------github------------------------ /** Email created from pull request 258 (psavol:next-packet-dump) ** https://github.com/Linaro/odp/pull/258 ** Patch: https://github.com/Linaro/odp/pull/258.patch ** Base sha: 63d92eb289261d1534b5b9e1e04291faa5e45d30 ** Merge commit sha: 08d635e94f01265704fddd47cd98b0ccbdc669d4 **/ ----------------/github------------------------ ----------------checkpatch.pl------------------------ total: 0 errors, 0 warnings, 0 checks, 30 lines checked to_send-p-000.patch has no obvious style problems and is ready for submission. CHECK: Avoid CamelCase: <PRIu16> #68: FILE: platform/linux-generic/odp_packet.c:1764: + " segcount %" PRIu16 "\n", hdr->buf_hdr.segcount); total: 0 errors, 0 warnings, 1 checks, 78 lines checked to_send-p-001.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 0 warnings, 0 checks, 20 lines checked to_send-p-002.patch has no obvious style problems and is ready for submission. ----------------/checkpatch.pl------------------------