[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5101330F.3030702@openwrt.org>
Date: Thu, 24 Jan 2013 14:11:43 +0100
From: Florian Fainelli <florian@...nwrt.org>
To: Frank Li <Frank.Li@...escale.com>
CC: lznuaa@...il.com, shawn.guo@...aro.org, B38611@...escale.com,
davem@...emloft.net, linux-arm-kernel@...ts.infradead.org,
netdev@...r.kernel.org, s.hauer@...gutronix.de
Subject: Re: [PATCH v2 1/1 net-next] net: fec: add napi support to improve
proformance
On 01/24/2013 08:58 AM, Frank Li wrote:
65,6 +566,20 @@ fec_timeout(struct net_device *ndev)
> }
>
> static void
> +fec_enet_rx_int_is_enabled(struct net_device *ndev, bool enabled)
> +{
> + struct fec_enet_private *fep = netdev_priv(ndev);
> + uint int_events;
> +
> + int_events = readl(fep->hwp + FEC_IMASK);
> + if (enabled)
> + int_events |= FEC_ENET_RXF;
> + else
> + int_events &= ~FEC_ENET_RXF;
> + writel(int_events, fep->hwp + FEC_IMASK);
> +}
This function is badly named with respect to what it does. A better name
would be fec_enet_rx_interrupt_set() for instance.
--
Florian
--
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