• John Hurley's avatar
    nfp: flower: get flows by host context · cf4172d5
    John Hurley authored
    Each flow is given a context ID that the fw uses (along with its cookie)
    to identity the flow. The flows stats are updated by the fw via this ID
    which is a reference to a pre-allocated array entry.
    
    In preparation for flow merge code, enable the nfp_fl_payload structure to
    be accessed via this stats context ID. Rather than increasing the memory
    requirements of the pre-allocated array, add a new rhashtable to associate
    each active stats context ID with its rule payload.
    
    While adding new code to the compile metadata functions, slightly
    restructure the existing function to allow for cleaner, easier to read
    error handling.
    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>
    cf4172d5
metadata.c 14.1 KB