]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: pci: Fix size of trap_id field in CQE
authorJiri Pirko <jiri@mellanox.com>
Tue, 6 Jun 2017 12:12:04 +0000 (14:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jun 2017 16:45:23 +0000 (12:45 -0400)
commit033aba2314202563d8888c54d03203970e850e36
treec18da9da37f5abda6d8e1d5ef52e21fb6a21a16e
parent932e9757143badde134ac47fd992fa325d805021
mlxsw: pci: Fix size of trap_id field in CQE

The "trap_id" is 9bits long. So far, this was not a problem since we
used only traps with ids that fit into 8bits. But the ACL traps that are
going to be introduced use the 9th bit.

Fixes: bc313d30ecbc ("mlxsw: Add PCI bus implementation")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Yotam Gigi <yotamg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci_hw.h