• John Hurley's avatar
    nfp: flower: support stats update for merge flows · aa6ce2ea
    John Hurley authored
    With the merging of 2 sub flows, a new 'merge' flow will be created and
    written to FW. The TC layer is unaware that the merge flow exists and will
    request stats from the sub flows. Conversely, the FW treats a merge rule
    the same as any other rule and sends stats updates to the NFP driver.
    
    Add links between merge flows and their sub flows. Use these links to pass
    merge flow stats updates from FW to the underlying sub flows, ensuring TC
    stats requests are handled correctly. The updating of sub flow stats is
    done on (the less time critcal) TC stats requests rather than on FW stats
    update.
    Signed-off-by: default avatarJohn Hurley <john.hurley@netronome.com>
    Signed-off-by: default avatarSimon Horman <simon.horman@netronome.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    aa6ce2ea
offload.c 33.2 KB