Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1742425

Re: [PATCH net-next v2 1/7] net: dsa: add master helper to look up slaves

From Florian Fainelli <f.fainelli@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH net-next v2 1/7] net: dsa: add master helper to look up slaves
Date 2017-09-30 03:20 +0200
Message-ID <uveBH-5A0-5@gated-at.bofh.it> (permalink)
References <uvb17-3ao-3@gated-at.bofh.it> <uvb18-3ao-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 09/29/2017 02:19 PM, Vivien Didelot wrote:
> The DSA tagging code does not need to know about the DSA architecture,
> it only needs to return the slave device corresponding to the source
> port index (and eventually the source device index for cascade-capable
> switches) parsed from the frame received on the master device.
> 
> For this purpose, provide an inline dsa_master_get_slave helper which
> validates the device and port indexes and look up the slave device.
> 
> This makes the tagging rcv functions more concise and robust, and also
> makes dsa_get_cpu_port obsolete.
> 
> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH net-next v2 1/7] net: dsa: add master helper to look up slaves Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-09-29 23:30 +0200
  Re: [PATCH net-next v2 1/7] net: dsa: add master helper to look up  slaves Florian Fainelli <f.fainelli@gmail.com> - 2017-09-30 03:20 +0200

csiph-web