[dpdk-dev] [PATCH 07/22] event/dlb2: add xstats
McDaniel, Timothy
timothy.mcdaniel at intel.com
Thu Sep 17 23:26:08 CEST 2020
> -----Original Message-----
> From: Chen, Mike Ximing <mike.ximing.chen at intel.com>
> Sent: Thursday, September 17, 2020 3:58 PM
> To: McDaniel, Timothy <timothy.mcdaniel at intel.com>
> Cc: dev at dpdk.org; Carrillo, Erik G <Erik.G.Carrillo at intel.com>; Eads, Gage
> <gage.eads at intel.com>; Van Haaren, Harry <harry.van.haaren at intel.com>;
> jerinj at marvell.com
> Subject: RE: [dpdk-dev] [PATCH 07/22] event/dlb2: add xstats
>
> <snip>
> > +dlb2_eventdev_dump(struct rte_eventdev *dev, FILE *f) {
> > + struct dlb2_eventdev *dlb2;
> > + struct dlb2_hw_dev *handle;
> > + int i;
> > +
> > + if (!f) {
> > + printf("Invalid file pointer\n");
> > + return;
> > + }
> > +
> > + if (!dev) {
> > + fprintf(f, "Invalid event device\n");
> > + return;
> > + }
> > +
> > + dlb2 = dlb2_pmd_priv(dev);
> > +
> > + if (!dlb2) {
> > + fprintf(f, "DLB2 Event device cannot be dumped!\n");
> > + return;
> > + }
> > +
>
> Not sure if this is enforced. The DPDK coding style discourages using ! on
> pointers ( see section 1. 8.1 at
> https://doc.dpdk.org/guides/contributing/coding_style.html).
>
I see !ptr used in many other dpdk components, and it is not flagged by checkpatch either.
More information about the dev
mailing list