lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 13 Jun 2018 21:07:40 +0000
From:   Yidong Ren <>
To:     Eric Dumazet <>,
        Yidong Ren <>,
        KY Srinivasan <>,
        Haiyang Zhang <>,
        Stephen Hemminger <>,
        "David S. Miller" <>,
        "" <>,
        "" <>,
        "" <>
Subject: RE: [PATCH v2] hv_netvsc: Add per-cpu ethtool stats for netvsc

> From: Eric Dumazet <>
> You actually want to allocate memory local to this cpu, possibly in one chunk,
> not spread all over the places.
> kvmalloc(nr_cpu_ids * sizeof(struct netvsc_ethtool_pcpu_stats))  should be
> really better, since it would most of the time be satisfied by a single kmalloc()

Got it. I'm just trying to allocate memory for each cpu. It doesn't have to be __percpu variable.

Powered by blists - more mailing lists