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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 2 May 2007 08:15:23 -0700 (PDT)
From:	Mithlesh Thukral <mithlesh@...xen.com>
To:	netdev mailing list <netdev@...r.kernel.org>
cc:	Jeff Garzik <jeff@...zik.org>, netxenproj@...syssoft.com,
	rob@...xen.com
Subject: [PATCH 1/2] NetXen: Fix NetXen driver initialization on system-P

NetXen: Fix for driver on System-p
This patch will fix an initialization and ping issue on system-p.

Signed-off by: Milan Bag <mbag@...xen.com>
Signed-off by: Adhiraj Joshi <adhiraj@...xen.com>
Acked-by: Mithlesh Thukral <mithlesh@...xen.com>

---

  drivers/net/netxen/netxen_nic_init.c |    2 +-
  drivers/net/netxen/netxen_nic_main.c |    3 ++-
  2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c
index cf0e96a..a368924 100644
--- a/drivers/net/netxen/netxen_nic_init.c
+++ b/drivers/net/netxen/netxen_nic_init.c
@@ -1216,7 +1216,7 @@ u32 netxen_process_rcv_ring(struct netxe
  		/* Window = 1 */
  		writel(consumer,
  		       NETXEN_CRB_NORMALIZE(adapter,
-					    recv_crb_registers[ctxid].
+					    recv_crb_registers[adapter->portnum].
  					    crb_rcv_status_consumer));
  	}

diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 4e32bb6..e69c706 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -193,12 +193,13 @@ netxen_nic_probe(struct pci_dev *pdev, c
  	int pci_func_id = PCI_FUNC(pdev->devfn);

  	printk(KERN_INFO "%s \n", netxen_nic_driver_string);
-
+#ifndef CONFIG_PPC
  	if (pdev->class != 0x020000) {
  		printk(KERN_ERR"NetXen function %d, class %x will not"
  				"be enabled.\n",pci_func_id, pdev->class);
  		return -ENODEV;
  	}
+#endif
  	if ((err = pci_enable_device(pdev)))
  		return err;
  	if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) {
-
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