From patchwork Wed Jun 26 09:06:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Britstein X-Patchwork-Id: 1122610 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=mellanox.com Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45YccF5cZ6z9s4V for ; Wed, 26 Jun 2019 19:07:24 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id B7C88E3D; Wed, 26 Jun 2019 09:07:20 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id C1235C7C for ; Wed, 26 Jun 2019 09:07:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id 0780D831 for ; Wed, 26 Jun 2019 09:07:17 +0000 (UTC) Received: from Internal Mail-Server by MTLPINE2 (envelope-from elibr@mellanox.com) with ESMTPS (AES256-SHA encrypted); 26 Jun 2019 12:07:14 +0300 Received: from dev-r-vrt-214.mtr.labs.mlnx. (dev-r-vrt-214.mtr.labs.mlnx [10.212.214.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x5Q97BKl013917; Wed, 26 Jun 2019 12:07:14 +0300 From: Eli Britstein To: dev@openvswitch.org, Simon Horman Date: Wed, 26 Jun 2019 09:06:42 +0000 Message-Id: <20190626090642.23983-2-elibr@mellanox.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190626090642.23983-1-elibr@mellanox.com> References: <20190626090642.23983-1-elibr@mellanox.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Eli Britstein Subject: [ovs-dev] [PATCH 1/1] netdev-vport: Make ip6gretap netdev type to use TC rules X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org The offload api functions already assigned to every tunnel class. For ip6gretap tunnel class only need to also assign the get_ifindex function, similarly as done in commit 5e63eaa969a3 ("netdev-vport: Make gre netdev type to use TC rules"). Signed-off-by: Eli Britstein Reviewed-by: Roi Dayan --- lib/netdev-vport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c index 92a256af1..b57d21ff8 100644 --- a/lib/netdev-vport.c +++ b/lib/netdev-vport.c @@ -1218,7 +1218,8 @@ netdev_vport_tunnel_register(void) .type = "ip6gre", .build_header = netdev_gre_build_header, .push_header = netdev_gre_push_header, - .pop_header = netdev_gre_pop_header + .pop_header = netdev_gre_pop_header, + .get_ifindex = NETDEV_VPORT_GET_IFINDEX, }, {{NULL, NULL, 0, 0}} },