diff options
author | Jack M <jackm@dev.mellanox.co.il> | 2018-03-05 20:09:46 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-03-06 20:08:38 -0700 |
commit | a18177925c252da7801149abe217c05b80884798 (patch) | |
tree | 71c16fa1029df0bb6f83217ad826e44589c704a3 /drivers/macintosh/via-pmu-led.c | |
parent | IB/mlx4: Fix corruption of RoCEv2 IPv4 GIDs (diff) | |
download | linux-dev-a18177925c252da7801149abe217c05b80884798.tar.xz linux-dev-a18177925c252da7801149abe217c05b80884798.zip |
IB/mlx4: Include GID type when deleting GIDs from HW table under RoCE
The commit cited below added a gid_type field (RoCEv1 or RoCEv2)
to GID properties.
When adding GIDs, this gid_type field was copied over to the
hardware gid table. However, when deleting GIDs, the gid_type field
was not copied over to the hardware gid table.
As a result, when running RoCEv2, all RoCEv2 gids in the
hardware gid table were set to type RoCEv1 when any gid was deleted.
This problem would persist until the next gid was added (which would again
restore the gid_type field for all the gids in the hardware gid table).
Fix this by copying over the gid_type field to the hardware gid table
when deleting gids, so that the gid_type of all remaining gids is
preserved when a gid is deleted.
Fixes: b699a859d17b ("IB/mlx4: Add gid_type to GID properties")
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>
Diffstat (limited to 'drivers/macintosh/via-pmu-led.c')
0 files changed, 0 insertions, 0 deletions