diff options
author | Geetha sowjanya <gakula@marvell.com> | 2020-03-21 00:27:24 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-23 21:11:44 -0700 |
commit | b1bc8457e9d0ff32b799fa610f7f4bd9c0a56dfb (patch) | |
tree | 54f995a10d34faad970ee21498b8e7a8994c15e3 /crypto/cts.c | |
parent | ad513ed938c911271f388a471d438ca01c19313c (diff) |
octeontx2-pf: Cleanup all receive buffers in SG descriptor
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: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/cts.c')
0 files changed, 0 insertions, 0 deletions