node: add IPv4 rewrite
authorKiran Kumar K <kirankumark@marvell.com>
Sat, 11 Apr 2020 14:14:21 +0000 (19:44 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 5 May 2020 21:41:11 +0000 (23:41 +0200)
commit0d352661e066fe2cb386753c89368f014fc4396b
tree9a425d9eb036c1a89060e7fd438a083b4eb3e0fc
parent11afaa84d087dddb3583bfc509759927ba576c9c
node: add IPv4 rewrite

Add ip4 rewrite process function for ip4_rewrite
rte_node. On every packet received by this node,
header is overwritten with new data before forwarding
it to next node. Header data to overwrite with is
identified by next hop id passed in mbuf priv data
by previous node.

Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
lib/librte_node/Makefile
lib/librte_node/ip4_rewrite.c [new file with mode: 0644]
lib/librte_node/ip4_rewrite_priv.h [new file with mode: 0644]
lib/librte_node/meson.build