Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3525020imj; Tue, 19 Feb 2019 05:09:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IaryKMMUXav23kMdLApdY26goeiErnvQjKfeJhZgLpIAjAx/CocYrC6CMZjqQn9YXoOqTKB X-Received: by 2002:a62:6d81:: with SMTP id i123mr16455010pfc.235.1550581764919; Tue, 19 Feb 2019 05:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550581764; cv=none; d=google.com; s=arc-20160816; b=S+Heh1e1xCskI8V1ob4wl3wgC4ENA+6P2/zQggK28YsiIc1CnnN9SBL97LG2VqTZLQ 5MNqc8D1iPtaooEyHnIGI4SqMhtX6lWFrxbMI083rskJpcRjT+Jx3h2QSfOULht6PjGV 2EbwfGBa2DS2706e4UVCbSJnC/zzX383iefNYK7/fwYoqSbtKp9QKqZ4yh8Udh6TEw7m M90uxtM9T6vJswPk5pTW8/9sMcbxGbp/TsK8HBIHL10rMJw1jRFPg87APwbccnKlYVl3 N0BSz1vSc3xdnIMQ4SR0lvU3r1RklUTQ6LN4Dlr7MmEUrxzFI8gOC722Kb6FPXwUMa/n EQSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bdPxa1bJZpZzWEjVrj+U62nU7byQjjl3rvbmpCLwqIM=; b=N60a6b5C4vswPn654cRHyyjr4xhRMWZao8nxghuf6t6wkWBZ9csFn3v8hhsQUSkU2U 8m2KBlkWoUl+6rdlxpl3qvvTj/tghOXPrru5ZOSp5xXk/5TA93sw313wimT1l30256jG 22+wK+eO48cUD7h37iKYAiK5zyGchSuDGcFOzIM0ADEBhjCGpIstAu4cKvruCW3hRAe2 h3F3w1YwoYUh5MyY2jikjOOrqlwhU87LXbx7rb04QMihPOwE6SqxJ776gKu4Mk6zXDxi /M3qfCrvsZ6DqA1Ah/+4RNWmxp5OrvsgJm2gBpDya2sp7TRx2az7OxNeMWz+vVrYAwEL vsUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n80si10126413pfg.150.2019.02.19.05.09.08; Tue, 19 Feb 2019 05:09:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728715AbfBSNHZ (ORCPT + 99 others); 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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