[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180711125133.60528540@epycfail>
Date: Wed, 11 Jul 2018 12:51:33 +0200
From: Stefano Brivio <sbrivio@...hat.com>
To: Li RongQing <lirongqing@...du.com>
Cc: netdev@...r.kernel.org, Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH] net: convert gro_count to bitmask
On Wed, 11 Jul 2018 17:15:53 +0800
Li RongQing <lirongqing@...du.com> wrote:
> @@ -5380,6 +5382,12 @@ static enum gro_result dev_gro_receive(struct napi_struct *napi, struct sk_buff
> if (grow > 0)
> gro_pull_from_frag0(skb, grow);
> ok:
> + if (napi->gro_hash[hash].count)
> + if (!test_bit(hash, &napi->gro_bitmask))
> + set_bit(hash, &napi->gro_bitmask);
> + else if (test_bit(hash, &napi->gro_bitmask))
> + clear_bit(hash, &napi->gro_bitmask);
This might not do what you want.
--
Stefano
Powered by blists - more mailing lists