• Ioana Ciornei's avatar
    dpaa2-eth: work with an array of FDs · a4ca448e
    Ioana Ciornei authored
    Up until now, the __dpaa2_eth_tx function used a single FD on the stack
    to construct the structure to be enqueued. Since we are now preparing
    the ground work to add support for TSO done in software at the driver
    level, the same function needs to work with an array of FDs and enqueue
    as many as the build_*_fd functions create.
    
    Make the necessary adjustments in order to do this. These include:
    keeping an array of FDs in a percpu structure, cleaning up the necessary
    FDs before populating it and then, retrying the enqueue process up till
    all the generated FDs were enqueued or until we reach the maximum number
    retries.
    
    This patch does not change the fact that only a single FD will result
    from a __dpaa2_eth_tx call but rather just creates the necessary changes
    for the next patch.
    Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a4ca448e
dpaa2-eth.h 20.2 KB