• Geetha sowjanya's avatar
    octeontx2-pf: Cleanup all receive buffers in SG descriptor · b1bc8457
    Geetha sowjanya authored
    With MTU sized receive buffers it is not expected to have CQE_RX
    with multiple receive buffer pointers. But since same physcial link
    is shared by PF and it's VFs, the max receive packet configured
    at link could be morethan MTU. Hence there is a chance of receiving
    plts morethan MTU which then gets DMA'ed into multiple buffers
    and notified in a single CQE_RX. This patch treats such pkts as errors
    and frees up receive buffers pointers back to hardware.
    
    Also on the transmit side this patch sets SMQ MAXLEN to max value to avoid
    HW length errors for the packets whose size > MTU, eg due to path MTU.
    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>
    b1bc8457
otx2_common.c 37.3 KB