From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamal Hadi Salim Subject: Re: [PATCH net 08/13] net: sched: cls_u32: clean tc_u_common hashtable Date: Sun, 9 Sep 2018 07:47:18 -0400 Message-ID: References: <20180909013132.3222-1-viro@ZenIV.linux.org.uk> <20180909013132.3222-9-viro@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Cong Wang , Jiri Pirko To: Al Viro , netdev@vger.kernel.org Return-path: Received: from mail-it0-f68.google.com ([209.85.214.68]:36047 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726687AbeIIQgq (ORCPT ); Sun, 9 Sep 2018 12:36:46 -0400 Received: by mail-it0-f68.google.com with SMTP id u13-v6so25226185iti.1 for ; Sun, 09 Sep 2018 04:47:20 -0700 (PDT) In-Reply-To: <20180909013132.3222-9-viro@ZenIV.linux.org.uk> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 2018-09-08 9:31 p.m., Al Viro wrote: > From: Al Viro > > * calculate key *once*, not for each hash chain element > * let tc_u_hash() return the pointer to chain head rather than index - > callers are cleaner that way. > > Signed-off-by: Al Viro Acked-by: Jamal Hadi Salim cheers, jamal