diff options
author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2019-06-20 11:42:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-28 14:44:03 -0700 |
commit | 8ec3ede559956f8ad58db7b57d25ac724bab69e9 (patch) | |
tree | 5af680353bb56b4f89e96b25ac22cee3469be329 /net/sctp | |
parent | 32e454efbb2279b0fa5874abb0944a9d42080ad1 (diff) | |
download | linux-8ec3ede559956f8ad58db7b57d25ac724bab69e9.tar.bz2 |
net: mvpp2: prs: Don't override the sign bit in SRAM parser shift
The Header Parser allows identifying various fields in the packet
headers, used for various kind of filtering and classification
steps.
This is a re-entrant process, where the offset in the packet header
depends on the previous lookup results. This offset is represented in
the SRAM results of the TCAM, as a shift to be operated.
This shift can be negative in some cases, such as in IPv6 parsing.
This commit prevents overriding the sign bit when setting the shift
value, which could cause instabilities when parsing IPv6 flows.
Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")
Suggested-by: Alan Winkowski <walan@marvell.com>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions