On Sun, Jan 22, 2017 at 12:44:47PM +0100, Jiri Pirko wrote: > From: Yotam Gigi <yot...@mellanox.com> > > Using the MPSC register, add the functions that configure port-based > packet sampling in hardware and the necessary datatypes in the > mlxsw_sp_port struct. In addition, add the necessary trap for sampled > packets and integrate with matchall offloading to allow offloading of the > sample tc action. > > The current offload support is for the tc command: > > tc filter add dev <DEV> parent ffff: \ > matchall skip_sw \ > action sample rate <RATE> group <GROUP> [trunc <SIZE>] > > Where only ingress qdiscs are supported, and only a combination of > matchall classifier and sample action will lead to activating hardware > packet sampling. > > Signed-off-by: Yotam Gigi <yot...@mellanox.com> > Signed-off-by: Jiri Pirko <j...@mellanox.com>
Reviewed-by: Ido Schimmel <ido...@mellanox.com>