Skip to contentSkip to conversation

i40e: fix set max frame size to default

PATCH Applied Jingjing Wu 3 participants 3 messages Dec 15, 2015 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i40e: fix set max frame size to default

In FreeBsd driver, the max frame size is changed to MTU, but not keep the default value defined in DataSheet. When DPDK runs on that NIC, the configured value is not expected.
This patch sets the max frame size to default when initialization.

Fixes 4861cde46116 ("i40e: new poll mode driver")
---
 drivers/net/i40e/i40e_ethdev.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/i40e/i40e_ethdev.c +5 -0
index 22b240c..bf6220d 100644
@@ -919,6 +919,11 @@ eth_i40e_dev_init(struct rte_eth_dev *dev)
 	 */
 	i40e_add_tx_flow_control_drop_filter(pf);
 
+	/* Set the max frame size to 0x2600 by default,
+	 * in case other drivers changed the default value.
+	 */
+	i40e_aq_set_mac_config(hw, I40E_FRAME_SIZE_MAX, TRUE, 0, NULL);
+
 	/* initialize mirror rule list */
 	TAILQ_INIT(&pf->mirror_list);
 
Signature · 1 line
2.4.0
Acked-by on v1 1/1
#1 lore raw

-----Original Message-----
From: Wu, Jingjing
Sent: Tuesday, December 15, 2015 10:53 PM
To: [email protected]
Cc: Wu, Jingjing <[email protected]>; Zhang, Helin <[email protected]>; Dong, ShijieX <[email protected]>
Subject: [PATCH] i40e: fix set max frame size to default

In FreeBsd driver, the max frame size is changed to MTU, but not keep the default value defined in DataSheet. When DPDK runs on that NIC, the configured value is not expected. This patch sets the max frame size to default when initialization.

Fixes 4861cde46116 ("i40e: new poll mode driver")
#2 lore raw
Quoted 7 lines

In FreeBsd driver, the max frame size is changed to MTU, but not keep the default value defined in DataSheet. When DPDK runs on that NIC, the configured value is not expected. This patch sets the max frame size to default when initialization.

Fixes 4861cde46116 ("i40e: new poll mode driver")

Applied, thanks