From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6856CA0351; Fri, 4 Mar 2022 13:09:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5BA94427CD; Fri, 4 Mar 2022 13:09:24 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id A746C427C8; Fri, 4 Mar 2022 13:09:22 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2247N6EL002105; Fri, 4 Mar 2022 04:09:22 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=TUJkLwYVb6ygSnfpKcXn3882ifbGMTR46HobiKcbPWU=; b=a6sJKe+8MNfFnUQwLaDNvDuJGfCZBUA3ALFyi+JX5ifIJvV10ohmKdK3Ui6lsttNc5kw qMGhlF0Rg+AR4RDxkhkdUbwLYggosldx86itZBtrLQKUG1xqR8aCjCwtsSQ4+LQVOEQV 0YszJmN0ytHDBmQTEZPVYdMtt1bD9bW5VPd51wXPcMvYRS+02uWKleumxoXfwtiZerU+ jJ9A2F+1tLjcTiozQdngvP+1IS7vBJGLfJlRSIDmtXg4KotaC/KM7z1L/J3Xl+SgzbbJ CUY2AfvSwSHTwIYus4gnPPmNsmr2e23/V1f4oDb2RFC3gMB+Yk9x0niRaZvNJ0qgjbLS oA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ek4j63c4s-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 04 Mar 2022 04:09:22 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 4 Mar 2022 04:09:20 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Fri, 4 Mar 2022 04:09:20 -0800 Received: from localhost.marvell.com (unknown [10.30.47.116]) by maili.marvell.com (Postfix) with ESMTP id D0E753F70BA; Fri, 4 Mar 2022 04:09:17 -0800 (PST) From: Devendra Singh Rawat To: , , , , CC: , Devendra Singh Rawat , Subject: [PATCH 3/3] net/qede: fix max Rx pktlen calculation Date: Fri, 4 Mar 2022 17:38:33 +0530 Message-ID: <20220304120833.312776-3-dsinghrawat@marvell.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20220304120833.312776-1-dsinghrawat@marvell.com> References: <20220304120833.312776-1-dsinghrawat@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: Pck7lx4rp0vqctUSNwQWuoap71ZsLSFg X-Proofpoint-ORIG-GUID: Pck7lx4rp0vqctUSNwQWuoap71ZsLSFg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-04_02,2022-03-04_01,2022-02-23_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org size of CRC is not added to max_rx_pktlen, due to this bigger sized packets(size 1480, 1490 1500) are being dropped. This fix adds RTE_ETHER_CRC_LEN to max_rx_pktlen. Fixes: 1bb4a528c41f ("ethdev: fix max Rx packet length") Cc: stable@dpdk.org Signed-off-by: Devendra Singh Rawat Signed-off-by: Rasesh Mody --- drivers/net/qede/qede_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c index 02fa1fcaa1..c35585f5fd 100644 --- a/drivers/net/qede/qede_rxtx.c +++ b/drivers/net/qede/qede_rxtx.c @@ -235,7 +235,7 @@ qede_rx_queue_setup(struct rte_eth_dev *dev, uint16_t qid, dev->data->rx_queues[qid] = NULL; } - max_rx_pktlen = dev->data->mtu + RTE_ETHER_HDR_LEN; + max_rx_pktlen = dev->data->mtu + RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN; /* Fix up RX buffer size */ bufsz = (uint16_t)rte_pktmbuf_data_room_size(mp) - RTE_PKTMBUF_HEADROOM; -- 2.18.2