From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: convert gro_count to bitmask Date: Wed, 11 Jul 2018 19:49:20 -0700 (PDT) Message-ID: <20180711.194920.590731873210311426.davem@davemloft.net> References: <1531300553-21413-1-git-send-email-lirongqing@baidu.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: lirongqing@baidu.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:51886 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726394AbeGLC4k (ORCPT ); Wed, 11 Jul 2018 22:56:40 -0400 In-Reply-To: <1531300553-21413-1-git-send-email-lirongqing@baidu.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Li RongQing Date: Wed, 11 Jul 2018 17:15:53 +0800 > + clear_bit(index, &napi->gro_bitmask); Please don't use atomics here, at least use __clear_bit(). This is why I did the operations by hand in my version of the patch. Also, if you are going to preempt my patch, at least retain the comment I added around the GRO_HASH_BUCKETS definitions which warns the reader about the limit. Thanks.