Commit Graph

496 Commits

Author SHA1 Message Date
Bart Van Assche a290c4ea4b qla2x00t: Remove a cast from a debug statement
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7358 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-02-04 23:14:43 +00:00
Bart Van Assche 993cf71424 qla2x00t: Fix kernel-doc header inconsistencies
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7357 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-02-04 23:06:21 +00:00
Vladislav Bolkhovitin 9ac6a883d1 qla2x00t: fix in-kernel tree build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7337 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-13 03:31:26 +00:00
Bart Van Assche 2594bc1fad qla2x00t: Declare local functions 'static'
Additionally, remove the 'inline' keyword from these two functions
because today's compilers are better than humans at deciding which
functions should be inlined and which ones not. This patch avoids
that building the qla2x00t driver on RHEL 7.4 triggers two compiler
warnings.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7336 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-11 17:00:21 +00:00
Bart Van Assche 32ab3b1e1f qla2x00t/extract-qla2xxx-orig: Use scripts/kernel-functions instead of duplicating it
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7335 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-09 00:45:26 +00:00
Bart Van Assche 52483357c7 qla2x00t: Fix build against kernel versions before v4.14
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7314 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-01-02 00:03:58 +00:00
Bart Van Assche 17f858726b qla2x00t: Make qla2x00_store_class2_enabled() report failures
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7313 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-31 20:41:24 +00:00
Bart Van Assche 6cac363e4c qla2x00t: Remove set-but-not-used variables
Except for the addition of one log message, this patch does not change any
functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7312 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-31 20:40:46 +00:00
Bart Van Assche 45dc582617 qla2x00t: Move a definition from a .h into a .c file
This patch does not change any functionality but reduces the size of the
qla2x00t driver.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7311 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-31 20:38:04 +00:00
Bart Van Assche e86fc13ff6 qla2x00t: Follow-up for r7293 and r7294
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7302 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-29 23:56:21 +00:00
Bart Van Assche df74fa408e qla2x00t: Annotate fall-through
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7301 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-29 23:55:54 +00:00
Vladislav Bolkhovitin d2b346e964 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7297 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-29 04:40:27 +00:00
Bart Van Assche 8268f5d5b1 Convert setup_timer() into timer_setup() calls
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7294 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-28 18:44:21 +00:00
Bart Van Assche 56e27f4125 qla2x00t: Convert init_timer() into setup_timer() calls
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7293 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-28 18:43:15 +00:00
Vladislav Bolkhovitin b65d646a2f Unpdate for kernels 4.12+
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7256 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-14 02:18:56 +00:00
Bart Van Assche 8f704cbe83 qla2x00t: Fix scst_debug.h include path for the in-tree build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7254 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-12 14:56:44 +00:00
Vladislav Bolkhovitin 339bc321a4 qla2x00t: update FW version information as suggested by Jens-U. Mozdzen <jmozdzen@nde.ag>
See https://sourceforge.net/p/scst/mailman/message/36068827/



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7251 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-10 02:06:13 +00:00
Bart Van Assche aae7d099f1 qla2x00t: Port to openSUSE Leap
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7244 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-05 23:48:51 +00:00
Vladislav Bolkhovitin d0c448116a Change version to 3.4
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7230 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-09-01 04:04:00 +00:00
Bart Van Assche 9e35afe1e0 Annotate fall-through in switch statements in a form recognized by gcc 7
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-27 15:28:57 +00:00
Vladislav Bolkhovitin 0ae66a082e Fix dereference beyond last sg element
Reported-By: David Butterfield <dab21774@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7204 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-03 04:02:22 +00:00
Vladislav Bolkhovitin 93bea9e0e8 Update to 4.11 kernels
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7203 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-06-03 02:38:51 +00:00
Vladislav Bolkhovitin 27db06eb7c qla2x00t: fix broken 4.9 kernels build
Reported-By: Marc Smith <marc.smith@parodyne.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7193 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-23 02:23:38 +00:00
Vladislav Bolkhovitin 8d3a9f440a qla2x00t: Disable Out-of-order processing by default
From: Quinn Tran <quinn.tran@cavium.com>

Out of order(OOO) processing requires initiator, switch
and target to support OOO. In today¹s environment, none
of the switches support OOO. OOO requires extra buffer
space which affect performance. By turning ON this feature
in QLogic's FW, it delays error recovery because droped
frame is treated as out of order frame. We¹re turning OFF
this option of speed up error recovery.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>

