From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jose Abreu Subject: tc: Using u32 filter Date: Fri, 27 Apr 2018 15:15:46 +0100 Message-ID: <27482470-930e-916d-2ace-deedf3019369@synopsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: Joao Pinto To: "netdev@vger.kernel.org" Return-path: Received: from smtprelay.synopsys.com ([198.182.37.59]:36580 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935203AbeD0OPx (ORCPT ); Fri, 27 Apr 2018 10:15:53 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id D80B91E04CE for ; Fri, 27 Apr 2018 16:15:51 +0200 (CEST) Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id 44540582F for ; Fri, 27 Apr 2018 07:15:51 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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 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