]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: pci: Extract cookie index for ACL discard trap packets
authorJiri Pirko <jiri@mellanox.com>
Tue, 25 Feb 2020 10:45:24 +0000 (11:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Feb 2020 19:05:55 +0000 (11:05 -0800)
commit768899923f1311e35d953b8b9b65b458e0f7c34b
tree10a348f34699937ee5b17d70183e2e50d351641b
parentcb58a90ab4be7664de414d3b04ad3b9b272b1d8f
mlxsw: pci: Extract cookie index for ACL discard trap packets

In case the received packet comes in due to one of ACL discard traps,
take the user_def_val_orig_pkt_len field from CQE and store it
in skb->cb as ACL cookie index.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/pci.c
drivers/net/ethernet/mellanox/mlxsw/pci_hw.h