diff options
author | Maor Gottlieb <maorg@mellanox.com> | 2019-01-17 21:08:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 16:50:14 +0300 |
commit | a7a9df36803d18bf00870716c712907d9a355214 (patch) | |
tree | 8f7140e68ec4cd0d5d4156b624bd7f70fef36e56 /drivers/rtc/rtc-mc146818-lib.c | |
parent | 0594ddddf863f76afcfcf2c3480275aeee8bad33 (diff) | |
download | linux-a7a9df36803d18bf00870716c712907d9a355214.tar.xz |
IB/mlx5: Don't override existing ip_protocol
[ Upstream commit 6113cc44015b41ca51c0a76fed82522b68108dac ]
Two flow specifications can set the ip protocol field in
the flow table entry:
1) IB_FLOW_SPEC_TCP/UDP/GRE - set the ip protocol accordingly.
2) IB_FLOW_SPEC_IPV4/6 - has ip_protocol field for users
who want to receive specific L4 packets.
We need to avoid overriding of the ip_protocol with zeros,
in case that the user first put the L4 specification and
only then the L3.
Fixes: ca0d47538528b ('IB/mlx5: Add support in TOS and protocol to flow steering')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/rtc/rtc-mc146818-lib.c')
0 files changed, 0 insertions, 0 deletions