patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH v2] net/ice: fix setting max frame size
@ 2019-10-28 15:21 Min JiaqiX
  0 siblings, 0 replies; 2+ messages in thread
From: Min JiaqiX @ 2019-10-28 15:21 UTC (permalink / raw)
  To: chenxux.di; +Cc: Min JiaqiX, stable

Max frame size is not set to HW, so packets above the MTU
do not get dropped by HW. The patch fixed the issue.

Fixes: ae2bdd0219cb ("net/ice: support MTU setting")
Cc: stable@dpdk.org

Signed-off-by: Min JiaqiX <jiaqix.min@intel.com>
---

Notes:
 v2:
 -changed commit message.
---
 drivers/net/ice/ice_ethdev.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 022b58c01..403305cfb 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -2506,6 +2506,10 @@ ice_dev_start(struct rte_eth_dev *dev)
 
 	pf->adapter_stopped = false;
 
+	/* Set the max frame size */
+	ice_aq_set_mac_cfg(hw,
+		pf->dev_data->dev_conf.rxmode.max_rx_pkt_len, NULL);
+
 	return 0;
 
 	/* stop the started queues if failed to start all queues */
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <20191024190818.36524-1-jiaqix.min@intel.com>]

end of thread, other threads:[~2019-10-28  8:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28 15:21 [dpdk-stable] [PATCH v2] net/ice: fix setting max frame size Min JiaqiX
     [not found] <20191024190818.36524-1-jiaqix.min@intel.com>
2019-10-28 15:54 ` Min JiaqiX

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).