DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] tools: Fix some strings and functions regarding VFIO support
@ 2015-03-18 15:05 Andre Richter
  2015-03-23 11:09 ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Andre Richter @ 2015-03-18 15:05 UTC (permalink / raw)
  To: dev

This patch fixes several minor issues in setup.sh:

     - show_nics() would not display the current Ethernet settings if
       the user only loads the vfio-pci module, b/c it only checks for
       presence of igb_uio. Fix this by adding a check for vfio-pci.

     - unbind_nics(): Fix option naming and string inside function.

     - Exchange a forgotten "igb_uio" with "vfio-pci" in a comment.
---
 tools/setup.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tools/setup.sh b/tools/setup.sh
index ac438c2..5a8b2f3 100755
--- a/tools/setup.sh
+++ b/tools/setup.sh
@@ -427,16 +427,16 @@ grep_meminfo()
 #
 show_nics()
 {
-	if  /sbin/lsmod  | grep -q igb_uio ; then
+	if  /sbin/lsmod | grep -q -e igb_uio -e vfio_pci; then
 		${RTE_SDK}/tools/dpdk_nic_bind.py --status
 	else
-		echo "# Please load the 'igb_uio' kernel module before querying or "
-		echo "# adjusting NIC device bindings"
+		echo "# Please load the 'igb_uio' or 'vfio-pci' kernel module before "
+		echo "# querying or adjusting NIC device bindings"
 	fi
 }
 
 #
-# Uses dpdk_nic_bind.py to move devices to work with igb_uio
+# Uses dpdk_nic_bind.py to move devices to work with vfio-pci
 #
 bind_nics_to_vfio()
 {
@@ -477,7 +477,7 @@ unbind_nics()
 {
 	${RTE_SDK}/tools/dpdk_nic_bind.py --status
 	echo ""
-	echo -n "Enter PCI address of device to bind to IGB UIO driver: "
+	echo -n "Enter PCI address of device to unbind: "
 	read PCI_PATH
 	echo ""
 	echo -n "Enter name of kernel driver to bind the device to: "
@@ -574,7 +574,7 @@ step5_func()
 	TEXT[1]="Uninstall all targets"
 	FUNC[1]="uninstall_targets"
 
-	TEXT[2]="Unbind NICs from IGB UIO driver"
+	TEXT[2]="Unbind NICs from IGB UIO or VFIO driver"
 	FUNC[2]="unbind_nics"
 
 	TEXT[3]="Remove IGB UIO module"
-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] tools: Fix some strings and functions regarding VFIO support
  2015-03-18 15:05 [dpdk-dev] [PATCH] tools: Fix some strings and functions regarding VFIO support Andre Richter
@ 2015-03-23 11:09 ` Thomas Monjalon
  2015-03-23 11:52   ` Andre Richter
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2015-03-23 11:09 UTC (permalink / raw)
  To: Andre Richter; +Cc: dev

Hi,

Your patch looks good.
Please could you resend it with a Signed-off-by line?
Procedure is described here:
	http://dpdk.org/dev#send

Thanks

2015-03-18 16:05, Andre Richter:
> This patch fixes several minor issues in setup.sh:
> 
>      - show_nics() would not display the current Ethernet settings if
>        the user only loads the vfio-pci module, b/c it only checks for
>        presence of igb_uio. Fix this by adding a check for vfio-pci.
> 
>      - unbind_nics(): Fix option naming and string inside function.
> 
>      - Exchange a forgotten "igb_uio" with "vfio-pci" in a comment.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] tools: Fix some strings and functions regarding VFIO support
  2015-03-23 11:09 ` Thomas Monjalon
@ 2015-03-23 11:52   ` Andre Richter
  0 siblings, 0 replies; 3+ messages in thread
From: Andre Richter @ 2015-03-23 11:52 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

Ah sorry, I wonder where that went missing.
I'll resend.

Thomas Monjalon <thomas.monjalon@6wind.com> schrieb am Mo., 23. März 2015
um 12:10 Uhr:

> Hi,
>
> Your patch looks good.
> Please could you resend it with a Signed-off-by line?
> Procedure is described here:
>         http://dpdk.org/dev#send
>
> Thanks
>
> 2015-03-18 16:05, Andre Richter:
> > This patch fixes several minor issues in setup.sh:
> >
> >      - show_nics() would not display the current Ethernet settings if
> >        the user only loads the vfio-pci module, b/c it only checks for
> >        presence of igb_uio. Fix this by adding a check for vfio-pci.
> >
> >      - unbind_nics(): Fix option naming and string inside function.
> >
> >      - Exchange a forgotten "igb_uio" with "vfio-pci" in a comment.
>
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-23 11:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-18 15:05 [dpdk-dev] [PATCH] tools: Fix some strings and functions regarding VFIO support Andre Richter
2015-03-23 11:09 ` Thomas Monjalon
2015-03-23 11:52   ` Andre Richter

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).