git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/sfc: add TSO header length check to Tx prepare
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc_tso.c
diff --git
a/drivers/net/sfc/sfc_tso.c
b/drivers/net/sfc/sfc_tso.c
index
f46c0e9
..
a882e64
100644
(file)
--- a/
drivers/net/sfc/sfc_tso.c
+++ b/
drivers/net/sfc/sfc_tso.c
@@
-119,6
+119,8
@@
sfc_efx_tso_do(struct sfc_efx_txq *txq, unsigned int idx,
/*
* Discard a packet if header linearization is needed but
* the header is too big.
+ * Duplicate Tx prepare check here to avoid spoil of
+ * memory if Tx prepare is skipped.
*/
if (unlikely(header_len > SFC_TSOH_STD_LEN))
return EMSGSIZE;