Bug 1476337

Summary: [fdBeta] linking error when using rte_eth_tx_done_cleanup function
Product: Red Hat Enterprise Linux 7 Reporter: Timothy Redaelli <tredaelli>
Component: dpdkAssignee: Timothy Redaelli <tredaelli>
Status: CLOSED NEXTRELEASE QA Contact: Jean-Tsung Hsiao <jhsiao>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: aloughla, atragler, rkhan, sukulkar
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1476341 (view as bug list) Environment:
Last Closed: 2018-03-20 10:26:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Timothy Redaelli 2017-07-28 16:30:30 UTC
From release note of DPDK 17.05:

* **Added free Tx mbuf on demand API.**                                         
                                                                                
  Added a new function ``rte_eth_tx_done_cleanup()`` which allows an            
  application to request the driver to release mbufs that are no longer in use  
  from a Tx ring, independent of whether or not the ``tx_rs_thresh`` has been   
  crossed.

But the function is missing in map and so it can't be used by applications linking to shared libraries (like pktgen).

Upstream commit to backport:

commit 5b45c30a00ecbd5181e5679b13ca059bcd761ead
Author: Luca Boccassi <luca.boccassi>
Date:   Thu Jun 22 13:04:59 2017 +0100

    ethdev: add missing symbol in map
    
    The function rte_eth_tx_done_cleanup() was missing in the map file
    so it cannot be used by applications linking to shared libraries.
    pktgen uses it since version 3.2.0.
    
    Fixes: 44a718c457b5 ("ethdev: add API to free consumed buffers in Tx ring")
    Cc: stable
    
    Signed-off-by: Luca Boccassi <luca.boccassi>