patches for DPDK stable branches
 help / color / Atom feed
From: Min JiaqiX <jiaqix.min@intel.com>
To: dev@dpdk.org
Cc: Min JiaqiX <jiaqix.min@intel.com>, stable@dpdk.org
Subject: [dpdk-stable] [PATCH v2] net/ice: fix setting max frame size
Date: Mon, 28 Oct 2019 15:54:53 +0000
Message-ID: <20191028155453.37207-1-jiaqix.min@intel.com> (raw)
In-Reply-To: <20191024190818.36524-1-jiaqix.min@intel.com>

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


       reply index

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20191024190818.36524-1-jiaqix.min@intel.com>
2019-10-28 15:54 ` Min JiaqiX [this message]
2019-10-28  8:46   ` [dpdk-stable] [dpdk-dev] " Ye Xiaolong
2019-10-29  2:05     ` Ye Xiaolong
2019-10-29 12:54   ` [dpdk-stable] [PATCH v3] " Min JiaqiX
2019-10-30  5:21     ` [dpdk-stable] [dpdk-dev] " Ye Xiaolong
2019-10-30  6:40       ` Min, JiaqiX
2019-10-30 10:04     ` [dpdk-stable] [PATCH v4] " Min JiaqiX
2019-11-04  2:56       ` [dpdk-stable] [dpdk-dev] " Ye Xiaolong
2019-11-04  7:05         ` Min, JiaqiX
2019-11-04 15:33       ` [dpdk-stable] [PATCH v5] " Min JiaqiX
2019-11-05  2:22         ` Ye Xiaolong
2019-10-28 15:21 [dpdk-stable] [PATCH v2] " Min JiaqiX

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191028155453.37207-1-jiaqix.min@intel.com \
    --to=jiaqix.min@intel.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

patches for DPDK stable branches

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/stable/0 stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ http://inbox.dpdk.org/stable \
		stable@dpdk.org
	public-inbox-index stable


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


AGPL code for this site: git clone https://public-inbox.org/ public-inbox