• Sunil Goutham's avatar
    net: thunderx: Fix RQ_DROP miscalculation · 32c1b965
    Sunil Goutham authored
    With earlier configured value sufficient number of CQEs are not
    being reserved for transmitted packets. Hence under heavy incoming
    traffic load, receive notifications will take away most of the CQ
    thus transmit notifications will be lost resulting in tx skbs not
    being freed.
    
    Finally SQ will be full and it will be stopped, watchdog timer
    will kick in. After this fix receive notifications will not take
    morethan half of CQ reserving the rest for transmit notifications.
    
    Also changed CQ & SQ sizes from 16k to 4k.
    This is also due to the receive notifications taking first half of
    CQ under heavy load and time taken by NAPI to clear transmit notifications
    will increase with higher queue sizes. Again results in SQ being stopped.
    Signed-off-by: default avatarSunil Goutham <sgoutham@cavium.com>
    Signed-off-by: default avatarAleksey Makarov <aleksey.makarov@caviumnetworks.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    32c1b965
nicvf_queues.h 11 KB