• Geetha sowjanya's avatar
    octeontx2-af: Interface backpressure configuration · 27150bc4
    Geetha sowjanya authored
    Each of the interface receive channels can be backpressured by
    resources upon exhaustion or reaching configured threshold levels.
    Resources here are receive buffer queues (Auras) and pkt notification
    descriptor queues (CQs). Resources and interface channels are mapped
    using backpressure IDs (BPIDs).
    
    HW supports upto 512 BPIDs, this patch divides these BPIDs statically
    across CGX/LBK/SDP interfaces as follows.
    BPIDs 0 - 191 are mapped to LMAC channels, 16 per LMAC.
    BPIDs 192 - 255 are mapped to LBK channels.
    BPIDs 256 - 511 are mapped to SDP channels.
    Also did the needed basic configuration of BPIDs.
    
    Added mbox handlers with which a PF device can request for a BPID which
    it will use to configure Auras and CQs.
    Signed-off-by: default avatarGeetha sowjanya <gakula@marvell.com>
    Signed-off-by: default avatarSunil Goutham <sgoutham@marvell.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    27150bc4
mbox.h 25 KB