On 1/28/2021 3:22 PM, Nalla Pradeep wrote:
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 <pna...@marvell.com>
<...>
+ /* ih vars */
+ iqcmd2.ih.s.tlen = pkt_len + iqcmd2.ih.s.fsz;
+ iqcmd2.ih.s.gather = gather;
+ iqcmd2.ih.s.gsz = gsz;
+ /* irh vars */
+ /* irh.rlenssz = ; */
+ iqcmd2.dptr = dptr;
+ /* Swap FSZ(front data) here, to avoid swapping on
+ * OCTEON TX side rptr is not used so not swapping.
+ */
+ /* otx_ep_swap_8B_data(&iqcmd2.rptr, 1); */
More commented out code seems remaining, can you please clean all?