diff options
| author | Jack Morgenstein <[email protected]> | 2018-03-05 18:09:45 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-03-07 03:08:38 +0000 |
| commit | 0077416a3d529baccbe07ab3242e8db541cfadf6 (patch) | |
| tree | e22ea2e5472f97b0fa9a38afb5495844ab73fb3a /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | RDMA/qedr: Fix iWARP write and send with immediate (diff) | |
| download | kernel-0077416a3d529baccbe07ab3242e8db541cfadf6.tar.gz kernel-0077416a3d529baccbe07ab3242e8db541cfadf6.zip | |
IB/mlx4: Fix corruption of RoCEv2 IPv4 GIDs
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: 7e57b85c444c ("IB/mlx4: Add support for setting RoCEv2 gids in hardware")
Reviewed-by: Moni Shoua <[email protected]>
Signed-off-by: Jack Morgenstein <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
