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=-5.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 634BEC433FF for ; Thu, 15 Aug 2019 06:27:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F37D2086C for ; Thu, 15 Aug 2019 06:27:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="wWg2QRsQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730404AbfHOG1v (ORCPT ); Thu, 15 Aug 2019 02:27:51 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:59215 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729796AbfHOG1u (ORCPT ); Thu, 15 Aug 2019 02:27:50 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 10FC63718; Thu, 15 Aug 2019 02:27:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 15 Aug 2019 02:27:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=5oocgb On3iCaI+ipewfyoDU3IkkWOZRHTKssoosqJK0=; b=wWg2QRsQkqUhfezSQxIJ4l w/Xeb7xntKGI07xAuhYJda58iQl5g79MC5uY1OR8ncqCZy6ewsg1a94SGyeULEB0 MTc+QAxmPVLrx0unAS6idNKOuGuHzI+7w5yMySwIpbwrbPMFWSNASApllagjOmqe WgFthhwrPetahr21E+d4BcXZrbviaXHcOu/Y1RV2Tlqfi9Wdtv1ynLAsl71LLRVb lOZKIaO9qQ1aSvECXFDqcQUQpvg7aimfjhOZjXMD0HA4kY6LBpoMW/KDJCuJwJeC eMYABXzt0HZwXQrbqx7EnRTHxSm4fTxIfErF+ZEua4GO8DmmDQn30E5qNuUXEKsA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeftddgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomhepkfguohcu ufgthhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecukfhppedule efrdegjedrudeihedrvdehudenucfrrghrrghmpehmrghilhhfrhhomhepihguohhstghh sehiughoshgthhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 3E649380076; Thu, 15 Aug 2019 02:27:47 -0400 (EDT) Date: Thu, 15 Aug 2019 09:27:45 +0300 From: Ido Schimmel To: Jakub Kicinski Cc: netdev@vger.kernel.org, davem@davemloft.net, nhorman@tuxdriver.com, jiri@mellanox.com, toke@redhat.com, dsahern@gmail.com, roopa@cumulusnetworks.com, nikolay@cumulusnetworks.com, andy@greyhouse.net, f.fainelli@gmail.com, andrew@lunn.ch, vivien.didelot@gmail.com, mlxsw@mellanox.com, Ido Schimmel Subject: Re: [PATCH net-next v2 11/14] netdevsim: Add devlink-trap support Message-ID: <20190815062745.GA12222@splinter> References: <20190813075400.11841-1-idosch@idosch.org> <20190813075400.11841-12-idosch@idosch.org> <20190814165957.0e626f57@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190814165957.0e626f57@cakuba.netronome.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Aug 14, 2019 at 04:59:57PM -0700, Jakub Kicinski wrote: > On Tue, 13 Aug 2019 10:53:57 +0300, Ido Schimmel wrote: > > diff --git a/drivers/net/netdevsim/dev.c b/drivers/net/netdevsim/dev.c > > index 08ca59fc189b..2758d95c8d18 100644 > > --- a/drivers/net/netdevsim/dev.c > > +++ b/drivers/net/netdevsim/dev.c > > @@ -17,11 +17,21 @@ > > > > #include > > #include > > +#include > > +#include > > +#include > > +#include > > #include > > #include > > #include > > +#include > > +#include > > #include > > #include > > +#include > > +#include > > +#include > > +#include > > Please keep includes ordered alphabetically. You're adding > linux/random.h second time. Will fix. > > > #include "netdevsim.h" > > > +static void nsim_dev_trap_report(struct nsim_dev_port *nsim_dev_port) > > +{ > > + struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; > > + struct nsim_trap_data *nsim_trap_data = nsim_dev->trap_data; > > + struct devlink *devlink = priv_to_devlink(nsim_dev); > > + int i; > > reverse christmas tree, please Likewise. Thanks!