From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A808C43334 for ; Sat, 11 Jun 2022 05:09:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349244AbiFKFJD (ORCPT ); Sat, 11 Jun 2022 01:09:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiFKFI7 (ORCPT ); Sat, 11 Jun 2022 01:08:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E97744A23 for ; Fri, 10 Jun 2022 22:08:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 48C59B837C3 for ; Sat, 11 Jun 2022 05:08:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F518C34116; Sat, 11 Jun 2022 05:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654924136; bh=1KMGkqCCXrvhbAC3nNKbmI8rpRsawQAvM216WwW8Zvo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=b/O77bzzvvjG+k+xpz3I+F2xKj7OO7WydtsYRiKpbEvfm0WUVXOqKQVak+xh5m6iF TfP5nVDwZacApsX8fvPELeq/ur2iBhLY9TLr72fBXmL8Gn/UtRSQph8Ch4pVtDxeoR /saMXOtId9BOA4RLj+krbTSkzZBj1FyN+1rqzAFpv54ZcJSQJz/K2v/WfmhzpHx1EI g8hNVsh6A0yElhOjd9gO+H7C3ZFjYtdm1SpdcvjaioMA/NdExO2wb9krUOATy6G1q3 K8YLmmjnp3C+7Om2lDEwv7caSZc3OFgH8ShecDHW8ngOMBSLN/Nr7/X206bHhOuOb6 6rYW0SOUunFkQ== Date: Fri, 10 Jun 2022 22:08:54 -0700 From: Jakub Kicinski To: Tony Nguyen Cc: davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, Grzegorz Szczurek , netdev@vger.kernel.org, sassmann@redhat.com, Jedrzej Jagielski , Bharathi Sreenivas Subject: Re: [PATCH net 1/4] i40e: Fix adding ADQ filter to TC0 Message-ID: <20220610220854.52e5ca44@kernel.org> In-Reply-To: <20220609162620.2619258-2-anthony.l.nguyen@intel.com> References: <20220609162620.2619258-1-anthony.l.nguyen@intel.com> <20220609162620.2619258-2-anthony.l.nguyen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 9 Jun 2022 09:26:17 -0700 Tony Nguyen wrote: > --- a/drivers/net/ethernet/intel/i40e/i40e_main.c > +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c > @@ -8542,6 +8542,11 @@ static int i40e_configure_clsflower(struct i40e_vsi *vsi, > return -EOPNOTSUPP; > } > > + if (!tc) { > + dev_err(&pf->pdev->dev, "Unable to add filter because of invalid destination"); > + return -EINVAL; > + } extacks please ?