Netdev List
 help / color / mirror / Atom feed
* Representing cpu-port of a switch
@ 2018-04-29 18:43 sk.syed2
  2018-04-29 21:36 ` Florian Fainelli
  0 siblings, 1 reply; 4+ messages in thread
From: sk.syed2 @ 2018-04-29 18:43 UTC (permalink / raw)
  To: netdev, jayaram, syeds

Hi,
   Sorry if this has been discussed elsewhere. The relevant discussion
is here: https://www.spinics.net/lists/netdev/msg407313.html.
  But I have few questions in addition to those answered above. We
have simple 3-port switch, with two ports(connected via phys to
external(front panel)) and one cpu port connected to the cpu via dmas.
Our switch doesn't do any tagging protocol. It simply forwards a frame
to cpu based on fdb entry. Any frame can only be received/transmitted
only by this internal port.
Without tagging, we cant really use DSA, and hide the cpu/dsa port. So
if we expose this cpu port as a interface with fixed-phy
infrastructure does it create any problems? DSA documentation says one
cannot open a socket on cpu/dsa port and send/receive traffic. Is it
fairly common to use internal/cpu port as a network interface- i.e,
creating a socket and send/receive traffic?
One problem is how to report back when network errors(like if both
front panel ports are disconnected, the expectation is to bring this
cpu port down?).
We also need to offload all the switch configuration to switch-dev. So
the question is using switch-dev without DSA and representing a cpu
port as a normal network interface would be ok?

thanks
-syed

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-30 19:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-29 18:43 Representing cpu-port of a switch sk.syed2
2018-04-29 21:36 ` Florian Fainelli
2018-04-30 13:06   ` sk.syed2
2018-04-30 19:45     ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox