Re: [PATCH net-next 2/7] kobject: copy env blob in one go

2017-09-19 Thread Cong Wang
On Mon, Sep 18, 2017 at 12:07 PM, Eric Dumazet wrote: > + scratch = skb_put(skb, env->buflen); > + memcpy(scratch, env->buf, env->buflen); skb_put_data()

[PATCH net-next 2/7] kobject: copy env blob in one go

2017-09-18 Thread Eric Dumazet
No need to iterate over strings, just copy in one efficient memcpy() call. Tested: time perf record "(for f in `seq 1 3000` ; do ip netns add tast$f; done)" [ perf record: Woken up 10 times to write data ] [ perf record: Captured and wrote 8.224 MB perf.data (~359301 samples) ] real0m52.554s