From: Jose Abreu <Jose.Abreu@synopsys.com>
To: Jiri Pirko <jiri@resnulli.us>, Jose Abreu <Jose.Abreu@synopsys.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Joao Pinto <Joao.Pinto@synopsys.com>
Subject: Re: tc: Using u32 filter
Date: Fri, 27 Apr 2018 16:56:23 +0100 [thread overview]
Message-ID: <5867d6f3-d4fc-0b04-2ea6-ee0a2f8afa8b@synopsys.com> (raw)
In-Reply-To: <20180427150431.GB5632@nanopsycho.orion>
On 27-04-2018 16:04, Jiri Pirko wrote:
> 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?
Yeah, I was missing that. Its working now :D Thanks Jiri!
Best Regards,
Jose Miguel Abreu
>
>> 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
prev parent reply other threads:[~2018-04-27 15:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-27 14:15 tc: Using u32 filter Jose Abreu
2018-04-27 15:04 ` Jiri Pirko
2018-04-27 15:56 ` Jose Abreu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5867d6f3-d4fc-0b04-2ea6-ee0a2f8afa8b@synopsys.com \
--to=jose.abreu@synopsys.com \
--cc=Joao.Pinto@synopsys.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).