net/cxgbe: update Tx and Rx path for VF
authorKumar Sanghvi <kumaras@chelsio.com>
Sat, 10 Mar 2018 22:48:25 +0000 (04:18 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:44 +0000 (14:08 +0200)
commit880ead4e14a4dcecb04a361bcff3a9ce82c2c5ae
treeffff78b8273bdd51584f16e26e97a09d76926dc7
parentbfcb257d30146c10cd1a5ef20c8bb080a2dbbc2a
net/cxgbe: update Tx and Rx path for VF

On TX path, add fw_eth_tx_pkt_vm_wr to transmit packets over VF.
Use is_pf4() to correctly calculate the work request size and
offsets within the work request.  On RX path, use pktshift to adjust
data offset within the mbuf.

Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/base/adapter.h
drivers/net/cxgbe/base/t4fw_interface.h
drivers/net/cxgbe/cxgbe_ethdev.c
drivers/net/cxgbe/cxgbe_pfvf.h
drivers/net/cxgbe/cxgbevf_ethdev.c
drivers/net/cxgbe/sge.c