mbox series

[v5,0/5] fix default max mtu size when device configured

Message ID 20201014091945.1934-1-stevex.yang@intel.com (mailing list archive)
Headers
Series fix default max mtu size when device configured |

Message

Steve Yang Oct. 14, 2020, 9:19 a.m. UTC
  when application presets the max rx packet length and expected mtu at
the same time, driver need identify if the preset max frame size can
hold mtu data and Ether overhead completely.

if not, adjust the max frame size via mtu_set ops within dev_configure.

v5:
 * update comments and commit messages;
v4:
 * add the adjust condition for max_rx_pkt_len;
v3:
 * change the i40evf relative code;
v2:
 * change the max_rx_pkt_len via mtu_set ops;

SteveX Yang (5):
  net/e1000: fix max mtu size packets with vlan tag cannot be received
    by default
  net/igc: fix max mtu size packets with vlan tag cannot be received by
    default
  net/ice: fix max mtu size packets with vlan tag cannot be received by
    default
  net/i40e: fix max mtu size packets with vlan tag cannot be received by
    default
  net/iavf: fix max mtu size packets with vlan tag cannot be received by
    default

 drivers/net/e1000/em_ethdev.c     | 12 ++++++++++++
 drivers/net/i40e/i40e_ethdev.c    | 11 +++++++++++
 drivers/net/i40e/i40e_ethdev_vf.c | 13 ++++++++++++-
 drivers/net/iavf/iavf_ethdev.c    | 12 ++++++++++++
 drivers/net/ice/ice_ethdev.c      | 11 +++++++++++
 drivers/net/igc/igc_ethdev.c      | 13 ++++++++++++-
 6 files changed, 70 insertions(+), 2 deletions(-)
  

Comments

Qi Zhang Oct. 14, 2020, 11:43 a.m. UTC | #1
> -----Original Message-----
> From: SteveX Yang <stevex.yang@intel.com>
> Sent: Wednesday, October 14, 2020 5:20 PM
> To: dev@dpdk.org
> Cc: Guo, Jia <jia.guo@intel.com>; Yang, Qiming <qiming.yang@intel.com>;
> Zhang, Qi Z <qi.z.zhang@intel.com>; Wu, Jingjing <jingjing.wu@intel.com>;
> Xing, Beilei <beilei.xing@intel.com>; Ananyev, Konstantin
> <konstantin.ananyev@intel.com>; Yang, SteveX <stevex.yang@intel.com>
> Subject: [PATCH v5 0/5] fix default max mtu size when device configured
> 
> when application presets the max rx packet length and expected mtu at the
> same time, driver need identify if the preset max frame size can hold mtu data
> and Ether overhead completely.
> 
> if not, adjust the max frame size via mtu_set ops within dev_configure.
> 
> v5:
>  * update comments and commit messages;
> v4:
>  * add the adjust condition for max_rx_pkt_len;
> v3:
>  * change the i40evf relative code;
> v2:
>  * change the max_rx_pkt_len via mtu_set ops;
> 
> SteveX Yang (5):
>   net/e1000: fix max mtu size packets with vlan tag cannot be received
>     by default
>   net/igc: fix max mtu size packets with vlan tag cannot be received by
>     default
>   net/ice: fix max mtu size packets with vlan tag cannot be received by
>     default
>   net/i40e: fix max mtu size packets with vlan tag cannot be received by
>     default
>   net/iavf: fix max mtu size packets with vlan tag cannot be received by
>     default
> 
>  drivers/net/e1000/em_ethdev.c     | 12 ++++++++++++
>  drivers/net/i40e/i40e_ethdev.c    | 11 +++++++++++
>  drivers/net/i40e/i40e_ethdev_vf.c | 13 ++++++++++++-
>  drivers/net/iavf/iavf_ethdev.c    | 12 ++++++++++++
>  drivers/net/ice/ice_ethdev.c      | 11 +++++++++++
>  drivers/net/igc/igc_ethdev.c      | 13 ++++++++++++-
>  6 files changed, 70 insertions(+), 2 deletions(-)
> 
> --
> 2.17.1

Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi