History log of /drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c
Revision Date Author Comments
3456399b031c4bd71b90521301c646b62dfd0caa 22-Sep-2014 Manish Chopra <manish.chopra@qlogic.com> qlcnic: Fix ordering of stats in stats buffer.

o When TX queues are not allocated, driver does not fill TX queues stats in the buffer.
However, it is also not advancing data pointer by TX queue stats length, which would
misplace all successive stats data in the buffer and will result in mismatch between
stats strings and it's values.

o Fix this by advancing data pointer by TX queue stats length when
queues are not allocated.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
6c0fd0df0c44d1129ab65fc28d17f23a1c006a0c 22-Sep-2014 Manish Chopra <manish.chopra@qlogic.com> qlcnic: Remove __QLCNIC_DEV_UP bit check to read TX queues statistics.

o TX queues stats must be read when queues are allocated regardless
of interface is up or not.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
c023030198b2b0fb87f5d9bcb388c41bfaf3c3c0 22-Sep-2014 Manish Chopra <manish.chopra@qlogic.com> qlcnic: Fix memory corruption while reading stats using ethtool.

o Driver is doing memset with zero for total number of stats bytes when
it has already filled some data in the stats buffer, which can overwrite
memory area beyond the length of stats buffer.

o Fix this by initializing stats buffer with zero before filling any data in it.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
a0eaf75c03712b491b7a840b5836c8f1e2a09277 04-Aug-2014 Rajesh Borundia <rajesh.borundia@qlogic.com> qlcnic: Fix update of ethtool stats.

o Aggregating tx stats in adapter variable was resulting in
an increase in stats even after no traffic was run and
user runs ifconfig/ethtool command.
o qlcnic_update_stats used to accumulate stats in adapter
struct at each function call, instead accumulate tx stats
in local variable and then assign it to adapter structure.

Reported-by: Holger Kiehl <holger.kiehl@dwd.de>
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
18e0d625336a7690dcb358e2f4157becfa65183b 11-Jun-2014 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Optimize ring count validations

- Check interrupt mode at the start of qlcnic_set_channels().
- Do not validate ring count if they are not going to change.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2b3d7b758c68775cdebd95787454d12e0b8247e7 21-Mar-2014 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Add VXLAN Rx offload support

This patch adds Rx checksum offload support for VXLAN.
Implements .ndo_{add|del}_vxlan_port netdev ops.
Adapter supports only one VXLAN port, so program adapter with
very first UDP port which VXLAN driver is listening to.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
381709de1582ed868161d37a1ad54ba110c4353c 21-Mar-2014 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Add VXLAN Tx offload support

This patch adds LSO, LSO6 and Tx checksum offload support for VXLAN
encapsulated packets on 83xx/84xx series adapters.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
225837a076b284ac408a3b0104584ae0ad117a0c 21-Feb-2014 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Re-factor firmware minidump template header handling

Treat firmware minidump template headers for 82xx and 83xx/84xx adapters separately,
as it may change for 82xx and 83xx/84xx adapter type independently.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
cb9327d567be71ae9248d1a9bbc9c274831f5b6a 23-Jan-2014 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Enhance logic to calculate msix vectors.

o Refactored MSI-x vector calculation for All adapters.
Decoupled logic in the code which was using same call to
request MSI-x vectors in default driver load, as well as
during set_channel() operation for TSS/RSS. This refactoring
simplifies code for TSS/RSS code path as well as probe path
of the driver load for all adapters.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
a514722afebc59cf9d98387ee4db81ee62154df0 23-Jan-2014 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Refactor interrupt coalescing code for all adapters.

o Refactor configuration of interrupt coalescing parameters for
all supported adapters.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21041400438ea816fa4ef1967fffa743e811f800 16-Jan-2014 stephen hemminger <stephen@networkplumber.org> qlcnic: make local functions static

Functions only used in one file should be static.
Found by running make namespacecheck

Compile tested only.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
d6e9c89a8d3cf0a5184badbcd50169179af27721 09-Jan-2014 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Fix ethtool statistics length calculation

o Consider number of Tx queues while calculating the length of
Tx statistics as part of ethtool stats.
o Calculate statistics lenght properly for 82xx and 83xx adapter

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1ac6762a0b8f5f2dc35ea869a08da25c68d7a8ba 09-Jan-2014 Manish Chopra <manish.chopra@qlogic.com> qlcnic: Fix bug in TX statistics

