diff mbox series

[API-NEXT,v2,2/5] example: generator use checksum enable

Message ID 1512378024-15857-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v2,1/5] api: pktio: add checksum insert enable bits | expand

Commit Message

Github ODP bot Dec. 4, 2017, 9 a.m. UTC
From: Petri Savolainen <petri.savolainen@linaro.org>


Use new checksum insert enable bits.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
/** Email created from pull request 313 (psavol:next-pktout-config)
 ** https://github.com/Linaro/odp/pull/313
 ** Patch: https://github.com/Linaro/odp/pull/313.patch
 ** Base sha: bdb7cbf620ada8682c89b5ae5a97cb84f16c0ed0
 ** Merge commit sha: e4a122986c2750ffb044994107b385bd8002cbf4
 **/
 example/generator/odp_generator.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index e1d98539f..81d954662 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -523,6 +523,10 @@  static int create_pktio(const char *dev, odp_pool_t pool,
 		capa.config.pktin.bit.drop_ipv4_err;
 	itf->config.pktin.bit.drop_udp_err = capa.config.pktin.bit.drop_udp_err;
 
+	itf->config.pktout.bit.ipv4_chksum_ena =
+		capa.config.pktout.bit.ipv4_chksum_ena;
+	itf->config.pktout.bit.udp_chksum_ena =
+		capa.config.pktout.bit.udp_chksum_ena;
 	itf->config.pktout.bit.ipv4_chksum = capa.config.pktout.bit.ipv4_chksum;
 	itf->config.pktout.bit.udp_chksum = capa.config.pktout.bit.udp_chksum;