Skip to content

Commit

Permalink
net/ice: fix MTU info for DCF
Browse files Browse the repository at this point in the history
[ upstream commit 24e6e03 ]

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: bf89db4 ("net/ice: complete device info get in DCF")

Signed-off-by: Kevin Liu <kevinx.liu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
kevin99012300 authored and kevintraynor committed Jun 8, 2022
1 parent 981abb1 commit 21e2c34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ice/ice_dcf_ethdev.c
Expand Up @@ -664,6 +664,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 |
Expand Down

0 comments on commit 21e2c34

Please sign in to comment.