From: Lijuan Tu <lijuanx.a.tu@intel.com>
To: dts@dpdk.org
Cc: Lijuan Tu <lijuanx.a.tu@intel.com>
Subject: [dts] [PATCH V2] Framework/dut: fix parameter error on some OS
Date: Thu, 19 Jan 2017 13:54:36 +0800 [thread overview]
Message-ID: <1484805276-50361-1-git-send-email-lijuanx.a.tu@intel.com> (raw)
FreeBSD not support virtualization cases.
Add one blank function for FreeBSD OS to workaround this issue
Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
---
nics/net_device.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/nics/net_device.py b/nics/net_device.py
index bbe4bed..a2697b3 100644
--- a/nics/net_device.py
+++ b/nics/net_device.py
@@ -548,6 +548,13 @@ class NetDevice(object):
self, 'get_sriov_vfs_pci_%s' % self.__get_os_type())
return get_sriov_vfs_pci(self.domain_id, self.bus_id, self.devfun_id, self.current_driver)
+ def get_sriov_vfs_pci_freebsd(self, bus_id, devfun_id, driver):
+ """
+ FreeBSD not support virtualization cases now.
+ We can implement it later.
+ """
+ pass
+
def get_sriov_vfs_pci_linux(self, domain_id, bus_id, devfun_id, driver):
"""
Get all SRIOV VF pci bus of specified pci device on linux.
--
1.9.3
next reply other threads:[~2017-01-19 5:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-19 5:54 Lijuan Tu [this message]
2017-01-19 6:17 ` Liu, Yong
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=1484805276-50361-1-git-send-email-lijuanx.a.tu@intel.com \
--to=lijuanx.a.tu@intel.com \
--cc=dts@dpdk.org \
/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).