From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amir Vadai Subject: Re: [PATCH net-next 8/8] net/mlx5e: Support offload cls_flower with sskbedit mark action Date: Tue, 1 Mar 2016 18:53:43 +0200 Message-ID: <56d5c81e.46fac20a.5f8c7.ffffd9fc@mx.google.com> References: <1456842290-7844-1-git-send-email-amir@vadai.me> <1456842290-7844-9-git-send-email-amir@vadai.me> <20160301145810.GE2098@nanopsycho.orion> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "David S. Miller" , netdev@vger.kernel.org, Or Gerlitz , John Fastabend , Saeed Mahameed , Hadar Har-Zion , Jiri Pirko To: Jiri Pirko Return-path: Received: from mail-wm0-f67.google.com ([74.125.82.67]:34349 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751040AbcCAQth (ORCPT ); Tue, 1 Mar 2016 11:49:37 -0500 Received: by mail-wm0-f67.google.com with SMTP id p65so5099974wmp.1 for ; Tue, 01 Mar 2016 08:49:36 -0800 (PST) Content-Disposition: inline In-Reply-To: <20160301145810.GE2098@nanopsycho.orion> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Mar 01, 2016 at 03:58:10PM +0100, Jiri Pirko wrote: > Tue, Mar 01, 2016 at 03:24:50PM CET, amir@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 > > > > > > >@@ -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