On Tue, Mar 01, 2016 at 03:58:10PM +0100, Jiri Pirko wrote: > Tue, Mar 01, 2016 at 03:24:50PM CET, a...@vadai.me wrote: > >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 > > > > <snip> > > >@@ -287,6 +288,21 @@ static int parse_tc_actions(struct mlx5e_priv *priv, > >struct tcf_exts *exts, > > continue; > > } > > > >+ if (is_tcf_skbedit_mark(a)) { > >+ u32 mark = tcf_skbedit_mark(a); > >+ > >+ if (mark & ~MLX5E_TC_FLOW_ID_MASK) { > >+ netdev_warn(priv->netdev, > >+ "Bad flow mark - only 16 bit is > >supported: 0x%x\n", > > You can start printk string on the first line. ack
- [PATCH net-next 6/8] net/mlx5e: Introduce tc offload suppor... Amir Vadai
- Re: [PATCH net-next 6/8] net/mlx5e: Introduce tc offlo... Jiri Pirko
- Re: [PATCH net-next 6/8] net/mlx5e: Introduce tc o... Amir Vadai
- Re: [PATCH net-next 6/8] net/mlx5e: Introduce ... John Fastabend
- Re: [PATCH net-next 6/8] net/mlx5e: Introd... Amir Vadai
- Re: [PATCH net-next 6/8] net/mlx5e: I... Jiri Pirko
- Re: [PATCH net-next 6/8] net/mlx5e: Introduce tc offlo... Saeed Mahameed
- [PATCH net-next 8/8] net/mlx5e: Support offload cls_flower ... Amir Vadai
- Re: [PATCH net-next 8/8] net/mlx5e: Support offload cl... Jiri Pirko
- Re: [PATCH net-next 8/8] net/mlx5e: Support offloa... Amir Vadai
- [PATCH net-next 5/8] net/mlx5e: Add a new priority for kern... Amir Vadai
- [PATCH net-next 7/8] net/mlx5e: Support offload cls_flower ... Amir Vadai
- [PATCH net-next 4/8] net/mlx5_core: Set flow steering dest ... Amir Vadai
- [PATCH net-next 3/8] net/act_skbedit: Utility functions for... Amir Vadai
- Re: [PATCH net-next 0/8] cls_flower hardware offload suppor... John Fastabend