diff options
author | 2017-10-24 11:41:26 +0200 | |
---|---|---|
committer | 2017-10-26 17:07:52 +0900 | |
commit | ef4816f0ee576d4a27ed35cd1090904121391cb9 (patch) | |
tree | a782e0d8dc51db638dc243ab2f9822c5bd601d80 /drivers/net | |
parent | tun: allow positive return values on dev_get_valid_name() call (diff) | |
download | linux-ef4816f0ee576d4a27ed35cd1090904121391cb9.tar.gz linux-ef4816f0ee576d4a27ed35cd1090904121391cb9.tar.bz2 linux-ef4816f0ee576d4a27ed35cd1090904121391cb9.zip |
net: mvpp2: fix typo in the tcam setup
This patch fixes a typo in the mvpp2_prs_tcam_data_cmp() function, as
the shift value is inverted with the data.
Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/marvell/mvpp2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c index 28c6e8a5e118..0b2017170d5b 100644 --- a/drivers/net/ethernet/marvell/mvpp2.c +++ b/drivers/net/ethernet/marvell/mvpp2.c @@ -1539,7 +1539,7 @@ static bool mvpp2_prs_tcam_data_cmp(struct mvpp2_prs_entry *pe, int offs, int off = MVPP2_PRS_TCAM_DATA_BYTE(offs); u16 tcam_data; - tcam_data = (8 << pe->tcam.byte[off + 1]) | pe->tcam.byte[off]; + tcam_data = (pe->tcam.byte[off + 1] << 8) | pe->tcam.byte[off]; if (tcam_data != data) return false; return true; |