| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
In case eth device failed to return correct version,
then we will initialize bp->version with baseline instead
of assigning unknown version number.
Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
|
|
|
|
| |
Debian Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982307
|
|
|
|
| |
CVE-2020-17437
|
|
|
|
| |
CVE-2020-13988
|
|
|
|
| |
CVE-2020-13987
|
|
|
|
|
|
|
|
|
|
|
|
| |
IFNAMSIZ is not used in this file. IFNAMSIZ is a macro defined in
net/if.h. Maybe this this macro is defined here to give it a self
defined value rather than system pre-defined at beginning, while
it seems the code reference the macro in this file is removed, so
here we can remove it.
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: Wu Bo <wubo40@huawei.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Both qedi_open() and bnx2x_open() perform 15 times retry
to make system call open() successful, while this retry
mechanism can not make sure open() can execute successfully.
So this patch verify return value of open(), if it is still
INVALID_FD just print error info and return the errno.
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
|
|
|
|
|
| |
This makes the compiler happy when searching for uio%d sysfs
directories.
|
|
|
|
|
|
|
|
| |
When playing with IPv6 IP addresses, which are described
in C using a union, and the gcc-10 compiler didn't like
that we were not specifying which member of the union
we wanted to address of, when in fact all members have
the same address. The fix is to be more explicit.
|
|
|
|
| |
The proper local is <poll.h>.
|
|
|
|
|
|
|
| |
Now that "-Werror" is turned on, 32-bit x86 compile problems are
fatal, so fix them.
*Should* be no functional change.
|
|
|
|
|
|
| |
This meant cleaning up the definition of some
global variables, so that they were only defined
in one place and refered to as external elsewhere.
|
|
|
|
|
|
| |
It's been reported that this breaks IPv6 discovery with qedi controllers
This reverts commit af48f0d68db48cd492d0e27e046fc011be236fd3.
|
| |
|
| |
|
|
|
|
|
| |
This loop is executing 16 times (sizeof(struct ipv6_addr)) but then
consumes 16-bits at a time (and moves ptr ahead two bytes).
|
| |
|
|
|
|
| |
dereferencing pointer
|
|\
| |
| | |
iscsiuio bug fix
|
| |
| |
| |
| | |
Signed-off-by: Nilesh Javali <njavali@marvell.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In the event of DHCP failure, killing of enable_nic_thread did not
process any iscsid requests leading to error,
iscsistart: Could not broadcast to uIP after 5 tries
and login failure to next active path.
Do not kill enable_nic_thread and allow further processing of iscsid
requests and performing login to next active path.
Signed-off-by: Nilesh Javali <njavali@marvell.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Commit c1870ae6dddb7bc2dbdc750df68edbbe1a80763f added systemd
support to iscsiuio, but it was not integrated with the
autoconf script there, so this commit rectifies that. Now one
can build without systemd support, from the top, using:
$ make OPTFLAGS="... -DNO_SYSTEMD ...
which now works for both iscsid and iscsiuio.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Add in example socket and service files for iscsiuio, such
that it can socket-activated, as is iscsid. Also, update
main in iscsiuio to use sd_notify() when it is ready for
business. All of the systemd code can be skipped if
NO_SYSTEMD is defined when building.
|
| |
| |
| |
| |
| |
| |
| | |
Only send a message down the pipe if it is open, i.e.
only in daemon (non-foreground) mode.
Fixes: 9483ee87ceea3ec8816e6a39d93aee242e7e19d2
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a pipe from child to parent when running in the
background (daemon mode), so that the parent does not exit
until the child is ready for business, so that systemd does
not send us work too early. Also, fix error messages,
adding newlines where needed, and printing them to
stderr.
|
| |
| |
| |
| |
| | |
Convert /var/run to /run, and convert /var/lock to /run/lock,
as per modern requirements on use of the /var directory.
|
|\ \
| |/
| | |
iscsiuio bug fixes
|
| |
| |
| |
| | |
Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
1. Use HW BD prod index to read packet buffer descriptor.
2. Use BD producer and consumer index to check for new data instead
of UIO ring buffer index.
NOTE - This patch has dependency on upstream qedi driver v8.33.0.21,
commit "qedi: Move LL2 producer index processing in BH.",
(https://marc.info/?l=linux-scsi&m=154271028608808)
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
|
| |
| |
| |
| |
| |
| | |
Invalid ether len was resulting into showing CRC error on wire.
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
|
|\ \
| |/
| | |
iscsiuio: Do not flush tx queue on each uio interrupt.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Unlike bnx2x, qedi start_xmit netlink provide us guarantee
of transmitting LL2 packet, so there is no need to call clear_tx_intr for
each LL2 packet. This help us in reducing iscsiuio lock contention.
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
|
|\ \
| | |
| | | |
Cleanup nic nl open usage
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The return value of nic_nl_open was ignored and while working by chance
being the latest call before the error label any later insertion of code
after this might break it.
Avoid that by checking for the retval and explicitly jumping to the
error label in case it is non zero.
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
nic_nl_open might have collected a non-zero rc and jumped to the error
label but still returned zero which would indicate success.
The function should return whatever it has collected in rc and while
working without, also explicitly initialize it to zero.
Fixes #125
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
|
|/
|
|
|
|
|
| |
The file descriptors used for writing to the pid file were
not being closed. Just be more clean and close them.
Also fix a debug message that said 'lock file' rather than 'pid file'.
|
|
|
|
|
|
|
|
| |
After successful stateless router adv., the restart of handle_ndp thread
infinitely checks dhcpv6 causing IPv6 DHCP sequence failure.
Limit the retries of dhcpv6 validation.
Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
|
|
|
|
|
|
|
| |
This prevents iscsiuio seg fault in case get_tx_pkt fails
while sending ARP.
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
|
|
|
|
|
|
|
| |
This avoids the netlink buffer corruption when more than one host
try to xmit packet at the same time.
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
|
|
|
|
|
|
|
| |
If iscsiuio is stopped when first starting up, it can easily
hit a window where pthread_cancel() is called before pthread_create()
finishesx The problem was found by kiyo@jp.fujitsu.com, who also
proposed the fix.
|
|\
| |
| | |
Gcc 8 fixes -- clean up some string handling corner cases, and to make compiler happy
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The incorrect length was being used to copy
the NIC name.
Found by gcc-8, which gave this error:
> [ 19s] nic_utils.c: In function 'nic_util_enable_disable_multicast':
> [ 19s] nic_utils.c:308:9: warning: argument to 'sizeof' in 'strncpy'
> call is the same expression as the source; did you mean to
> use the size of the destination? [-Wsizeof-pointer-memaccess]
> [ 19s] sizeof(nic->eth_device_name));
> [ 19s] ^
|
|\ \
| |/
|/| |
musl build fixes
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
including nic.h before linux/ethtool.h avoids redefinitions of
eth structs
/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-musleabi/iscsi-initiator-utils/2.0.876-r0/recipe-sysroot/
usr/include/netinet/if_ether.h:104:8: error: redefinition of 'struct ethhdr'
struct ethhdr {
^~~~~~
In file included from /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-musleabi/iscsi-initiator-utils/2.0.
876-r0/recipe-sysroot/usr/include/linux/ethtool.h:19:0,
from qedi.c:52:
/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-musleabi/iscsi-initiator-utils/2.0.876-r0/recipe-sysroot/
usr/include/linux/if_ether.h:154:8: note: originally defined here
struct ethhdr {
^~~~~~
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|\ \
| |/
|/| |
Iscsiuio bug fixes
|
| |
| |
| |
| | |
Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
For source and destination IP addresses in different
networks, continue with the ARP retries and further login process
instead of assuming abrupt failure. iSCSI offload adapters may not rely on
netmask information for successful iSCSI target login.
Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
|
| |
| |
| |
| |
| |
| | |
Make sure needed directories exist, and make
sure install/symbolic linking of target
works, even when not in root=/.
|
| | |
|