It is not useful at all.
static void emx_start(struct ifnet *);
#ifdef IFPOLL_ENABLE
static void emx_npoll(struct ifnet *, struct ifpoll_info *);
+static void emx_npoll_status(struct ifnet *);
+static void emx_npoll_tx(struct ifnet *, void *, int);
+static void emx_npoll_rx(struct ifnet *, void *, int);
#endif
static void emx_watchdog(struct ifnet *);
static void emx_media_status(struct ifnet *, struct ifmediareq *);
#ifdef IFPOLL_ENABLE
static void
-emx_npoll_status(struct ifnet *ifp, int pollhz __unused)
+emx_npoll_status(struct ifnet *ifp)
{
struct emx_softc *sc = ifp->if_softc;
uint32_t reg_icr;
static void igb_npoll(struct ifnet *, struct ifpoll_info *);
static void igb_npoll_rx(struct ifnet *, void *, int);
static void igb_npoll_tx(struct ifnet *, void *, int);
-static void igb_npoll_status(struct ifnet *, int);
+static void igb_npoll_status(struct ifnet *);
#endif
static void igb_serialize(struct ifnet *, enum ifnet_serialize);
static void igb_deserialize(struct ifnet *, enum ifnet_serialize);
#ifdef IFPOLL_ENABLE
static void
-igb_npoll_status(struct ifnet *ifp, int pollhz __unused)
+igb_npoll_status(struct ifnet *ifp)
{
struct igb_softc *sc = ifp->if_softc;
uint32_t reg_icr;
static int jme_mediachange(struct ifnet *);
#ifdef IFPOLL_ENABLE
static void jme_npoll(struct ifnet *, struct ifpoll_info *);
-static void jme_npoll_status(struct ifnet *, int);
+static void jme_npoll_status(struct ifnet *);
static void jme_npoll_rx(struct ifnet *, void *, int);
static void jme_npoll_tx(struct ifnet *, void *, int);
#endif
#ifdef IFPOLL_ENABLE
static void
-jme_npoll_status(struct ifnet *ifp, int pollhz __unused)
+jme_npoll_status(struct ifnet *ifp)
{
struct jme_softc *sc = ifp->if_softc;
uint32_t status;
struct stpoll_ctx {
struct netmsg_base poll_netmsg;
- int pollhz;
-
uint32_t poll_handlers; /* next free entry in pr[]. */
struct stpoll_rec pr[IFPOLL_LIST_LEN];
struct stpoll_ctx *st_ctx = &stpoll_context;
const struct poll_comm *comm = poll_common[0];
- st_ctx->pollhz = comm->pollhz / (comm->poll_stfrac + 1);
-
sysctl_ctx_init(&st_ctx->poll_sysctl_ctx);
st_ctx->poll_sysctl_tree = SYSCTL_ADD_NODE(&st_ctx->poll_sysctl_ctx,
SYSCTL_CHILDREN(comm->sysctl_tree),
if ((ifp->if_flags & (IFF_RUNNING | IFF_NPOLLING)) ==
(IFF_RUNNING | IFF_NPOLLING))
- rec->status_func(ifp, st_ctx->pollhz);
+ rec->status_func(ifp);
lwkt_serialize_exit(rec->serializer);
}
rxpoll_context[mycpuid]->pollhz = comm->pollhz;
txpoll_context[mycpuid]->pollhz =
comm->pollhz / (comm->poll_txfrac + 1);
- if (mycpuid == 0)
- stpoll_context.pollhz = comm->pollhz / (comm->poll_stfrac + 1);
/*
* Adjust polling frequency
struct ifnet;
typedef void (*ifpoll_iofn_t)(struct ifnet *, void *, int);
-typedef void (*ifpoll_stfn_t)(struct ifnet *, int);
+typedef void (*ifpoll_stfn_t)(struct ifnet *);
struct ifpoll_status {
struct lwkt_serialize *serializer;