• Michael Chan's avatar
    bnxt_en: Add new NAPI poll function for 57500 chips. · 0fcec985
    Michael Chan authored
    Add a new poll function that polls for NQ events.  If the NQ event is
    a CQ notification, we locate the CP ring from the cq_handle and call
    __bnxt_poll_work() to handle RX/TX events on the CP ring.
    
    Add a new has_more_work field in struct bnxt_cp_ring_info to indicate
    budget has been reached.  __bnxt_poll_cqs_done() is called to update or
    ARM the CP rings if budget has not been reached or not.  If budget
    has been reached, the next bnxt_poll_p5() call will continue to poll
    from the CQ rings directly.  Otherwise, the NQ will be ARMed for the
    next IRQ.
    Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0fcec985
bnxt.h 49.9 KB