mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-04 21:47:18 +08:00
Enable the Cadence cgem device syctls.
This commit is contained in:
parent
591bd2d9c7
commit
ace5fb657c
@ -1529,7 +1529,6 @@ cgem_mediachange(struct cgem_softc *sc, struct mii_data *mii)
|
|||||||
static void
|
static void
|
||||||
cgem_add_sysctls(device_t dev)
|
cgem_add_sysctls(device_t dev)
|
||||||
{
|
{
|
||||||
#ifndef __rtems__
|
|
||||||
struct cgem_softc *sc = device_get_softc(dev);
|
struct cgem_softc *sc = device_get_softc(dev);
|
||||||
struct sysctl_ctx_list *ctx;
|
struct sysctl_ctx_list *ctx;
|
||||||
struct sysctl_oid_list *child;
|
struct sysctl_oid_list *child;
|
||||||
@ -1702,7 +1701,6 @@ cgem_add_sysctls(device_t dev)
|
|||||||
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_udp_csum_errs",
|
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "rx_frames_udp_csum_errs",
|
||||||
CTLFLAG_RD, &sc->stats.rx_udp_csum_errs, 0,
|
CTLFLAG_RD, &sc->stats.rx_udp_csum_errs, 0,
|
||||||
"Number frames received with UDP checksum errors");
|
"Number frames received with UDP checksum errors");
|
||||||
#endif /* __rtems__ */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user