* [PATCH 1/4] netxen: fix portnum for hp mezz cards
@ 2008-06-16 5:59 Dhananjay Phadke
2008-06-18 3:25 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Dhananjay Phadke @ 2008-06-16 5:59 UTC (permalink / raw)
To: netdev; +Cc: jeff
This fixes a the issue where logical port number is set incorrectly
for HP blade mezz cards.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
---
drivers/net/netxen/netxen_nic_main.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 7144c25..5a2fd21 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -530,9 +530,15 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
netxen_initialize_adapter_sw(adapter); /* initialize the buffers in adapter */
/* Mezz cards have PCI function 0,2,3 enabled */
- if ((adapter->ahw.boardcfg.board_type == NETXEN_BRDTYPE_P2_SB31_10G_IMEZ)
- && (pci_func_id >= 2))
+ switch (adapter->ahw.boardcfg.board_type) {
+ case NETXEN_BRDTYPE_P2_SB31_10G_IMEZ:
+ case NETXEN_BRDTYPE_P2_SB31_10G_HMEZ:
+ if (pci_func_id >= 2)
adapter->portnum = pci_func_id - 2;
+ break;
+ default:
+ break;
+ }
#ifdef CONFIG_IA64
if(adapter->portnum == 0) {
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/4] netxen: fix portnum for hp mezz cards
2008-06-16 5:59 [PATCH 1/4] netxen: fix portnum for hp mezz cards Dhananjay Phadke
@ 2008-06-18 3:25 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2008-06-18 3:25 UTC (permalink / raw)
To: Dhananjay Phadke; +Cc: netdev
Dhananjay Phadke wrote:
> This fixes a the issue where logical port number is set incorrectly
> for HP blade mezz cards.
>
> Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
> ---
> drivers/net/netxen/netxen_nic_main.c | 10 ++++++++--
> 1 files changed, 8 insertions(+), 2 deletions(-)
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-18 3:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 5:59 [PATCH 1/4] netxen: fix portnum for hp mezz cards Dhananjay Phadke
2008-06-18 3:25 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).