diff options
author | Amir Vadai <amir@vadai.me> | 2016-03-08 13:42:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-11 00:24:03 +0300 |
commit | 12185a9fafa9cf39b73588c92aa49300ff3bf191 (patch) | |
tree | 293c390acdab0f7911ff42d7aba44b83c1020c8a /drivers/net/ethernet/mellanox/mlx5/core/en_tc.h | |
parent | e3a2b7ed018e885721a1b664ed7bf0f3fe29c81c (diff) | |
download | linux-12185a9fafa9cf39b73588c92aa49300ff3bf191.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_tc.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_tc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.h b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.h index 70642f4f78f0..d677428dc10f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.h @@ -33,6 +33,8 @@ #ifndef __MLX5_EN_TC_H__ #define __MLX5_EN_TC_H__ +#define MLX5E_TC_FLOW_ID_MASK 0x0000ffff + int mlx5e_tc_init(struct mlx5e_priv *priv); void mlx5e_tc_cleanup(struct mlx5e_priv *priv); |