[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151021173153.0aac826e@xeon-e3>
Date: Wed, 21 Oct 2015 17:31:53 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Michael Chan <mchan@...adcom.com>
Cc: <davem@...emloft.net>, <prashant@...adcom.com>,
<eddie.wai@...adcom.com>, <huangjw@...adcom.com>,
<netdev@...r.kernel.org>
Subject: Re: [PATCH net-next v4] bnxt_en: New Broadcom ethernet driver.
On Wed, 21 Oct 2015 03:45:08 -0400
Michael Chan <mchan@...adcom.com> wrote:
> +static inline void bnxt_enable_poll(struct bnxt_napi *bnapi)
> +{
> +#ifdef CONFIG_NET_RX_BUSY_POLL
> + atomic_set(&bnapi->poll_state, BNXT_STATE_IDLE);
> +#endif
> +}
We need a better way to abstract this and get the #ifdef
clutter out of the network drivers.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists