From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Sun, QinX" <qinx.sun@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Peng, Yuan" <yuan.peng@intel.com>, "Sun, QinX" <qinx.sun@intel.com>
Subject: Re: [dts] [PATCH V1] tests/cvl_limit_value_test: adapt to cvl island platform
Date: Tue, 2 Mar 2021 05:02:41 +0000
Message-ID: <1b0539469bad45cc9e927495f8c702b7@intel.com> (raw)
In-Reply-To: <20210301163954.29103-1-qinx.sun@intel.com>
> + def is_cvl_island(self, port_id=0):
> + """
> + Judge whether it is a CVL Island card according to the value of fd_fltr_guar
> + """
> + pf_pci = self.dut.ports_info[port_id]['pci']
> + self.dut.send_expect('usertools/dpdk-devbind.py --force --bind=vfio-pci
> {}'.format(pf_pci), '#')
> + out = PmdOutput(self.dut).start_testpmd('default', eal_param='-a %s --log-
> level=ice,7' % pf_pci)
> + self.dut.kill_all()
> + self.logger.info(f'outinfo:{out}')
> + res = re.search(r"fd_fltr_guar\s+=\s+(\d+)", out)
> + self.verify(res, "'fd_fltr_guar' not found'")
> + if int(res.group(1)) == 2048:
> + return True
> + return False
It's really a bad approach.
prev parent reply other threads:[~2021-03-02 5:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-01 16:39 sunqin
2021-03-02 5:02 ` Tu, Lijuan [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=1b0539469bad45cc9e927495f8c702b7@intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=qinx.sun@intel.com \
--cc=yuan.peng@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
test suite reviews and discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://inbox.dpdk.org/dts/0 dts/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 dts dts/ https://inbox.dpdk.org/dts \
dts@dpdk.org
public-inbox-index dts
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://inbox.dpdk.org/inbox.dpdk.dts
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git