From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net: sched: cls: Fix offloading when ingress dev is vxlan Date: Tue, 05 Jun 2018 10:30:31 -0400 (EDT) Message-ID: <20180605.103031.2043903448130876802.davem@davemloft.net> References: <1528185843-18645-1-git-send-email-paulb@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jiri@mellanox.com, xiyou.wangcong@gmail.com, jhs@mojatatu.com, netdev@vger.kernel.org, kliteyn@mellanox.com, roid@mellanox.com, shahark@mellanox.com, markb@mellanox.com, ogerlitz@mellanox.com To: paulb@mellanox.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:36906 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752076AbeFEOae (ORCPT ); Tue, 5 Jun 2018 10:30:34 -0400 In-Reply-To: <1528185843-18645-1-git-send-email-paulb@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Paul Blakey Date: Tue, 5 Jun 2018 11:04:03 +0300 > When using a vxlan device as the ingress dev, we count it as a > "no offload dev", so when such a rule comes and err stop is true, > we fail early and don't try the egdev route which can offload it > through the egress device. > > Fix that by not calling the block offload if one of the devices > attached to it is not offload capable, but make sure egress on such case > is capable instead. > > Fixes: caa7260156eb ("net: sched: keep track of offloaded filters [..]") > Reviewed-by: Roi Dayan > Acked-by: Jiri Pirko > Signed-off-by: Paul Blakey Applied and queued up for -stable, thanks.