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)
commit78a7dcb7c952477df18484f83592e11547d4f65a
tree10a348f34699937ee5b17d70183e2e50d351641b
parent6d19d2bdc8a15b8212c530edd806cfee283ac734
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