o Driver was not updating TX stats so it was not populating
statistics in `ifconfig` command output.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2f514c5260d18722d03305c5849a59c4a6e7dcaf 17-Dec-2013 Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> qlcnic: Support for 16 virtual NIC functions.

Extend virtual NIC functions from 8 to 16 for 84xx adapter.

Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
b17a44d8b86f48e34011b884a934231ae2928d66 16-Dec-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Fix TSS/RSS validation for 83xx/84xx series adapter.

o Current code was not allowing the user to configure more
than one Tx ring using ethtool for 83xx/84xx adapter.
This regression was introduced by commit id
18afc102fdcb95d6c7d57f2967a06f2f8fe3ba4c ("qlcnic: Enable
multiple Tx queue support for 83xx/84xx Series adapter.")

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
f9566265d7b44fea789072dcfa9a454e7e433af6 16-Dec-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Fix TSS/RSS ring validation logic.

o TSS/RSS ring validation does not take into account that either
of these ring values can be 0. This patch fixes this validation
and would fail set_channel operation if any of these ring value
is 0. This regression was added as part of commit id
34e8c406fda5b5a9d2e126a92bab84cd28e3b5fa ("qlcnic: refactor Tx/SDS
ring calculation and validation in driver.")

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
3bf517df0d99f1cf5d369c73ab68e0afe6a3c2f9 16-Dec-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Fix diagnostic test for all adapters.

o Driver should re-allocate all Tx queues after completing
diagnostic tests. This regression was added by commit id
c2c5e3a0681bb1945c0cb211a5f4baa22cb2cbb3 ("qlcnic: Enable
diagnostic test for multiple Tx queues.")

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
18afc102fdcb95d6c7d57f2967a06f2f8fe3ba4c 04-Nov-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Enable multiple Tx queue support for 83xx/84xx Series adapters.

o 83xx and 84xx firmware is capable of multiple Tx queues.
This patch will enable multiple Tx queues for 83xx/84xx
series adapters. Max number of Tx queues supported will be 8.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
34e8c406fda5b5a9d2e126a92bab84cd28e3b5fa 04-Nov-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: refactor Tx/SDS ring calculation and validation in driver.

o Current driver has duplicate code for validating user input
for changing Tx/SDS rings using set_channel ethtool interface.
This patch removes duplicate code and refactored Tx/SDS ring
validation for 82xx/83xx/84xx series adapter.
o Refactored code now calculates maximum Tx/Rx ring driver can
support based on Default, NPAR and SRIOV PF/VF mode of driver.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
f27c75b3903ab02bfe295aa58ad61ef5b756b065 04-Nov-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Enhance ethtool Statistics for Multiple Tx queue.

o Enhance ethtool statistics to display multiple Tx queue stats for
all supported adapters.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
78ea2d977a11b2435d733628463cf1274cf40531 04-Nov-2013 Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> qlcnic: Register netdev in FAILED state for 83xx/84xx

o Without failing probe, register netdev when device is in FAILED state.
o Device will come up with minimum functionality and allow diagnostics and
repair of the adapter.

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
66c562efbf35e98c42789f73cf39ad5f28abf6be 18-Oct-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Validate Tx queue only for 82xx adapters.

o validate Tx queue only in case of adapters which supports
multi Tx queue.

This patch is to fix regression introduced in commit
aa4a1f7df7cbb98797c9f4edfde3c726e2b3841f
"qlcnic: Enable Tx queue changes using ethtool for 82xx Series adapter"

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
710a1a498f22e10dc86c520dd04fb83a19b08771 18-Oct-2013 Pratik Pujar <pratik.pujar@qlogic.com> qlcnic: Enhance ethtool to display ring indices and interrupt mask

o Updated ethtool -d <ethX> option to display ring indices for Transmit(Tx),
Receive(Rx), and Status(St) rings.
o Updated ethtool -d <ethX> option to display ring interrupt mask for Transmit(Tx),
and Status(St) rings.

Signed-off-by: Pratik Pujar <pratik.pujar@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
6645161513b90823ddc787f5763d8dbea7d40c8c 27-Sep-2013 Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> qlcnic: Fix register device in FAILED state for 82xx.

o Commit 7e2cf4feba058476324dc545e3d1b316998c91e6
("qlcnic: change driver hardware interface mechanism")
has overwritten
commit b43e5ee76a4320c070cf0fe65cf4927198fbb4d1
("qlcnic: Register device in FAILED state")

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
3cc4a6784dfe26cd1aca55ef28b07eadbc09b960 02-Sep-2013 Dan Carpenter <dan.carpenter@oracle.com> qlcnic: remove a stray semicolon

Just remove a small semicolon.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
890b6e023bd7ff9b5fc89750d9ab2cd414fa302e 30-Aug-2013 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Store firmware dump state in CAMRAM register

-Use CAMRAM register to store firmware dump state in adapter
instead of maintaining it in each function driver separately.
-Return appropriate error code on failure

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
c2c5e3a0681bb1945c0cb211a5f4baa22cb2cbb3 21-Aug-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Enable diagnostic test for multiple Tx queues.

o Enable diagnostic test via ethtool and QConvergeConsole
application when Multiple Tx queues are enabled on 82xx
series adapters.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
aa4a1f7df7cbb98797c9f4edfde3c726e2b3841f 21-Aug-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Enable Tx queue changes using ethtool for 82xx Series adapter.

o using ethtool {set|get}_channel option, user can change number
of Tx queues for 82xx Series adapter.
o updated ethtool -S <ethX> option to display stats from each Tx queue.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
4bd8e7385961932d863ea976a67f384c3a8302cb 03-Aug-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Fix for flash update failure on 83xx adapter

Flash update routine was improperly checking register read API return value.
Modify register read API and perform proper error check.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
beb3d3a4d4830b1e090eedef0d0d7870639f09e0 03-Aug-2013 Rajesh Borundia <rajesh.borundia@qlogic.com> qlcnic: Fix link speed display for 82xx adapter

o Do not obtain link speed from register when adapter
link is down.

Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2e3ea7e763f2ce33bbede1cd5cb8d4cd60f3e11a 03-Aug-2013 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Fix external loopback test.

Driver was not handling external loopback diagnostic
test request.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
b9c119844c42a46a6c6006d158ee33af81fe76ae 02-Aug-2013 Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> qlcnic: Enhance diagnostic loopback error codes.

o Enhanced the driver to use standard Linux error codes
o Return a unique error code to indicate loopback is in progress

Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2deb535af7c824f37d6bc8657fd09e3d10696ee8 19-Jul-2013 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Fix invalid register offset calculation

83xx adapter specific code was accessing 82xx register which
resulted in invalid register offset. This patch uses proper
register access method.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
b6b4316c8b2fa6af5cee71e7defd09527b9d1cf9 22-Jun-2013 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Handle qlcnic_alloc_mbx_args() failure

qlcnic_alloc_mbx_args() may fail due to failure in memory allocation.
This patch checks for failure of qlcnic_alloc_mbx_args() to avoid
potential invalid memory access.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
b938662d88264c1a92611ca1b82fdff5a4e87121 09-May-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Fix ethtool supported port status for 83xx

o Fix display for interface while using 'ethtool <device>' for 83xx adapter

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
8c0464108a79c7698d8af26a7b299c7f6651e02e 09-May-2013 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Fix ethtool strings

o Add missing information in ethtool statistics information array.
o Fix the typo in the statistics information string.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
be273dc197eb84304b740db8965a2103005c49ba 24-Apr-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Enable Interrupt Coalescing for 83xx adapter

Enable Interrupt coalescing through ethtool on 83xx adapter.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
522907403b202dea8528c308ffc21e79d0636ee6 24-Apr-2013 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Add eSwitch statistics support

o Read eSwitch statistics from adapter and display them as part
of ethtool statistics.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
6389b76dfdb0549649d48fb50ca03242fb16a705 24-Apr-2013 Manish Chopra <manish.chopra@qlogic.com> qlcnic: Enhance channel configuration logs

o Add logs for various failure conditions during channel configuration.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
d1a1105efd901481b0dbba2ad07156a293a0dbe6 19-Apr-2013 Rajesh Borundia <rajesh.borundia@qlogic.com> qlcnic: Fix loopback test for SR-IOV PF.

o Do not disable mailbox interrupts while running
loopback test through SR-IOV PF.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
9434dbfe54518ca65fc80a4c8d3ee581fa6ee8be 08-Mar-2013 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Fix ethtool statistics collection

o Properly fill statistics data into buffer.
Update buffer pointer properly after filling statistics data into buffer.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1075822c871b56eb1e77cff82fae7bc9d7876d0a 08-Mar-2013 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: Fix ethtool statistics for 82xx adapter

o Fix miscalculation of statistics length

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
d16951d94aabb72245319679036125b8d7efead9 08-Mar-2013 Himanshu Madhani <himanshu.madhani@qlogic.com> qlcnic: Enable LED test support for 83xx adapter

o Add support for LED test on 83xx series adapters

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
58ead415a1a7d6800ed4eb3eeed12daedc27ffe6 09-Feb-2013 Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> qlcnic: refactor 83xx diagnostic IRQ test

Cleanly separate 83xx diagnostic IRQ test from 82xx

Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
ba4468dbf3364c35652dda14e2ef90c5cf09ab16 09-Feb-2013 Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> qlcnic: refactor 83xx diagnostic loopback test

Cleanly separate 83xx diagnostic loopback test routines from 82xx

Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
577ae39ddb037242964f5fe87fd50b0b89e3263b 04-Feb-2013 Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> qlcnic: Updating copyright information.

We recently refactored the driver source, this patch will take care of
updating copyright date and adding it to newly added files.

Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2c6196d2629b7e8236d1c9fb9f2d48e60c82a7ce 01-Jan-2013 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: remove unused definitions from header file

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
7e38d04bcb405e3cbba15132cecadd2e9c571fdf 01-Jan-2013 Sony Chacko <sony.chacko@qlogic.com> qlcnic: 83xx ethtool interface routines

83xx ethtool interface routines

Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
319ecf121e1da3d75dd1bde32fed255532e61797 01-Jan-2013 Sony Chacko <sony.chacko@qlogic.com> qlcnic: 83xx sysfs routines

Add 83xx sysfs interface routines
Update 82xx sysfs interface routines

Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
7e2cf4feba058476324dc545e3d1b316998c91e6 01-Jan-2013 Sony Chacko <sony.chacko@qlogic.com> qlcnic: change driver hardware interface mechanism

Refactor 82xx driver to support new adapter - Qlogic 83XX CNA

Create adapter abstraction layer and seperate 82xx hardware access routines.
Create mailbox based HW interface mechanism

Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
797884509d1f7dffa4fd1028a1f62a19705a518b 04-Dec-2012 Sony Chacko <sony.chacko@qlogic.com> qlcnic: move HW specific data to seperate structure

Move HW specific data to a seperate structure as part of
refactoring 82xx adapter driver.

Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
63507592e3524405ce8b4887b61ebb3b60c10de2 24-Nov-2012 Shahed Shaikh <shahed.shaikh@qlogic.com> qlcnic: fix sparse check endian warnings

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
bcebe55957323d9a5bc9d0f7a0747ccbb34c86dd 15-May-2012 Manish chopra <manish.chopra@qlogic.com> qlcnic-ethtool: set the ethtool_dump flag by ETH_FW_DUMP_DISABLE value that is zero, if firmware dump is disabled.

Signed-off-by: Manish chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
4fbec4d86f7a1b4dbaddecda24da08b5473cd289 26-Apr-2012 Manish Chopra <manish.chopra@qlogic.com> qlcnic: Allow a predefined set of capture masks for FW dump

o 0x3, 0x7, 0xF, 0x1F, 0x3F, 0x7F and 0xFF are the allowed capture masks.
o Updated driver version to 5.0.28

Signed-off-by: Manish chopra <manish.chopra@qlogic.com>
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
54a8997c6a0266a91a287b5dcb05da394ac0e42a 26-Apr-2012 Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> qlcnic: Adding mac statistics to ethtool.

Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
b43e5ee76a4320c070cf0fe65cf4927198fbb4d1 26-Apr-2012 Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> qlcnic: Register device in FAILED state.

o Without failing probe, register netdevice when device is in FAILED state.
o Device will come up with minimum functionality.

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
dae2e9f430c46c29e3f771110094bd3da3625aa4 06-Feb-2012 Pradeep A. Dalvi <netdev@pradeepdalvi.com> netdev: ethernet dev_alloc_skb to netdev_alloc_skb

Replaced deprecating dev_alloc_skb with netdev_alloc_skb in drivers/net/ethernet
- Removed extra skb->dev = dev after netdev_alloc_skb

Signed-off-by: Pradeep A Dalvi <netdev@pradeepdalvi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
c47884e4551cdea35f5bed60d0ae53d9b6c73dc2 03-Feb-2012 Manish chopra <manish.chopra@qlogic.com> qlcnic: Fix API unlock

Log dump status.
Remove unmatched qlcnic_api_unlock call.
Update version to 5.0.26.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
476a4b6d2543f0d9fa5205e0c25ebcd7973337bd 03-Feb-2012 Sony Chacko <sony.chacko@qlogic.com> qlcnic: report valid speed and duplex status when link is down

Report valid link statistics when link is down.

Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
68aad78c5023b8aa82da99b47f9d8cf40e8ca453 07-Nov-2011 Rick Jones <rick.jones2@hp.com> sweep the floors and convert some .get_drvinfo routines to strlcpy

Per the mention made by Ben Hutchings that strlcpy is now the preferred
string copy routine for a .get_drvinfo routine, do a bit of floor
sweeping and convert some of the as-yet unconverted ethernet drivers to
it.

Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
10ee0faed92c8af4baebd633372136a6608a41ea 28-Oct-2011 Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> qlcnic: fix beacon and LED test.

o Updated version number to 5.0.25

o Do not hold onto RESETTING_BIT for entire duration of LED/ beacon test.
Instead, just checking for RESETTING_BIT not set before sending config_led
command down to card.

o Take rtnl_lock instead of RESETTING_BIT for beacon test while sending
config_led command down to make sure interface cannot be brought up/ down.

o Allocate and free resources if interface is down before
sending the config_led command. This is to make sure config_led
command sending doesn't fail.

o Clear QLCNIC_LED_ENABLE bit if beacon/ LED test fails to start.

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
8b0c11679fd37522d8d34a76101319a085d80912 08-Oct-2011 Rick Jones <rick.jones2@hp.com> net: Remove unnecessary driver assignments of ethtool_ringparam fields to zero

Per comments from Ben Hutchings on a previous patch, sweep the floors
a little removing unnecessary assignments of zero to fields of struct
ethtool_ringparam in driver code supporting ethtool -g.

Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
7777de9af54a1402c79bf7663b38ff5ba308dd45 13-Sep-2011 Anirban Chakraborty <anirban.chakraborty@qlogic.com> qlcnic: Change CDRP function

Argument list to CDRP function has become unmanageably long. Fix it by properly
declaring a struct that encompasses all the input and output parameters.

Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
728a98b831eecada40b36df53420d57e9292c880 29-Aug-2011 Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> qlcnic: add beacon test support.

Beacon test flashes both port LEDs instead of just 1 LED of a port.
Updated driver version to 5.0.23.

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
9254b751492c7fc08497a5c0e0cd668ddd269ea2 29-Aug-2011 Sritej Velaga <sritej.velaga@qlogic.com> qlcnic: fix cdrp race condition

Reading CRB registers(if reqd) before releasing the api lock.

Signed-off-by: Sritej Velaga <sritej.velaga@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
df3cfbe30bcd8ddfbbac2d0893c53b6d048dd1f8 29-Aug-2011 Manish chopra <Manish.Chopra@qlogic.com> qlcnic: Change debug messages in loopback path

Added more debug messages while loopback test in progress

Signed-off-by: Manish chopra <Manish.Chopra@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
44f65b290235a1b259eea1aa055b5b1be36d3c86 29-Aug-2011 Sony Chacko <sony.chacko@qlogic.com> qlcnic: detect fan failure

Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
aa43c2158d5ae1dc76cccb08cd57a3ffd32c3825 09-Apr-2011 Jeff Kirsher <jeffrey.t.kirsher@intel.com> qlogic: Move the QLogic drivers

Moves the QLogic drivers into drivers/net/ethernet/qlogic/ and
the necessary Kconfig and Makefile changes.

CC: Ron Mercer <ron.mercer@qlogic.com>
CC: Amit Kumar Salecha <amit.salecha@qlogic.com>
CC: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Acked-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>