Nalla Pradeep 9526f3003e net/octeontx_ep: add Tx path
1. Packet transmit function for both otx and otx2 are added.
2. Flushing transmit(command) queue when pending commands are more than
   maximum allowed value (currently 16).
3. Scatter gather support if the packet spans multiple buffers.

Signed-off-by: Nalla Pradeep <pnalla@marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2021-01-29 18:16:12 +01:00

31 lines
620 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2021 Marvell.
*/
#ifndef _OTX2_EP_VF_H_
#define _OTX2_EP_VF_H_
int
otx2_ep_vf_setup_device(struct otx_ep_device *sdpvf);
struct otx2_ep_instr_64B {
/* Pointer where the input data is available. */
uint64_t dptr;
/* OTX_EP Instruction Header. */
union otx_ep_instr_ih ih;
/** Pointer where the response for a RAW mode packet
* will be written by OCTEON TX.
*/
uint64_t rptr;
/* Input Request Header. */
union otx_ep_instr_irh irh;
/* Additional headers available in a 64-byte instruction. */
uint64_t exhdr[4];
};
#endif /*_OTX2_EP_VF_H_ */