* [PATCH net 0/2] qlcnic: Bug fixes
@ 2013-10-25 14:38 Shahed Shaikh
2013-10-26 4:05 ` David Miller
0 siblings, 1 reply; 11+ messages in thread
From: Shahed Shaikh @ 2013-10-25 14:38 UTC (permalink / raw)
To: davem; +Cc: netdev, Dept_NX_Linux_NIC_Driver, Shahed Shaikh
From: Shahed Shaikh <shahed.shaikh@qlogic.com>
This patch series contains following fixes-
* Performace drop because driver was forcing adapter not to check
destination IP for LRO.
* driver was not issuing qlcnic_fw_cmd_set_drv_version() to 83xx adapter
becasue of improper handling of QLCNIC_FW_CAPABILITY_MORE_CAPS bit.
Please apply to net.
Thanks,
Shahed
Shahed Shaikh (2):
qlcnic: Do not force adapter to perform LRO without destination IP
check
qlcnic: Do not read QLCNIC_FW_CAPABILITY_MORE_CAPS bit for 83xx
adapter
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 6 +++---
drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c | 7 ++-----
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 6 ++++--
3 files changed, 9 insertions(+), 10 deletions(-)
--
1.8.1.4
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net 0/2] qlcnic: Bug fixes
2013-10-25 14:38 Shahed Shaikh
@ 2013-10-26 4:05 ` David Miller
2013-10-30 6:44 ` Shahed Shaikh
0 siblings, 1 reply; 11+ messages in thread
From: David Miller @ 2013-10-26 4:05 UTC (permalink / raw)
To: shahed.shaikh; +Cc: netdev, Dept_NX_Linux_NIC_Driver
From: Shahed Shaikh <shahed.shaikh@qlogic.com>
Date: Fri, 25 Oct 2013 10:38:35 -0400
> From: Shahed Shaikh <shahed.shaikh@qlogic.com>
>
> This patch series contains following fixes-
> * Performace drop because driver was forcing adapter not to check
> destination IP for LRO.
> * driver was not issuing qlcnic_fw_cmd_set_drv_version() to 83xx adapter
> becasue of improper handling of QLCNIC_FW_CAPABILITY_MORE_CAPS bit.
>
> Please apply to net.
Applied, what exactly does that destination IP check do?
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [PATCH net 0/2] qlcnic: Bug fixes
2013-10-26 4:05 ` David Miller
@ 2013-10-30 6:44 ` Shahed Shaikh
0 siblings, 0 replies; 11+ messages in thread
From: Shahed Shaikh @ 2013-10-30 6:44 UTC (permalink / raw)
To: David Miller; +Cc: netdev, Dept-NX Linux NIC Driver
> -----Original Message-----
> From: David Miller [mailto:davem@davemloft.net]
> Sent: Saturday, October 26, 2013 9:36 AM
> To: Shahed Shaikh
> Cc: netdev; Dept-NX Linux NIC Driver
> Subject: Re: [PATCH net 0/2] qlcnic: Bug fixes
>
> From: Shahed Shaikh <shahed.shaikh@qlogic.com>
> Date: Fri, 25 Oct 2013 10:38:35 -0400
>
> > From: Shahed Shaikh <shahed.shaikh@qlogic.com>
> >
> > This patch series contains following fixes-
> > * Performace drop because driver was forcing adapter not to check
> > destination IP for LRO.
> > * driver was not issuing qlcnic_fw_cmd_set_drv_version() to 83xx adapter
> > becasue of improper handling of QLCNIC_FW_CAPABILITY_MORE_CAPS
> bit.
> >
> > Please apply to net.
>
> Applied, what exactly does that destination IP check do?
When a destination IP is programmed, adapter will perform LRO only on TCP packets destined to the programmed IP address.
When the adapter is programmed to skip destination IP check, adapter performs LRO on TCP packets destined to all IP addresses.
Thanks,
Shahed
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH net 0/2] qlcnic: Bug fixes
@ 2014-01-09 17:41 Shahed Shaikh
2014-01-10 18:26 ` David Miller
0 siblings, 1 reply; 11+ messages in thread
From: Shahed Shaikh @ 2014-01-09 17:41 UTC (permalink / raw)
To: davem; +Cc: netdev, Dept_NX_Linux_NIC_Driver, Shahed Shaikh
From: Shahed Shaikh <shahed.shaikh@qlogic.com>
Hi David,
This patch series has couple of bug fixes related to statistics.
Please apply this series to net.
Thanks,
Shahed
Manish Chopra (1):
qlcnic: Fix bug in TX statistics
Shahed Shaikh (1):
qlcnic: Fix ethtool statistics length calculation
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | 1 +
.../net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 41 ++++++++++++----------
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 3 ++
3 files changed, 26 insertions(+), 19 deletions(-)
--
1.8.1.4
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net 0/2] qlcnic: Bug fixes
2014-01-09 17:41 Shahed Shaikh
@ 2014-01-10 18:26 ` David Miller
0 siblings, 0 replies; 11+ messages in thread
From: David Miller @ 2014-01-10 18:26 UTC (permalink / raw)
To: shahed.shaikh; +Cc: netdev, Dept_NX_Linux_NIC_Driver
From: Shahed Shaikh <shahed.shaikh@qlogic.com>
Date: Thu, 9 Jan 2014 12:41:03 -0500
> This patch series has couple of bug fixes related to statistics.
>
> Please apply this series to net.
Series applied, thank you.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH net 0/2] qlcnic: Bug fixes
@ 2014-04-23 13:59 Shahed Shaikh
2014-04-23 13:59 ` [PATCH net 1/2] qlcnic: Reset firmware API lock at driver load time Shahed Shaikh
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Shahed Shaikh @ 2014-04-23 13:59 UTC (permalink / raw)
To: davem; +Cc: netdev, Dept-HSGLinuxNICDev, Shahed Shaikh
From: Shahed Shaikh <shahed.shaikh@qlogic.com>
Hi David,
This patch series contains following fixes -
* Fix memory leak caused because of issuing mailbox
command which can not wait for its completion.
* Reset firmware API lock which might be in inconsistent state.
Please apply this series to net.
Thanks,
Shahed
Rajesh Borundia (1):
qlcnic: Fix memory leak.
Sony Chacko (1):
qlcnic: Reset firmware API lock at driver load time
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 9 +++++++++
.../ethernet/qlogic/qlcnic/qlcnic_sriov_common.c | 9 ++++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH net 1/2] qlcnic: Reset firmware API lock at driver load time
2014-04-23 13:59 [PATCH net 0/2] qlcnic: Bug fixes Shahed Shaikh
@ 2014-04-23 13:59 ` Shahed Shaikh
2014-04-23 13:59 ` [PATCH net 2/2] qlcnic: Fix memory leak Shahed Shaikh
2014-04-24 17:31 ` [PATCH net 0/2] qlcnic: Bug fixes David Miller
2 siblings, 0 replies; 11+ messages in thread
From: Shahed Shaikh @ 2014-04-23 13:59 UTC (permalink / raw)
To: davem; +Cc: netdev, Dept-HSGLinuxNICDev, Sony Chacko
From: Sony Chacko <sony.chacko@qlogic.com>
Some firmware versions fails to reset the lock during
initialization. Force reset firmware API lock during driver
probe to ensure lock availability.
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
---
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index dbf7539..0bc9148 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
@@ -2374,6 +2374,14 @@ void qlcnic_set_drv_version(struct qlcnic_adapter *adapter)
qlcnic_fw_cmd_set_drv_version(adapter, fw_cmd);
}
+/* Reset firmware API lock */
+static void qlcnic_reset_api_lock(struct qlcnic_adapter *adapter)
+{
+ qlcnic_api_lock(adapter);
+ qlcnic_api_unlock(adapter);
+}
+
+
static int
qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
@@ -2476,6 +2484,7 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
if (qlcnic_82xx_check(adapter)) {
qlcnic_check_vf(adapter, ent);
adapter->portnum = adapter->ahw->pci_func;
+ qlcnic_reset_api_lock(adapter);
err = qlcnic_start_firmware(adapter);
if (err) {
dev_err(&pdev->dev, "Loading fw failed.Please Reboot\n"
--
1.5.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH net 2/2] qlcnic: Fix memory leak.
2014-04-23 13:59 [PATCH net 0/2] qlcnic: Bug fixes Shahed Shaikh
2014-04-23 13:59 ` [PATCH net 1/2] qlcnic: Reset firmware API lock at driver load time Shahed Shaikh
@ 2014-04-23 13:59 ` Shahed Shaikh
2014-04-24 17:31 ` [PATCH net 0/2] qlcnic: Bug fixes David Miller
2 siblings, 0 replies; 11+ messages in thread
From: Shahed Shaikh @ 2014-04-23 13:59 UTC (permalink / raw)
To: davem; +Cc: netdev, Dept-HSGLinuxNICDev, Rajesh Borundia
From: Rajesh Borundia <rajesh.borundia@qlogic.com>
o In case QLC_83XX_MBX_CMD_NO_WAIT command type the calling
function does not free the memory as it does not wait for
response. So free it when get a response from adapter after
sending the command.
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
---
.../ethernet/qlogic/qlcnic/qlcnic_sriov_common.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
index 0638c18..6afe9c1 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
@@ -1370,7 +1370,7 @@ static int qlcnic_sriov_issue_cmd(struct qlcnic_adapter *adapter,
rsp = qlcnic_sriov_alloc_bc_trans(&trans);
if (rsp)
- return rsp;
+ goto free_cmd;
rsp = qlcnic_sriov_prepare_bc_hdr(trans, cmd, seq, QLC_BC_COMMAND);
if (rsp)
@@ -1425,6 +1425,13 @@ err_out:
cleanup_transaction:
qlcnic_sriov_cleanup_transaction(trans);
+
+free_cmd:
+ if (cmd->type == QLC_83XX_MBX_CMD_NO_WAIT) {
+ qlcnic_free_mbx_args(cmd);
+ kfree(cmd);
+ }
+
return rsp;
}
--
1.5.6
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH net 0/2] qlcnic: Bug fixes
2014-04-23 13:59 [PATCH net 0/2] qlcnic: Bug fixes Shahed Shaikh
2014-04-23 13:59 ` [PATCH net 1/2] qlcnic: Reset firmware API lock at driver load time Shahed Shaikh
2014-04-23 13:59 ` [PATCH net 2/2] qlcnic: Fix memory leak Shahed Shaikh
@ 2014-04-24 17:31 ` David Miller
2 siblings, 0 replies; 11+ messages in thread
From: David Miller @ 2014-04-24 17:31 UTC (permalink / raw)
To: shahed.shaikh; +Cc: netdev, Dept-HSGLinuxNICDev
From: Shahed Shaikh <shahed.shaikh@qlogic.com>
Date: Wed, 23 Apr 2014 09:59:54 -0400
> This patch series contains following fixes -
>
> * Fix memory leak caused because of issuing mailbox
> command which can not wait for its completion.
> * Reset firmware API lock which might be in inconsistent state.
>
> Please apply this series to net.
Series applied, thanks.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH net 0/2] qlcnic: Bug fixes
@ 2014-10-14 11:41 Rajesh Borundia
2014-10-14 21:06 ` David Miller
0 siblings, 1 reply; 11+ messages in thread
From: Rajesh Borundia @ 2014-10-14 11:41 UTC (permalink / raw)
To: davem; +Cc: netdev, Dept-HSGLinuxNICDev
This series fixes following issues.
* We were programming maximum number of arguments supported by
adapter instead of required in a command.
* Destroy tx command requires three arguments instead of two.
Please apply these patches to net.
Thanks,
Rajesh
Rajesh Borundia (2):
qlcnic: Fix programming number of arguments in a command.
qlcnic: Fix number of arguments in destroy tx context command
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net 0/2] qlcnic: Bug fixes
2014-10-14 11:41 Rajesh Borundia
@ 2014-10-14 21:06 ` David Miller
0 siblings, 0 replies; 11+ messages in thread
From: David Miller @ 2014-10-14 21:06 UTC (permalink / raw)
To: rajesh.borundia; +Cc: netdev, Dept-HSGLinuxNICDev
From: Rajesh Borundia <rajesh.borundia@qlogic.com>
Date: Tue, 14 Oct 2014 07:41:44 -0400
> This series fixes following issues.
>
> * We were programming maximum number of arguments supported by
> adapter instead of required in a command.
> * Destroy tx command requires three arguments instead of two.
>
> Please apply these patches to net.
Series applied, thanks.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-10-14 21:06 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-23 13:59 [PATCH net 0/2] qlcnic: Bug fixes Shahed Shaikh
2014-04-23 13:59 ` [PATCH net 1/2] qlcnic: Reset firmware API lock at driver load time Shahed Shaikh
2014-04-23 13:59 ` [PATCH net 2/2] qlcnic: Fix memory leak Shahed Shaikh
2014-04-24 17:31 ` [PATCH net 0/2] qlcnic: Bug fixes David Miller
-- strict thread matches above, loose matches on Subject: below --
2014-10-14 11:41 Rajesh Borundia
2014-10-14 21:06 ` David Miller
2014-01-09 17:41 Shahed Shaikh
2014-01-10 18:26 ` David Miller
2013-10-25 14:38 Shahed Shaikh
2013-10-26 4:05 ` David Miller
2013-10-30 6:44 ` Shahed Shaikh
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).