test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Liu, Yong" <yong.liu@intel.com>
To: "xu,huilong" <huilongx.xu@intel.com>, dts@dpdk.org
Subject: Re: [dts] [PATCH V1] fix niantic ethtool -i not support issue
Date: Wed, 08 Mar 2017 16:06:27 +0800	[thread overview]
Message-ID: <58BFBB83.1070700@intel.com> (raw)
In-Reply-To: <1488869113-6242-1-git-send-email-huilongx.xu@intel.com>

Huilong,
As I known, kni ixgbe interface should support ethtool driver info dump 
command.
This maybe some kind of issues. Please check again.

Thanks,
Marvin

On 03/07/2017 02:45 PM, xu,huilong wrote:
> The virtual nic by kni on niantic nic, it only support ethool and ethool -k operation.
>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
>   tests/TestSuite_kni.py | 23 +++++++++++++----------
>   1 file changed, 13 insertions(+), 10 deletions(-)
>
> diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py
> index 0825903..0e4211a 100644
> --- a/tests/TestSuite_kni.py
> +++ b/tests/TestSuite_kni.py
> @@ -664,6 +664,19 @@ class TestKni(TestCase):
>                           "ethtool not supported")
>               self.verify("Operation not supported" not in out,
>                           "ethtool not supported")
> +
> +            # Request features status
> +            out = self.dut.send_expect("ethtool -k %s" % virtual_interface, "# ")
> +            self.verify(("Features for %s" % virtual_interface in out) or
> +                        ("Offload parameters for %s" %
> +                         virtual_interface in out),
> +                        "'ethtool -k' not supported")
> +            self.verify("Operation not supported" not in out,
> +                        "'ethtool -k' not supported")
> +
> +            if self.nic == 'niantic':
> +               # niantic nic only support ethtool and ethtool -k operation
> +                continue
>   
>               # Request driver information
>               out = self.dut.send_expect("ethtool -i %s" % virtual_interface,
> @@ -688,16 +701,6 @@ class TestKni(TestCase):
>                           "'ethtool -S' not supported")
>               self.verify("Operation not supported" not in out,
>                           "ethtool '-S' not supported")
> -
> -            # Request features status
> -            out = self.dut.send_expect("ethtool -k %s" % virtual_interface, "# ")
> -            self.verify(("Features for %s" % virtual_interface in out) or
> -                        ("Offload parameters for %s" %
> -                         virtual_interface in out),
> -                        "'ethtool -k' not supported")
> -            self.verify("Operation not supported" not in out,
> -                        "'ethtool -k' not supported")
> -
>               # Request ring parameters
>               out = self.dut.send_expect("ethtool -g %s" % virtual_interface,
>                                          "# ")

      reply	other threads:[~2017-03-08  8:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-07  6:45 xu,huilong
2017-03-08  8:06 ` Liu, Yong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58BFBB83.1070700@intel.com \
    --to=yong.liu@intel.com \
    --cc=dts@dpdk.org \
    --cc=huilongx.xu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).