From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: Re: [net PATCH v2 5/6] net sched: skbedit action fix late binding Date: Tue, 10 May 2016 14:27:14 -0700 Message-ID: References: <1462913371-9699-1-git-send-email-jhs@emojatatu.com> <1462913371-9699-6-git-send-email-jhs@emojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: David Miller , Linux Kernel Network Developers , =?UTF-8?B?SmnFmcOtIFDDrXJrbw==?= , Alexander Duyck To: Jamal Hadi Salim Return-path: Received: from mail-yw0-f194.google.com ([209.85.161.194]:34198 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751739AbcEJV1e (ORCPT ); Tue, 10 May 2016 17:27:34 -0400 Received: by mail-yw0-f194.google.com with SMTP id i22so2262027ywc.1 for ; Tue, 10 May 2016 14:27:33 -0700 (PDT) In-Reply-To: <1462913371-9699-6-git-send-email-jhs@emojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, May 10, 2016 at 1:49 PM, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > The process below was broken and is fixed with this patch. > > //add a skbedit action and give it an instance id of 1 > sudo tc actions add action skbedit mark 10 index 1 > //create a filter which binds to skbedit action id 1 > sudo tc filter add dev $DEV parent ffff: protocol ip prio 1 u32\ > match ip dst 17.0.0.1/32 flowid 1:10 action skbedit index 1 > > Message before fix was: > RTNETLINK answers: Invalid argument > We have an error talking to the kernel > > Signed-off-by: Jamal Hadi Salim Reviewed-by: Cong Wang