do some sanity checks on a mbuf: panic if it fails */
| 365 | |
| 366 | /* do some sanity checks on a mbuf: panic if it fails */ |
| 367 | void |
| 368 | rte_mbuf_sanity_check(const struct rte_mbuf *m, int is_header) |
| 369 | { |
| 370 | const char *reason; |
| 371 | |
| 372 | if (rte_mbuf_check(m, is_header, &reason)) |
| 373 | rte_panic("%s\n", reason); |
| 374 | } |
| 375 | |
| 376 | int rte_mbuf_check(const struct rte_mbuf *m, int is_header, |
| 377 | const char **reason) |