diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2018-05-15 16:01:25 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-16 14:11:22 -0400 |
commit | 1942adf64214df370350aa46954ba27654456f68 (patch) | |
tree | baef285c02d4616782e6c11976041e3f3889bcf0 /fs/xfs | |
parent | 6c05561c541843b2bec2189f680bed6d20afc25b (diff) | |
download | linux-1942adf64214df370350aa46954ba27654456f68.tar.gz linux-1942adf64214df370350aa46954ba27654456f68.tar.bz2 linux-1942adf64214df370350aa46954ba27654456f68.zip |
net: dsa: bcm_sf2: Fix IPv6 rule half deletion
It was possible to delete only one half of an IPv6, which would leave
the second half still programmed and possibly in use. Instead of
checking for the unused bitmap, we need to check the unique bitmap, and
refuse any deletion that does not match that criteria. We also need to
move that check from bcm_sf2_cfp_rule_del_one() into its caller:
bcm_sf2_cfp_rule_del() otherwise we would not be able to delete second
halves anymore that would not pass the first test.
Fixes: ba0696c22e7c ("net: dsa: bcm_sf2: Add support for IPv6 CFP rules")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/xfs')
0 files changed, 0 insertions, 0 deletions