DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/i40e: fix max frame size checking
@ 2018-07-26  6:46 Yanglong Wu
  2018-07-26  9:16 ` Ananyev, Konstantin
  2018-07-27  4:40 ` [dpdk-dev] [PATCH v2] " Yanglong Wu
  0 siblings, 2 replies; 10+ messages in thread
From: Yanglong Wu @ 2018-07-26  6:46 UTC (permalink / raw)
  To: dev; +Cc: qi.z.zhang, tiwei.bie, lei.a.yao, Yanglong Wu

No need to check max frame size in TX, the checking
should be done in up layer protocal. This checking will
lead to fail for TSO or other application cases.

Fixes: bfeed0262b0c ("net/i40e: check illegal packets")

Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
---
 drivers/net/i40e/i40e_rxtx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c
index 3be87fe6a..baad433a7 100644
--- a/drivers/net/i40e/i40e_rxtx.c
+++ b/drivers/net/i40e/i40e_rxtx.c
@@ -1459,8 +1459,7 @@ i40e_prep_pkts(__rte_unused void *tx_queue, struct rte_mbuf **tx_pkts,
 		}
 
 		/* check the size of packet */
-		if (m->pkt_len > I40E_FRAME_SIZE_MAX ||
-		    m->pkt_len < I40E_TX_MIN_PKT_LEN) {
+		if (m->pkt_len < I40E_TX_MIN_PKT_LEN) {
 			rte_errno = -EINVAL;
 			return i;
 		}
-- 
2.11.0

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-07-30  1:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26  6:46 [dpdk-dev] [PATCH] net/i40e: fix max frame size checking Yanglong Wu
2018-07-26  9:16 ` Ananyev, Konstantin
2018-07-26 12:13   ` Zhang, Qi Z
2018-07-26 12:25     ` Zhang, Qi Z
2018-07-26 12:33       ` Ananyev, Konstantin
2018-07-26 12:47         ` Zhang, Qi Z
2018-07-26 12:56           ` Ananyev, Konstantin
2018-07-27  4:40 ` [dpdk-dev] [PATCH v2] " Yanglong Wu
2018-07-27  8:13   ` Ananyev, Konstantin
2018-07-30  1:05     ` Zhang, Qi Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).