From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: tc: Using u32 filter Date: Fri, 27 Apr 2018 17:04:31 +0200 Message-ID: <20180427150431.GB5632@nanopsycho.orion> References: <27482470-930e-916d-2ace-deedf3019369@synopsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "netdev@vger.kernel.org" , Joao Pinto To: Jose Abreu Return-path: Received: from mail-wm0-f49.google.com ([74.125.82.49]:39742 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933207AbeD0PEd (ORCPT ); Fri, 27 Apr 2018 11:04:33 -0400 Received: by mail-wm0-f49.google.com with SMTP id b21so3488075wme.4 for ; Fri, 27 Apr 2018 08:04:33 -0700 (PDT) Content-Disposition: inline In-Reply-To: <27482470-930e-916d-2ace-deedf3019369@synopsys.com> Sender: netdev-owner@vger.kernel.org List-ID: Fri, Apr 27, 2018 at 04:15:46PM CEST, Jose.Abreu@synopsys.com wrote: >Hi, > >I'm trying to use u32 filter to filter specific fields of packets >by HW *only* but I'm having a hard time in trying to run tc to >configure it. >I implemented a dummy .ndo_setup_tc callback which always returns >success and I set NETIF_F_HW_TC field in hw_features. Then I run Did you register a block cb? >tc, like this: > > # tc filter add dev eth0 u32 skip_sw sample u32 20 ffff at 0 > >At this stage I'm not really caring about the packet content (the >"20 ffff at 0"), I just want to see the configuration reaching my >driver but I'm getting a "RTNETLINK answers: Operation not >supported" error. > >Can you tell me what I'm I doing wrong? > >Thanks and Best Regards, >Jose Miguel Abreu