net/mlx5e: Support offload cls_flower with skbedit mark action
authorAmir Vadai <amir@vadai.me>
Tue, 8 Mar 2016 10:42:38 +0000 (12:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2016 21:24:03 +0000 (16:24 -0500)
commit12185a9fafa9cf39b73588c92aa49300ff3bf191
tree293c390acdab0f7911ff42d7aba44b83c1020c8a
parente3a2b7ed018e885721a1b664ed7bf0f3fe29c81c
net/mlx5e: Support offload cls_flower with skbedit mark action

Introduce offloading of skbedit mark action.

For example, to mark with 0x1234, all TCP (ip_proto 6) packets arriving
to interface ens9:

 # tc qdisc add dev ens9 ingress
 # tc filter add dev ens9 protocol ip parent ffff: \
     flower ip_proto 6 \
     indev ens9 \
     action skbedit mark 0x1234

Signed-off-by: Amir Vadai <amir@vadai.me>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h