lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080925184509.42bfabc2@osprey.hogchain.net>
Date:	Thu, 25 Sep 2008 18:45:09 -0500
From:	Jay Cliburn <jacliburn@...lsouth.net>
To:	Kevin Hao <kexin.hao@...driver.com>
Cc:	Jeff Garzik <jgarzik@...hat.com>, Chris Snook <csnook@...hat.com>,
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: add net poll support for atl2 driver

On Sat, 20 Sep 2008 15:56:44 +0800
Kevin Hao <kexin.hao@...driver.com> wrote:

> Add netconsole support for Atheros L2 10/100 network device.
> 
> Signed-off-by: Kevin Hao <kexin.hao@...driver.com>
> ---
>  drivers/net/atlx/atl2.c |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c
> index d548a67..b2995ac 100644
> --- a/drivers/net/atlx/atl2.c
> +++ b/drivers/net/atlx/atl2.c
> @@ -1327,6 +1327,15 @@ static void atl2_setup_pcicmd(struct pci_dev
> *pdev) pci_write_config_dword(pdev, REG_PM_CTRLSTAT, 0);
>  }
>  
> +#ifdef CONFIG_NET_POLL_CONTROLLER
> +static void atl2_poll_controller(struct net_device *netdev)
> +{
> +	disable_irq(netdev->irq);
> +	atl2_intr(netdev->irq, netdev);
> +	enable_irq(netdev->irq);
> +}
> +#endif
> +
>  /*
>   * atl2_probe - Device Initialization Routine
>   * @pdev: PCI device information struct
> @@ -1410,6 +1419,9 @@ static int __devinit atl2_probe(struct pci_dev
> *pdev, netdev->do_ioctl = &atl2_ioctl;
>  	atl2_set_ethtool_ops(netdev);
>  
> +#ifdef CONFIG_NET_POLL_CONTROLLER
> +	netdev->poll_controller = atl2_poll_controller;
> +#endif
>  #ifdef HAVE_TX_TIMEOUT
>  	netdev->tx_timeout = &atl2_tx_timeout;
>  	netdev->watchdog_timeo = 5 * HZ;

Acked-by: Jay Cliburn <jacliburn@...lsouth.net>
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