All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] macsec: reflect the master interface state
@ 2018-09-19  0:16 Radu Rendec
  2018-09-19  0:16 ` [PATCH 1/1] " Radu Rendec
  0 siblings, 1 reply; 6+ messages in thread
From: Radu Rendec @ 2018-09-19  0:16 UTC (permalink / raw)
  To: netdev; +Cc: David Miller, Sabrina Dubroca, Radu Rendec

Hi everyone,

I came across an issue with macsec interfaces where they don't reflect
the master interface state. On one hand you cannot set the macsec
interface link state to up unless the master interface is already up,
but on the other hand, if the master interface goes down while the
macsec interface is already up, the macsec interface stays up.

This may also be problematic if macsec interfaces are used as bridge
ports (probably not very usual, but that is my use case anyway). In that
case the bridge has no idea of the link state of the real device, since
it only sees the macsec interface, which is always up.

I'm proposing the attached patch, which is heavily inspired from the
vlan (802.1q) driver. However, in the case of macsec, there is no
concept of "loose binding" and the state is always reflected.

I tested the patch on x86_64, but I guess it's pretty much architecture
independent.

Any comments or suggestions are welcome. Thanks!

Radu Rendec (1):
  macsec: reflect the master interface state

 drivers/net/macsec.c | 57 +++++++++++++++++++++++++++++++++++---------
 1 file changed, 46 insertions(+), 11 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2018-10-29  6:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-19  0:16 [PATCH 0/1] macsec: reflect the master interface state Radu Rendec
2018-09-19  0:16 ` [PATCH 1/1] " Radu Rendec
2018-09-19 15:24   ` Sabrina Dubroca
2018-09-19 16:44     ` Radu Rendec
2018-10-01 12:52       ` Sabrina Dubroca
2018-10-28 21:14         ` Radu Rendec

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.