On Mon, Jul 30, 2018 at 3:14 PM Stephen Hemminger
<step...@networkplumber.org> wrote:
>
> On Mon, 30 Jul 2018 14:59:09 -0700
> Wei Wang <wei...@google.com> wrote:
>
> > +     stats = alloc_skb(9 * nla_total_size_64bit(sizeof(u64)) +
> >                         7 * nla_total_size(sizeof(u32)) +
> >                         3 * nla_total_size(sizeof(u8)), GFP_ATOMIC);
>
> This is getting a bit awkward.
> Maybe use the style used in other drivers that have a get_size function
> like tun_get_size().

Thanks Stephen. OK. Will add a patch at the beginning to do this refactor.

Reply via email to