mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-01 20:26:33 +08:00
if_cgem: Disable device sysctls
This commit is contained in:
parent
14ecf75d26
commit
4ff97c8858
@ -1452,6 +1452,7 @@ cgem_mediachange(struct cgem_softc *sc, struct mii_data *mii)
|
||||
static void
|
||||
cgem_add_sysctls(device_t dev)
|
||||
{
|
||||
#ifndef __rtems__
|
||||
struct cgem_softc *sc = device_get_softc(dev);
|
||||
struct sysctl_ctx_list *ctx;
|
||||
struct sysctl_oid_list *child;
|
||||
@ -1624,6 +1625,7 @@ cgem_add_sysctls(device_t dev)
|
||||
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_udp_csum_errs",
|
||||
CTLFLAG_RD, &sc->stats.rx_udp_csum_errs, 0,
|
||||
"Number frames received with UDP checksum errors");
|
||||
#endif /* __rtems__ */
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user