From: Ido Schimmel <idosch@idosch.org>
To: Jakub Kicinski <jakub.kicinski@netronome.com>
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 <idosch@mellanox.com>
Subject: Re: [PATCH net-next v2 11/14] netdevsim: Add devlink-trap support
Date: Thu, 15 Aug 2019 09:27:45 +0300 [thread overview]
Message-ID: <20190815062745.GA12222@splinter> (raw)
In-Reply-To: <20190814165957.0e626f57@cakuba.netronome.com>
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 <linux/debugfs.h>
> > #include <linux/device.h>
> > +#include <linux/etherdevice.h>
> > +#include <linux/inet.h>
> > +#include <linux/jiffies.h>
> > +#include <linux/kernel.h>
> > #include <linux/list.h>
> > #include <linux/mutex.h>
> > #include <linux/random.h>
> > +#include <linux/workqueue.h>
> > +#include <linux/random.h>
> > #include <linux/rtnetlink.h>
> > #include <net/devlink.h>
> > +#include <net/ip.h>
> > +#include <uapi/linux/devlink.h>
> > +#include <uapi/linux/ip.h>
> > +#include <uapi/linux/udp.h>
>
> 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!
next prev parent reply other threads:[~2019-08-15 6:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-13 7:53 [PATCH net-next v2 00/14] Add drop monitor for offloaded data paths Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 01/14] drop_monitor: Move per-CPU data init/fini to separate functions Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 02/14] drop_monitor: Initialize hardware per-CPU data Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 03/14] drop_monitor: Add basic infrastructure for hardware drops Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 04/14] drop_monitor: Consider all monitoring states before performing configuration Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 05/14] drop_monitor: Add support for packet alert mode for hardware drops Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 06/14] drop_monitor: Add support for summary " Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 07/14] drop_monitor: Allow user to start monitoring " Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 08/14] devlink: Add packet trap infrastructure Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 09/14] devlink: Add generic packet traps and groups Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 10/14] Documentation: Add devlink-trap documentation Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 11/14] netdevsim: Add devlink-trap support Ido Schimmel
2019-08-14 23:59 ` Jakub Kicinski
2019-08-15 6:27 ` Ido Schimmel [this message]
2019-08-13 7:53 ` [PATCH net-next v2 12/14] Documentation: Add description of netdevsim traps Ido Schimmel
2019-08-13 7:53 ` [PATCH net-next v2 13/14] selftests: devlink_trap: Add test cases for devlink-trap Ido Schimmel
2019-08-15 0:42 ` Jakub Kicinski
2019-08-15 6:34 ` Ido Schimmel
2019-08-13 7:54 ` [PATCH net-next v2 14/14] Documentation: Add a section for devlink-trap testing Ido Schimmel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190815062745.GA12222@splinter \
--to=idosch@idosch.org \
--cc=andrew@lunn.ch \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=dsahern@gmail.com \
--cc=f.fainelli@gmail.com \
--cc=idosch@mellanox.com \
--cc=jakub.kicinski@netronome.com \
--cc=jiri@mellanox.com \
--cc=mlxsw@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=nikolay@cumulusnetworks.com \
--cc=roopa@cumulusnetworks.com \
--cc=toke@redhat.com \
--cc=vivien.didelot@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).