You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/09/13 16:03:14 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 opened a new issue #1775: the net monitor shouldn't tightly couple with the ethernet hardware
xiaoxiang781216 opened a new issue #1775:
URL: https://github.com/apache/incubator-nuttx/issues/1775
netinit_monitor(https://github.com/apache/incubator-nuttx-apps/blob/master/netutils/netinit/netinit.c#L571) interact with the kernel through the follow IOCTL:
```
/* MDIO/MCD *****************************************************************/
#define SIOCMIINOTIFY _SIOC(0x0023) /* Receive notificaion via signal on
* PHY state change */
#define SIOCGMIIPHY _SIOC(0x0024) /* Get address of MII PHY in use */
#define SIOCGMIIREG _SIOC(0x0025) /* Get a MII register via MDIO */
#define SIOCSMIIREG _SIOC(0x0026) /* Set a MII register via MDIO */
```
which expose MII/GMII register defintion directly to userspace and then can't work with:
1.Ethernet card which don't follow the MII/GMII defintion
2.Other wireless technology(e.g. WiFi and 802.15.4)
Since the netlink is now part of the network stack, it's better to redesign the notification mechanism to utilize netlink socket and generalize it to cover all possible MAC layer.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org