DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/ice: fix missing MTU value setting
@ 2022-04-07 19:57 Kevin Liu
  2022-04-08  1:43 ` [PATCH v2] " Kevin Liu
  2022-05-17  7:49 ` [PATCH] " Zhang, Qi Z
  0 siblings, 2 replies; 8+ messages in thread
From: Kevin Liu @ 2022-04-07 19:57 UTC (permalink / raw)
  To: dev; +Cc: qiming.yang, qi.z.zhang, stevex.yang, Kevin Liu, stable

In the DCF module, Missing maximum and minimum
MTU value settings.

This patch adds the settings of the maximum and
minimum MTU to correctly calculate the MTU value.

Fixes: 2fe6f1b76279 ("drivers/net: advertise no support for keeping flow rules")
Cc: stable@dpdk.org

Signed-off-by: Kevin Liu <kevinx.liu@intel.com>
---
 drivers/net/ice/ice_dcf_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c
index 8005eb2ab8..0da267db1f 100644
--- a/drivers/net/ice/ice_dcf_ethdev.c
+++ b/drivers/net/ice/ice_dcf_ethdev.c
@@ -713,6 +713,8 @@ ice_dcf_dev_info_get(struct rte_eth_dev *dev,
 	dev_info->reta_size = hw->vf_res->rss_lut_size;
 	dev_info->flow_type_rss_offloads = ICE_RSS_OFFLOAD_ALL;
 	dev_info->dev_capa &= ~RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP;
+	dev_info->max_mtu = dev_info->max_rx_pktlen - ICE_ETH_OVERHEAD;
+	dev_info->min_mtu = RTE_ETHER_MIN_MTU;
 
 	dev_info->rx_offload_capa =
 		RTE_ETH_RX_OFFLOAD_VLAN_STRIP |
-- 
2.34.1


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

end of thread, other threads:[~2022-06-04  1:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 19:57 [PATCH] net/ice: fix missing MTU value setting Kevin Liu
2022-04-08  1:43 ` [PATCH v2] " Kevin Liu
2022-05-18  3:48   ` Zhang, Qi Z
2022-06-03  9:17     ` Thomas Monjalon
2022-06-04  1:21       ` Zhang, Qi Z
2022-05-17  7:49 ` [PATCH] " Zhang, Qi Z
2022-05-17  7:59   ` Liu, KevinX
2022-05-17  8:06     ` Liu, KevinX

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