All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Cc: Jiri Pirko <jiri@resnulli.us>, Netdev <netdev@vger.kernel.org>,
	dsahern@gmail.com, David Miller <davem@davemloft.net>,
	Jiri Pirko <jiri@mellanox.com>, Jakub Kicinski <kuba@kernel.org>,
	Michael Chan <michael.chan@broadcom.com>
Subject: Re: [PATCH v2 iproute2-next] devlink: Add board.serial_number to info subcommand.
Date: Wed, 8 Jul 2020 08:26:23 -0700	[thread overview]
Message-ID: <20200708082623.2252d2e8@hermes.lan> (raw)
In-Reply-To: <CAACQVJpxsOXFPaSn9pjqeEeVRu_VJumvndpPpYNs_zx5SmiHgA@mail.gmail.com>

On Wed, 8 Jul 2020 20:34:50 +0530
Vasundhara Volam <vasundhara-v.volam@broadcom.com> wrote:

> On Wed, Jul 8, 2020 at 5:05 PM Jiri Pirko <jiri@resnulli.us> wrote:
> >
> > Wed, Jul 08, 2020 at 11:40:12AM CEST, vasundhara-v.volam@broadcom.com wrote:  
> > >On Sun, Jul 5, 2020 at 11:33 PM Stephen Hemminger
> > ><stephen@networkplumber.org> wrote:  
> > >>
> > >> On Mon, 29 Jun 2020 13:13:04 +0530
> > >> Vasundhara Volam <vasundhara-v.volam@broadcom.com> wrote:
> > >>  
> > >> > Add support for reading board serial_number to devlink info
> > >> > subcommand. Example:
> > >> >
> > >> > $ devlink dev info pci/0000:af:00.0 -jp
> > >> > {
> > >> >     "info": {
> > >> >         "pci/0000:af:00.0": {
> > >> >             "driver": "bnxt_en",
> > >> >             "serial_number": "00-10-18-FF-FE-AD-1A-00",
> > >> >             "board.serial_number": "433551F+172300000",
> > >> >             "versions": {
> > >> >                 "fixed": {
> > >> >                     "board.id": "7339763 Rev 0.",
> > >> >                     "asic.id": "16D7",
> > >> >                     "asic.rev": "1"
> > >> >                 },
> > >> >                 "running": {
> > >> >                     "fw": "216.1.216.0",
> > >> >                     "fw.psid": "0.0.0",
> > >> >                     "fw.mgmt": "216.1.192.0",
> > >> >                     "fw.mgmt.api": "1.10.1",
> > >> >                     "fw.ncsi": "0.0.0.0",
> > >> >                     "fw.roce": "216.1.16.0"
> > >> >                 }
> > >> >             }
> > >> >         }
> > >> >     }
> > >> > }  
> > >>
> > >> Although this is valid JSON, many JSON style guides do not allow
> > >> for periods in property names. This is done so libraries can use
> > >> dot notation to reference objects.  
> > >Okay, I will modify the name to board_serial_number and resend the
> > >patch. Thanks.  
> >
> > Does not make sense. We have plenty of other items with ".". Having one
> > without it does not resolve anything, only brings inconsistency. Please
> > have ".".  
> Okay so keeping the patch as-is.

For now yes the patch is ok as-is, but we should have a discussion about the best JSON style.
The current free form style is getting out of hand.

Resolving may mean doing more widespread changes across iproute

  reply	other threads:[~2020-07-08 15:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1593416584-24145-1-git-send-email-vasundhara-v.volam@broadcom.com>
2020-07-05 18:03 ` [PATCH v2 iproute2-next] devlink: Add board.serial_number to info subcommand Stephen Hemminger
2020-07-06  6:34   ` Jiri Pirko
2020-07-06 16:33     ` Stephen Hemminger
2020-07-08  9:40   ` Vasundhara Volam
2020-07-08 11:35     ` Jiri Pirko
2020-07-08 15:04       ` Vasundhara Volam
2020-07-08 15:26         ` Stephen Hemminger [this message]
2020-07-08 16:00           ` David Ahern

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=20200708082623.2252d2e8@hermes.lan \
    --to=stephen@networkplumber.org \
    --cc=davem@davemloft.net \
    --cc=dsahern@gmail.com \
    --cc=jiri@mellanox.com \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --cc=michael.chan@broadcom.com \
    --cc=netdev@vger.kernel.org \
    --cc=vasundhara-v.volam@broadcom.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.