net/mvneta: optimize checksum generation offload
authorLiron Himi <lironh@marvell.com>
Mon, 1 Jul 2019 08:00:24 +0000 (11:00 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 3 Jul 2019 10:57:30 +0000 (12:57 +0200)
commitd72ce66556be6c3f5eee00aa7957e53b8ddfd72c
tree936adf2c22c2f62aa0d4632ed86acf786ef38b9f
parent15ae783a15c560a074a8ebdac7a6fa0f1e26bfbd
net/mvneta: optimize checksum generation offload

For tx checksum offload it is not mandatory to provide
a valid packet_type in addition to a valid ol_flags.
This patch only use ol_flags information for this feature
as a performance improvement.

Signed-off-by: Liron Himi <lironh@marvell.com>
Reviewed-by: Yuri Chipchev <yuric@marvell.com>
Tested-by: Liron Himi <lironh@marvell.com>
drivers/net/mvneta/mvneta_ethdev.c
drivers/net/mvneta/mvneta_ethdev.h
drivers/net/mvneta/mvneta_rxtx.c