From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D00BC43381 for ; Tue, 19 Feb 2019 13:07:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 203672147A for ; Tue, 19 Feb 2019 13:07:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728663AbfBSNHZ (ORCPT ); Tue, 19 Feb 2019 08:07:25 -0500 Received: from mx2.suse.de ([195.135.220.15]:51040 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727246AbfBSNHZ (ORCPT ); Tue, 19 Feb 2019 08:07:25 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 074FEAE30; Tue, 19 Feb 2019 13:07:23 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 5DB8DE00A5; Tue, 19 Feb 2019 14:07:23 +0100 (CET) Date: Tue, 19 Feb 2019 14:07:23 +0100 From: Michal Kubecek To: Jakub Kicinski Cc: netdev@vger.kernel.org, David Miller , Andrew Lunn , Jiri Pirko , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next v3 04/21] ethtool: helper functions for netlink interface Message-ID: <20190219130723.GF23151@unicorn.suse.cz> References: <266b4ea3596de134329f8bbd5d13e282d1d27442.1550513384.git.mkubecek@suse.cz> <20190218121517.4d299f6e@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190218121517.4d299f6e@cakuba.netronome.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Feb 18, 2019 at 12:15:17PM -0800, Jakub Kicinski wrote: > On Mon, 18 Feb 2019 19:21:44 +0100 (CET), Michal Kubecek wrote: > > +/* create skb for a reply and fill device identification > > + * payload: payload length (without netlink and genetlink header) > > + * dev: device the reply is about (may be null) > > + * cmd: ETHNL_CMD_* command for reply > > + * info: info for the received packet we respond to > > + * ehdrp: place to store payload pointer returned by genlmsg_new() > > + * returns: skb or null on error > > + */ > > nit: why not correct kdoc? Good point. I'll fix that, together with the other things. Michal > > > +struct sk_buff *ethnl_reply_init(size_t payload, struct net_device *dev, u8 cmd, > > + u16 dev_attrtype, struct genl_info *info, > > + void **ehdrp) > > +{ > > + void *ehdr; > > + struct sk_buff *rskb; > > nit: reverse xmas tree