[dts] [PATCH V2] Modify the clv offset code

Tu, Lijuan lijuan.tu at intel.com
Tue Oct 22 11:51:13 CEST 2019


I can't understand why is the patch, thanks

Columbiaville and Fortville has the same overhead length, so why they are in different catalogs.
#define ICE_ETH_OVERHEAD \
        (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + ICE_VLAN_TAG_SIZE * 2)

#define I40E_ETH_OVERHEAD \
        (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + I40E_VLAN_TAG_SIZE * 2)


> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Peng Zhihong
> Sent: Monday, October 21, 2019 7:22 PM
> To: dts at dpdk.org
> Cc: Peng, ZhihongX <zhihongx.peng at intel.com>
> Subject: [dts] [PATCH V2] Modify the clv offset code
> 
> Signed-off-by: Peng Zhihong <zhihongx.peng at intel.com>
> ---
>  tests/TestSuite_userspace_ethtool.py | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_userspace_ethtool.py
> b/tests/TestSuite_userspace_ethtool.py
> index 116fd3a..94918e9 100644
> --- a/tests/TestSuite_userspace_ethtool.py
> +++ b/tests/TestSuite_userspace_ethtool.py
> @@ -546,9 +546,16 @@ class TestUserspaceEthtool(TestCase,
> IxiaPacketGenerator):
>          mtus = [1519, 2048]
>          mtu_threshold = 2022
>          offset = 0
> +
>          if self.nic in ['powerville', 'springville']:
>              mtu_threshold = 2026
>              offset = 4
> +        elif self.nic in ['columbiaville_25g', 'columbiaville_100g']:
> +            #ICE_ETH_OVERHEAD is 8
> +            offset = 8
> +        else:
> +            pass
> +
>          for index in range(len(self.ports)):
>              port = self.ports[index]
>              # change mtu
> @@ -561,10 +568,9 @@ class TestUserspaceEthtool(TestCase,
> IxiaPacketGenerator):
>                  if mtu > mtu_threshold:
>                      if self.nic in ['powerville', 'springville']:
>                          mtu = mtu_threshold
> -                    self.dut.send_expect("stop %s" % index, "EthApp>")
> -                    self.dut.send_expect("mtu %d %d" % (index, mtu), "EthApp>")
> -                    self.dut.send_expect("open %s" % index, "EthApp>")
> +                self.dut.send_expect("stop %s" % index, "EthApp>")
>                  self.dut.send_expect("mtu %d %d" % (index, mtu), "EthApp>")
> +                self.dut.send_expect("open %s" % index, "EthApp>")
>                  time.sleep(5)
>                  ori_rx_pkts, _ = self.strip_portstats(index)
>                  pkt_size = mtu + HEADER_SIZE['eth'] + offset
> --
> 2.17.1



More information about the dts mailing list