Merge of mainline commit 300af14bdb28157090f0c6f89d244fda940082da

EXPERIMENTAL!



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7188 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-19 02:58:23 +00:00
Vladislav Bolkhovitin 3f5c04bec9 qla2x00t: update to kernel 4.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7170 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-11 03:51:32 +00:00
Bart Van Assche 7d9994593f qla2x00t: Convert the non-standard %Lx into %llx
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7160 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-02 05:28:29 +00:00
Vladislav Bolkhovitin 33af3ccb46 ql2x00t: howto update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7151 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 04:15:21 +00:00
Vladislav Bolkhovitin 68fa7e1a0d Copyright updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 03:19:52 +00:00
Vladislav Bolkhovitin 7083e395e9 generate-kernel-patch: optimize generation of Makefile for qla2x00t
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7023 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-11-17 04:44:48 +00:00
Vladislav Bolkhovitin 69863eb497 Increase version to 3.3
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6927 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-03 02:32:17 +00:00
Vladislav Bolkhovitin 528f5e0004 Makefiles/Kconfigs for kernels 4.5 and 4.6
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6904 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-06-25 00:56:09 +00:00
Vladislav Bolkhovitin 21559f7798 qla2x00t: clarify that NPIV is not supported in this version
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-05-07 00:47:57 +00:00
Vladislav Bolkhovitin c12cdbf860 qla2x00t: decrease severity of 2 log messages
Those messages don't necessare mean any error. Some harmless race
conditions between the target driver and FW can lead to them as well.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6825 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-03-10 05:00:01 +00:00
Vladislav Bolkhovitin fa2f54ac9e Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6787 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-01-22 04:04:43 +00:00
Bart Van Assche 120e5fb78b nightly build: Add kernel 4.4 support files
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6779 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-01-19 18:08:04 +00:00
Bart Van Assche d6b116c46d qla2x00t: Fix a few typos
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6710 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-22 19:49:18 +00:00
Bart Van Assche 8b7820129a qla2x00t: Use strlcpy() instead of strcpy()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6685 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 18:30:42 +00:00
Bart Van Assche 2bdb7bfc8d qla2x00t: Do not compare an array pointer with NULL
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6684 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 18:30:15 +00:00
Bart Van Assche 22a203d843 qla2x00t: Suppress a Coverity complaint about a potential buffer overflow
Coverity reported the following:

Copy into fixed size buffer (STRING_OVERFLOW)
fixed_size_dest: You might overrun the 17 byte fixed-size string
ha->model_number by copying def without checking the length.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6683 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-12 18:26:26 +00:00
Bart Van Assche 0234aa8f99 qla2x00t: Remove a delayed_work function pointer cast
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6657 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-10 19:17:51 +00:00
Bart Van Assche 1a23466c69 qla2x00t: Follow-up for r6635
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6652 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-10 06:06:08 +00:00
Bart Van Assche 99d47d5ce2 scst, qla2x00t: Return ENOTSUPP instead of ENOSYS
ENOSYS must only be used inside system calls.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6648 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-10 02:01:57 +00:00
Bart Van Assche 3d57bb3d16 qla2x00t: Use __packed instead of __attribute__((packed))
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6639 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-09 21:03:54 +00:00
Bart Van Assche 5554a2a8b1 qla2x00t: Use kmalloc_array() instead of kmalloc() with multiply
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6635 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-09 20:08:43 +00:00
Bart Van Assche 5296640e97 qla2x00t: Use kcalloc() instead of kzalloc() with multiply
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6626 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-09 17:40:07 +00:00
Bart Van Assche 4862b1d3f5 qla2x00t: Insert a blank line after declarations
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6617 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-07 00:01:05 +00:00
Bart Van Assche b1cb5ebe79 qla2x00t: Place constants at the right-hand-side in comparisons
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6611 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 18:55:30 +00:00
Vladislav Bolkhovitin 5f7ac7f4bf Version updated to 3.2.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6593 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 06:17:17 +00:00
Bart Van Assche 77baa86e0e qla2x00t: Source code comment spelling fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6570 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:25:32 +00:00
Bart Van Assche fc27595d07 nightly build: Add support files for kernel v4.3
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6569 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-03 05:24:37 +00:00