Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 1/1] ixgbe: add fiber tranceiver plug/unplug notifier
@ 2016-06-14 13:43 zyjzyj2000
  2016-06-14 13:43 ` [PATCH " zyjzyj2000
  0 siblings, 1 reply; 10+ messages in thread
From: zyjzyj2000 @ 2016-06-14 13:43 UTC (permalink / raw)
  To: e1000-devel, netdev


Hi, all

When the fiber tranceiver is plugged/unplugged from the nic, there is no any notifiers to indicate this events now.
This events sometimes are needed by the userspace tools or kernel.

So, 

Is there any interrupt to indicate the unplug event?
If no interrupt, is there any method to notify the unplug event?

I made a new patch to send the notifier when the fiber tranceiver is plugged/unplugged.

This patch is based on the function ixgbe_sfp_detection_subtask.

When the fiber tranceiver is plugged/unplugged, the value in the register is changed, then
NETDEV_FIBER_TRANCEIVER_UNPLUG notifier is sent.

This patch can work well with the following steps:

1. boot the host
2. ip link set eth0 up
3. unplug the fiber tranceiver
4. a message NETDEV_FIBER_TRANCEIVER_UNPLUG is sent
5. plug the fiber tranceiver
6. a notifier NETDEV_FIBER_TRANCEIVER_PLUG is sent

Please comment on it.

Thanks a lot.
Zhu Yanjun

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

end of thread, other threads:[~2016-06-20  2:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-14 13:43 [PATCH net-next 1/1] ixgbe: add fiber tranceiver plug/unplug notifier zyjzyj2000
2016-06-14 13:43 ` [PATCH " zyjzyj2000
2016-06-14 13:55   ` zhuyj
2016-06-14 15:20     ` Skidmore, Donald C
2016-06-14 15:54       ` [E1000-devel] " Stephen Hemminger
2016-06-15 13:36       ` [PATCH net-next " zyjzyj2000
2016-06-15 13:36         ` [PATCH " zyjzyj2000
2016-06-16 10:43           ` zhuyj
2016-06-16 17:46             ` Skidmore, Donald C
2016-06-20  2:50               ` zhuyj

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