From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Fastabend Subject: Re: [net-next PATCH v1 01/11] net: flow_table: create interface for hw match/action tables Date: Wed, 07 Jan 2015 08:35:37 -0800 Message-ID: <54AD6059.9030901@gmail.com> References: <20141231194057.31070.5244.stgit@nitbit.x32> <20141231194544.31070.30335.stgit@nitbit.x32> <20150104111238.GD15305@casper.infradead.org> <54AADEFF.3090306@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Thomas Graf , Scott Feldman , =?UTF-8?B?SmnFmcOtIFDDrXJrbw==?= , Jamal Hadi Salim , simon.horman@netronome.com, Linux Netdev List , David Miller , Andy Gospodarek To: Or Gerlitz Return-path: Received: from mail-ob0-f178.google.com ([209.85.214.178]:62568 "EHLO mail-ob0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbbAGQfx (ORCPT ); Wed, 7 Jan 2015 11:35:53 -0500 Received: by mail-ob0-f178.google.com with SMTP id gq1so3894842obb.9 for ; Wed, 07 Jan 2015 08:35:53 -0800 (PST) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 01/07/2015 02:07 AM, Or Gerlitz wrote: > On Mon, Jan 5, 2015 at 8:59 PM, John Fastabend wrote: >>>> +struct sk_buff *net_flow_build_actions_msg(struct net_flow_action **a, >>>> + struct net_device *dev, >>>> + u32 portid, int seq, u8 cmd) >>>> +{ >>>> + struct genlmsghdr *hdr; >>>> + struct sk_buff *skb; >>>> + int err = -ENOBUFS; >>>> + >>>> + skb = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); >>> >>> >>> genlmsg_new(GENLMSG_DEFAULT_SIZE, GFP_KERNEL); >> >> >> fixed along with the other cases. > > small nit here, net_flow_build_actions_msg can be made static, it's > called only from within this file > > few more nits... checkpatch --strict produces bunch of "CHECK: Please > use a blank line after function/struct/union/enum declarations" > comments, I guess worth fixing too. > Thanks. will fix in v2. -- John Fastabend Intel Corporation