[PATCH v2] bpf: test_maps: Avoid possible out of bound access

2019-02-05 Thread Breno Leitao
f-by: Breno Leitao --- tools/testing/selftests/bpf/test_maps.c | 27 + 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tools/testing/selftests/bpf/test_maps.c b/tools/testing/selftests/bpf/test_maps.c index e2b9eee37187..6e05a22b346c 100644 --- a/tools/tes

Re: [PATCH] bpf: test_maps: Avoid possible out of bound access

2019-02-05 Thread Breno Leitao
Hi Daniel, On 2/4/19 6:57 PM, Daniel Borkmann wrote: > There are couple more test_*() functions that need to be converted if we do > the change to unsigned: > > tools/testing/selftests/bpf/test_maps.c:48:static void test_hashmap(int task, > void *data) > tools/testing/selftests/bpf/test_maps.c:1

[PATCH] bpf: test_maps: Avoid possible out of bound access

2019-02-04 Thread Breno Leitao
ning: array subscript -1 is below array bounds of ‘pid_t[ + 1]’ [-Warray-bounds] pid[i] = fork(); ~~~^~~ This patch simply guarantees that the tasks variable is unsigned, thus, it could never be a negative number, hence avoiding an out of bound access warning. Signed-off-by: B

Re: doubt in e1000_io_write()

2008-01-11 Thread Breno Leitao
int32_t value) { outl(value, port); } Signed-off-by: Breno Leitao <[EMAIL PROTECTED]> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: e1000 performance issue in 4 simultaneous links

2008-01-11 Thread Breno Leitao
Hello Denys, I've installed sysstat (good tools!) and the result is very similar to the one which appears at top, take a look: 13:34:23 CPU %user %nice%sys %iowait%irq %soft %steal %idleintr/s 13:34:24 all0.000.002.720.000.25 12.130.99

Re: e1000 performance issue in 4 simultaneous links

2008-01-11 Thread Breno Leitao
On Fri, 2008-01-11 at 17:48 +0100, Eric Dumazet wrote: > Breno Leitao a écrit : > > Take a look at the interrupt table this time: > > > > io-dolphins:~/leitao # cat /proc/interrupts | grep eth[1]*[67] > > 277: 151362450 13 14 13

RE: e1000 performance issue in 4 simultaneous links

2008-01-11 Thread Breno Leitao
On Thu, 2008-01-10 at 12:52 -0800, Brandeburg, Jesse wrote: > Breno Leitao wrote: > > When I run netperf in just one interface, I get 940.95 * 10^6 bits/sec > > of transfer rate. If I run 4 netperf against 4 different interfaces, I > > get around 720 * 10^6 bits/sec. > &

Re: e1000 performance issue in 4 simultaneous links

2008-01-10 Thread Breno Leitao
7246 3475 7132 3394 7258 3435 XICS Level pata_pdc2027x BAD: 4216 Thanks, -- Breno Leitao <[EMAIL PROTECTED]> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

e1000 performance issue in 4 simultaneous links

2008-01-10 Thread Breno Leitao
x-netdev&m=119977075917488&w=2 PS: I am not using a switch in the middle of interfaces (they are end-to-end) and the connections are independents. -- Breno Leitao <[EMAIL PROTECTED]> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EM