net/enic: add Tx prepare handler
authorHyong Youb Kim <hyonkim@cisco.com>
Tue, 23 Jan 2018 01:05:29 +0000 (17:05 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commit1e81dbb5321b2bcfdba41a1f237d6534faef2c6e
treefe02e4ef35249c5ff5c38319743890e20cdd142e
parent6c45c330589d334c4f7b729e61ae30a6acfcc119
net/enic: add Tx prepare handler

Like most NICs, this hardware (Cisco VIC) also requires partial
checksum in the packet for checksum offload and TSO. So, add
the tx_pkt_prepare handler like other PMDs do.

Technically, VIC has an offload mode that does not require partial
checksum for non-TSO packets. But, it has no such mode for TSO
packets, making tx_pkt_prepare unavoidable.

Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic.h
drivers/net/enic/enic_ethdev.c
drivers/net/enic/enic_rxtx.c