mbuf: add script to convert code to offset macro
authorCyril Chemparathy <cchemparathy@ezchip.com>
Mon, 22 Jun 2015 18:34:22 +0000 (11:34 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 24 Jun 2015 10:01:14 +0000 (12:01 +0200)
commit3790a7fcf0c3a7548b95927b566240738e2df7ce
tree34fd562b9aa7482d93b8cc9075fd72ffef571132
parentb2906abb0dd7207c237c81540c1d8e59e151a5bc
mbuf: add script to convert code to offset macro

This patch adds a coccinelle (see http://coccinelle.lip6.fr/)
transform to use the newly added rte_pktmbuf_mtod_offset() helper.  In
addition, we add a simple script to apply all available transforms to
a codebase.

Signed-off-by: Cyril Chemparathy <cchemparathy@ezchip.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
scripts/cocci.sh [new file with mode: 0755]
scripts/cocci/mtod-offset.cocci [new file with mode: 0644]