public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] network/busy_poll: TCONF if driver doesn't support busy-poll feature
@ 2016-10-06 13:48 Alexey Kodanev
  2016-10-10 15:11 ` Cyril Hrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Kodanev @ 2016-10-06 13:48 UTC (permalink / raw)
  To: ltp

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
---
 testcases/network/busy_poll/busy_poll01.sh |    3 +++
 testcases/network/busy_poll/busy_poll02.sh |    3 +++
 testcases/network/busy_poll/busy_poll03.sh |    3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/testcases/network/busy_poll/busy_poll01.sh b/testcases/network/busy_poll/busy_poll01.sh
index 8faa569..985c11d 100755
--- a/testcases/network/busy_poll/busy_poll01.sh
+++ b/testcases/network/busy_poll/busy_poll01.sh
@@ -52,6 +52,9 @@ if [ ! -f "/proc/sys/net/core/busy_read" -a \
 	tst_brkm TCONF "busy poll not configured, CONFIG_NET_RX_BUSY_POLL"
 fi
 
+ethtool --show-features $(tst_iface) | grep -q 'busy-poll.*on' || \
+	tst_brkm TCONF "busy poll not supported by driver"
+
 set_busy_poll()
 {
 	local value=${1:-"0"}
diff --git a/testcases/network/busy_poll/busy_poll02.sh b/testcases/network/busy_poll/busy_poll02.sh
index cd69ed2..28f476d 100755
--- a/testcases/network/busy_poll/busy_poll02.sh
+++ b/testcases/network/busy_poll/busy_poll02.sh
@@ -48,6 +48,9 @@ if [ ! -f "/proc/sys/net/core/busy_read" -a \
 	tst_brkm TCONF "busy poll not configured, CONFIG_NET_RX_BUSY_POLL"
 fi
 
+ethtool --show-features $(tst_iface) | grep -q 'busy-poll.*on' || \
+	tst_brkm TCONF "busy poll not supported by driver"
+
 set_busy_poll()
 {
 	local value=${1:-"0"}
diff --git a/testcases/network/busy_poll/busy_poll03.sh b/testcases/network/busy_poll/busy_poll03.sh
index 7e405ee..cc0e0db 100755
--- a/testcases/network/busy_poll/busy_poll03.sh
+++ b/testcases/network/busy_poll/busy_poll03.sh
@@ -42,6 +42,9 @@ if [ ! -f "/proc/sys/net/core/busy_read" -a \
 	tst_brkm TCONF "busy poll not configured, CONFIG_NET_RX_BUSY_POLL"
 fi
 
+ethtool --show-features $(tst_iface) | grep -q 'busy-poll.*on' || \
+	tst_brkm TCONF "busy poll not supported by driver"
+
 set_busy_poll()
 {
 	local value=${1:-"0"}
-- 
1.7.1


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

end of thread, other threads:[~2016-10-13 13:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-06 13:48 [LTP] [PATCH] network/busy_poll: TCONF if driver doesn't support busy-poll feature Alexey Kodanev
2016-10-10 15:11 ` Cyril Hrubis
2016-10-11 11:22   ` Alexey Kodanev
2016-10-13 13:44   ` Alexey Kodanev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox