All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: nicolas.dichtel@6wind.com
Cc: netdev@vger.kernel.org, jiri@resnulli.us
Subject: Re: [PATCH net-next] drivers/net: add 6WIND SHULTI support
Date: Wed, 27 Apr 2016 12:34:01 -0400 (EDT)	[thread overview]
Message-ID: <20160427.123401.2056055787059013850.davem@davemloft.net> (raw)
In-Reply-To: <1461749838-4613-1-git-send-email-nicolas.dichtel@6wind.com>

From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Date: Wed, 27 Apr 2016 11:37:18 +0200

> +/* rtnl linkinfo attributes */
> +enum {
> +	IFLA_SHULTI_UNSPEC,
> +	IFLA_SHULTI_SWDEV_ID,
> +	IFLA_SHULTI_SWDEV_PORTID,
> +	IFLA_SHULTI_PHYS_PORT_NAME,
> +
> +	__IFLA_SHULTI_MAX
> +#define IFLA_SHULTI_MAX	(__IFLA_SHULTI_MAX - 1)
> +};
> +
 ...
> +enum {
> +	SHULTI_A_UNSPEC,
> +	SHULTI_A_NL_PORTIDS,
> +	SHULTI_A_SWDEV_PORTID,
> +	SHULTI_A_RX_QUEUES,
> +	SHULTI_A_ERRCODE,
> +	SHULTI_A_IFINDEX,
> +	SHULTI_A_LINK_STATUS,
> +	SHULTI_A_PACKET,
> +	SHULTI_A_STATS,
> +	SHULTI_A_VLAN_VID,
> +	SHULTI_A_DRVINFO,
> +	SHULTI_A_SETTINGS,
> +	SHULTI_A_RX_MODES,
> +	SHULTI_A_UC_ADDR,
> +	SHULTI_A_MC_ADDR,
> +	SHULTI_A_STP_STATE,
> +	SHULTI_A_BR_STATE_LEARNING,
> +	SHULTI_A_BR_AGEING_TIME,
> +	SHULTI_A_BR_FDB,
> +
> +	__SHULTI_A_MAX
> +#define SHULTI_A_MAX	(__SHULTI_A_MAX - 1)
> +};
> +

If our existing netlink facilities for switchdevs are not sufficient to properly
report and configure the state of your device, extend it rather than making custom
netlink stuff.

      parent reply	other threads:[~2016-04-27 16:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27  9:37 [PATCH net-next] drivers/net: add 6WIND SHULTI support Nicolas Dichtel
2016-04-27  9:50 ` Jiri Pirko
2016-04-27  9:56 ` Florian Westphal
2016-04-27 15:14   ` Jiri Pirko
2016-04-27 15:38     ` Nicolas Dichtel
2016-04-27 15:54       ` Jiri Pirko
2016-04-27 16:55     ` David Miller
2016-04-27 17:07       ` Stephen Hemminger
2016-04-28 12:00         ` Nicolas Dichtel
2016-04-28 11:59       ` Nicolas Dichtel
2016-04-28 14:05         ` Or Gerlitz
2016-04-28 15:54         ` David Miller
2016-04-29  8:48           ` Nicolas Dichtel
2016-05-01 15:27             ` Jiri Pirko
2016-05-01 19:53           ` Jiri Pirko
2016-05-01 15:24         ` Jiri Pirko
2016-04-27 16:34 ` David Miller [this message]

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=20160427.123401.2056055787059013850.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=jiri@resnulli.us \
    --cc=netdev@vger.kernel.org \
    --cc=nicolas.dichtel@6wind.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.