No description
Find a file
Jack Morgenstein 9636bbd409 IB/mlx4: Fix corruption of RoCEv2 IPv4 GIDs
[ Upstream commit 0077416a3d ]

When using IPv4 addresses in RoCEv2, the GID format for the mapped
IPv4 address should be: ::ffff:<4-byte IPv4 address>.

In the cited commit, IPv4 mapped IPV6 addresses had the 3 upper dwords
zeroed out by memset, which resulted in deleting the ffff field.

However, since procedure ipv6_addr_v4mapped() already verifies that the
gid has format ::ffff:<ipv4 address>, no change is needed for the gid,
and the memset can simply be removed.

Fixes: 7e57b85c44 ("IB/mlx4: Add support for setting RoCEv2 gids in hardware")
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:52:12 +02:00
arch ia64/err-inject: Use get_user_pages_fast() 2018-05-30 07:52:11 +02:00
block block: display the correct diskname for bio 2018-05-30 07:52:09 +02:00
certs
crypto
Documentation
drivers IB/mlx4: Fix corruption of RoCEv2 IPv4 GIDs 2018-05-30 07:52:12 +02:00
firmware
fs ceph: fix potential memory leak in init_caches() 2018-05-30 07:52:09 +02:00
include block: display the correct diskname for bio 2018-05-30 07:52:09 +02:00
init
ipc
kernel
lib
mm
net batman-adv: Fix multicast packet loss with a single WANT_ALL_IPV4/6 flag 2018-05-30 07:52:11 +02:00
samples
scripts
security
sound
tools perf record: Fix crash in pipe mode 2018-05-30 07:52:11 +02:00
usr
virt
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.