]> 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)
commit73794c01b020f2973c7a6d78081c732978610818
tree10a348f34699937ee5b17d70183e2e50d351641b
parent8a2b7b3ed37b5f602202f67af1323b9a35395432
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