* [PATCH 1/1] be2net: add two new pci device ids to pci device table
@ 2009-05-14 6:51 Ajit Khaparde
2009-05-18 4:10 ` David Miller
0 siblings, 1 reply; 7+ messages in thread
From: Ajit Khaparde @ 2009-05-14 6:51 UTC (permalink / raw)
To: David Miller; +Cc: netdev, Ajit Khaparde
Hi,
This patch adds two new PCI Device IDs to the pci device table.
Please apply this patch to the net-2.6 tree.
Thanks
Ajit
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
----
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h
index c49ddd0..b4bb06f 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -35,8 +35,22 @@
#define DRV_VER "2.0.348"
#define DRV_NAME "be2net"
#define BE_NAME "ServerEngines BladeEngine2 10Gbps NIC"
+#define OC_NAME "Emulex OneConnect 10Gbps NIC"
#define DRV_DESC BE_NAME "Driver"
+#define BE_VENDOR_ID 0x19a2
+#define BE_DEVICE_ID1 0x211
+#define OC_DEVICE_ID1 0x700
+#define OC_DEVICE_ID2 0x701
+
+static inline char *nic_name(struct pci_dev *pdev)
+{
+ if (pdev->device == OC_DEVICE_ID1 || pdev->device == OC_DEVICE_ID2)
+ return OC_NAME;
+ else
+ return BE_NAME;
+}
+
/* Number of bytes of an RX frame that are copied to skb->data */
#define BE_HDR_LEN 64
#define BE_MAX_JUMBO_FRAME_SIZE 9018
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 9b75aa6..cf75905 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -28,10 +28,10 @@ static unsigned int rx_frag_size = 2048;
module_param(rx_frag_size, uint, S_IRUGO);
MODULE_PARM_DESC(rx_frag_size, "Size of a fragment that holds rcvd data.");
-#define BE_VENDOR_ID 0x19a2
-#define BE2_DEVICE_ID_1 0x0211
static DEFINE_PCI_DEVICE_TABLE(be_dev_ids) = {
- { PCI_DEVICE(BE_VENDOR_ID, BE2_DEVICE_ID_1) },
+ { PCI_DEVICE(BE_VENDOR_ID, BE_DEVICE_ID1) },
+ { PCI_DEVICE(BE_VENDOR_ID, OC_DEVICE_ID1) },
+ { PCI_DEVICE(BE_VENDOR_ID, OC_DEVICE_ID2) },
{ 0 }
};
MODULE_DEVICE_TABLE(pci, be_dev_ids);
@@ -1859,7 +1859,7 @@ static int __devinit be_probe(struct pci_dev *pdev,
if (status != 0)
goto stats_clean;
- dev_info(&pdev->dev, BE_NAME " port %d\n", adapter->port_num);
+ dev_info(&pdev->dev, "%s port %d\n", nic_name(pdev), adapter->port_num);
return 0;
stats_clean:
@@ -1873,7 +1873,7 @@ rel_reg:
disable_dev:
pci_disable_device(pdev);
do_none:
- dev_warn(&pdev->dev, BE_NAME " initialization failed\n");
+ dev_err(&pdev->dev, "%s initialization failed\n", nic_name(pdev));
return status;
}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] be2net: add two new pci device ids to pci device table
2009-05-14 6:51 [PATCH 1/1] be2net: add two new pci device ids to pci device table Ajit Khaparde
@ 2009-05-18 4:10 ` David Miller
2009-05-18 10:08 ` Ajit Khaparde
0 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2009-05-18 4:10 UTC (permalink / raw)
To: ajitk; +Cc: netdev
From: Ajit Khaparde <ajitk@serverengines.com>
Date: Thu, 14 May 2009 12:21:20 +0530
> This patch adds two new PCI Device IDs to the pci device table.
> Please apply this patch to the net-2.6 tree.
>
> Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
This patch does not apply to any current tree.
Please respin your patch against net-next-2.6, thanks!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] be2net: add two new pci device ids to pci device table
2009-05-18 4:10 ` David Miller
@ 2009-05-18 10:08 ` Ajit Khaparde
2009-05-18 18:43 ` David Miller
0 siblings, 1 reply; 7+ messages in thread
From: Ajit Khaparde @ 2009-05-18 10:08 UTC (permalink / raw)
To: David Miller; +Cc: netdev
David,
Was there a problem with the patch in applying it to the net-2.6 tree?
If yes, then I will respin another patch.
What is the timeline for the patches applied to net-next-2.6 to get into
the upstream tree?
Thanks
Ajit
On 17/05/09 21:10 -0700, David Miller wrote:
> From: Ajit Khaparde <ajitk@serverengines.com>
> Date: Thu, 14 May 2009 12:21:20 +0530
>
> > This patch adds two new PCI Device IDs to the pci device table.
> > Please apply this patch to the net-2.6 tree.
> >
> > Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
>
> This patch does not apply to any current tree.
>
> Please respin your patch against net-next-2.6, thanks!
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] be2net: add two new pci device ids to pci device table
2009-05-18 10:08 ` Ajit Khaparde
@ 2009-05-18 18:43 ` David Miller
2009-05-18 22:33 ` Ajit Khaparde
0 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2009-05-18 18:43 UTC (permalink / raw)
To: ajitk; +Cc: netdev
From: Ajit Khaparde <ajitk@serverengines.com>
Date: Mon, 18 May 2009 15:38:09 +0530
> Was there a problem with the patch in applying it to the net-2.6 tree?
> If yes, then I will respin another patch.
I tried both the net-next-2.6 and the net-2.6 tree, it failed
to apply to both.
> What is the timeline for the patches applied to net-next-2.6 to get into
> the upstream tree?
They will show up in 2.6.31
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] be2net: add two new pci device ids to pci device table
2009-05-18 18:43 ` David Miller
@ 2009-05-18 22:33 ` Ajit Khaparde
2009-05-18 22:38 ` David Miller
0 siblings, 1 reply; 7+ messages in thread
From: Ajit Khaparde @ 2009-05-18 22:33 UTC (permalink / raw)
To: David Miller; +Cc: netdev
David, thanks for the reply. There is a slight sense of urgency to see this
patch in the upstream kernel. Hence I am sending this patch which I have
spun again - against the net-2.6 tree. Please accept. I hope it applies this
time.
Thanks
Ajit
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
---
drivers/net/benet/be.h | 14 ++++++++++++++
drivers/net/benet/be_main.c | 10 +++++-----
2 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h
index c49ddd0..b4bb06f 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -35,8 +35,22 @@
#define DRV_VER "2.0.348"
#define DRV_NAME "be2net"
#define BE_NAME "ServerEngines BladeEngine2 10Gbps NIC"
+#define OC_NAME "Emulex OneConnect 10Gbps NIC"
#define DRV_DESC BE_NAME "Driver"
+#define BE_VENDOR_ID 0x19a2
+#define BE_DEVICE_ID1 0x211
+#define OC_DEVICE_ID1 0x700
+#define OC_DEVICE_ID2 0x701
+
+static inline char *nic_name(struct pci_dev *pdev)
+{
+ if (pdev->device == OC_DEVICE_ID1 || pdev->device == OC_DEVICE_ID2)
+ return OC_NAME;
+ else
+ return BE_NAME;
+}
+
/* Number of bytes of an RX frame that are copied to skb->data */
#define BE_HDR_LEN 64
#define BE_MAX_JUMBO_FRAME_SIZE 9018
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 30d0c81..5c378b5 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -28,10 +28,10 @@ static unsigned int rx_frag_size = 2048;
module_param(rx_frag_size, uint, S_IRUGO);
MODULE_PARM_DESC(rx_frag_size, "Size of a fragment that holds rcvd data.");
-#define BE_VENDOR_ID 0x19a2
-#define BE2_DEVICE_ID_1 0x0211
static DEFINE_PCI_DEVICE_TABLE(be_dev_ids) = {
- { PCI_DEVICE(BE_VENDOR_ID, BE2_DEVICE_ID_1) },
+ { PCI_DEVICE(BE_VENDOR_ID, BE_DEVICE_ID1) },
+ { PCI_DEVICE(BE_VENDOR_ID, OC_DEVICE_ID1) },
+ { PCI_DEVICE(BE_VENDOR_ID, OC_DEVICE_ID2) },
{ 0 }
};
MODULE_DEVICE_TABLE(pci, be_dev_ids);
@@ -1859,7 +1859,7 @@ static int __devinit be_probe(struct pci_dev *pdev,
if (status != 0)
goto stats_clean;
- dev_info(&pdev->dev, BE_NAME " port %d\n", adapter->port_num);
+ dev_info(&pdev->dev, "%s port %d\n", nic_name(pdev), adapter->port_num);
return 0;
stats_clean:
@@ -1873,7 +1873,7 @@ rel_reg:
disable_dev:
pci_disable_device(pdev);
do_none:
- dev_warn(&pdev->dev, BE_NAME " initialization failed\n");
+ dev_err(&pdev->dev, "%s initialization failed\n", nic_name(pdev));
return status;
}
--
1.5.4.3
--------------
On 18/05/09 11:43 -0700, David Miller wrote:
> From: Ajit Khaparde <ajitk@serverengines.com>
> Date: Mon, 18 May 2009 15:38:09 +0530
>
> > Was there a problem with the patch in applying it to the net-2.6 tree?
> > If yes, then I will respin another patch.
>
> I tried both the net-next-2.6 and the net-2.6 tree, it failed
> to apply to both.
>
> > What is the timeline for the patches applied to net-next-2.6 to get into
> > the upstream tree?
>
> They will show up in 2.6.31
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] be2net: add two new pci device ids to pci device table
2009-05-18 22:33 ` Ajit Khaparde
@ 2009-05-18 22:38 ` David Miller
2009-05-19 1:22 ` Ajit Khaparde
0 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2009-05-18 22:38 UTC (permalink / raw)
To: ajitk; +Cc: netdev
From: Ajit Khaparde <ajitk@serverengines.com>
Date: Tue, 19 May 2009 04:03:46 +0530
> David, thanks for the reply. There is a slight sense of urgency to see this
> patch in the upstream kernel. Hence I am sending this patch which I have
> spun again - against the net-2.6 tree. Please accept. I hope it applies this
> time.
I'll apply this to net-2.6 sure, but I wasn't saying this
patch didn't apply correctly.
I was talking about the patch that moved the NAPI stuff out the TX
work stuff in this driver. That's the patch that wouldn't apply
correctly.
This one:
http://patchwork.ozlabs.org/patch/27312/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] be2net: add two new pci device ids to pci device table
2009-05-18 22:38 ` David Miller
@ 2009-05-19 1:22 ` Ajit Khaparde
0 siblings, 0 replies; 7+ messages in thread
From: Ajit Khaparde @ 2009-05-19 1:22 UTC (permalink / raw)
To: David Miller; +Cc: netdev
Thanks David. I will check the other patch.
On 18/05/09 15:38 -0700, David Miller wrote:
> From: Ajit Khaparde <ajitk@serverengines.com>
> Date: Tue, 19 May 2009 04:03:46 +0530
>
> > David, thanks for the reply. There is a slight sense of urgency to see this
> > patch in the upstream kernel. Hence I am sending this patch which I have
> > spun again - against the net-2.6 tree. Please accept. I hope it applies this
> > time.
>
> I'll apply this to net-2.6 sure, but I wasn't saying this
> patch didn't apply correctly.
>
> I was talking about the patch that moved the NAPI stuff out the TX
> work stuff in this driver. That's the patch that wouldn't apply
> correctly.
>
> This one:
>
> http://patchwork.ozlabs.org/patch/27312/
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-05-19 1:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14 6:51 [PATCH 1/1] be2net: add two new pci device ids to pci device table Ajit Khaparde
2009-05-18 4:10 ` David Miller
2009-05-18 10:08 ` Ajit Khaparde
2009-05-18 18:43 ` David Miller
2009-05-18 22:33 ` Ajit Khaparde
2009-05-18 22:38 ` David Miller
2009-05-19 1:22 ` Ajit Khaparde
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).