From mboxrd@z Thu Jan 1 00:00:00 1970 From: Or Gerlitz Subject: Re: [net-next PATCH v1 01/11] net: flow_table: create interface for hw match/action tables Date: Wed, 7 Jan 2015 12:07:57 +0200 Message-ID: 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 Cc: Thomas Graf , Scott Feldman , =?UTF-8?B?SmnFmcOtIFDDrXJrbw==?= , Jamal Hadi Salim , simon.horman@netronome.com, Linux Netdev List , David Miller , Andy Gospodarek To: John Fastabend Return-path: Received: from mail-ob0-f172.google.com ([209.85.214.172]:49917 "EHLO mail-ob0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbbAGKH6 (ORCPT ); Wed, 7 Jan 2015 05:07:58 -0500 Received: by mail-ob0-f172.google.com with SMTP id va8so2401175obc.3 for ; Wed, 07 Jan 2015 02:07:57 -0800 (PST) In-Reply-To: <54AADEFF.3090306@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: 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.