* [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* [LTP] [PATCH] network/busy_poll: TCONF if driver doesn't support busy-poll feature
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
0 siblings, 2 replies; 4+ messages in thread
From: Cyril Hrubis @ 2016-10-10 15:11 UTC (permalink / raw)
To: ltp
Hi!
> +ethtool --show-features $(tst_iface) | grep -q 'busy-poll.*on' || \
> + tst_brkm TCONF "busy poll not supported by driver"
> +
Maybe it would be better to move all the TCONF checks into a common
bussy_poll_lib.sh and source it in the scripts.
And also we should check for ethtool command with the tst_check_cmds.
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] [PATCH] network/busy_poll: TCONF if driver doesn't support busy-poll feature
2016-10-10 15:11 ` Cyril Hrubis
@ 2016-10-11 11:22 ` Alexey Kodanev
2016-10-13 13:44 ` Alexey Kodanev
1 sibling, 0 replies; 4+ messages in thread
From: Alexey Kodanev @ 2016-10-11 11:22 UTC (permalink / raw)
To: ltp
Hi,
On 10/10/2016 06:11 PM, Cyril Hrubis wrote:
> Hi!
>> +ethtool --show-features $(tst_iface) | grep -q 'busy-poll.*on' || \
>> + tst_brkm TCONF "busy poll not supported by driver"
>> +
> Maybe it would be better to move all the TCONF checks into a common
> bussy_poll_lib.sh and source it in the scripts.
Good point, I'll do that.
Thanks,
Alexey
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] [PATCH] network/busy_poll: TCONF if driver doesn't support busy-poll feature
2016-10-10 15:11 ` Cyril Hrubis
2016-10-11 11:22 ` Alexey Kodanev
@ 2016-10-13 13:44 ` Alexey Kodanev
1 sibling, 0 replies; 4+ messages in thread
From: Alexey Kodanev @ 2016-10-13 13:44 UTC (permalink / raw)
To: ltp
Hi,
On 10/10/2016 06:11 PM, Cyril Hrubis wrote:
> Hi!
>> +ethtool --show-features $(tst_iface) | grep -q 'busy-poll.*on' || \
>> + tst_brkm TCONF "busy poll not supported by driver"
>> +
> Maybe it would be better to move all the TCONF checks into a common
> bussy_poll_lib.sh and source it in the scripts.
>
> And also we should check for ethtool command with the tst_check_cmds.
Added new shell lib with checks and applied.
Thanks,
Alexey
^ permalink raw reply [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