From patchwork Thu Oct 11 07:06:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roi Dayan X-Patchwork-Id: 982328 X-Patchwork-Delegate: horms@verge.net.au 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 42W3QX0Z6fz9s9N for ; Thu, 11 Oct 2018 19:04:20 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 83705D30; Thu, 11 Oct 2018 08:03:48 +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 2FF94C84 for ; Thu, 11 Oct 2018 08:03:47 +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 493594DA for ; Thu, 11 Oct 2018 08:03:46 +0000 (UTC) Received: from Internal Mail-Server by MTLPINE1 (envelope-from roid@mellanox.com) with ESMTPS (AES256-SHA encrypted); 11 Oct 2018 09:12:10 +0200 Received: from dev-r-vrt-138.mtr.labs.mlnx (dev-r-vrt-138.mtr.labs.mlnx [10.212.138.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id w9B77JOH008193; Thu, 11 Oct 2018 10:07:19 +0300 From: Roi Dayan To: Simon Horman Date: Thu, 11 Oct 2018 10:06:42 +0300 Message-Id: <1539241603-25218-2-git-send-email-roid@mellanox.com> X-Mailer: git-send-email 2.7.5 In-Reply-To: <1539241603-25218-1-git-send-email-roid@mellanox.com> References: <1539241603-25218-1-git-send-email-roid@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: dev@openvswitch.org, Eli Britstein Subject: [ovs-dev] [PATCH 1/2] netdev-vport: Make gre 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 From: Eli Britstein The offload api functions already assigned to every tunnel class. For gre tunnel class only need to also assign the get_ifindex function. 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 a292b4f81c38..808a43f99d30 100644 --- a/lib/netdev-vport.c +++ b/lib/netdev-vport.c @@ -1154,7 +1154,8 @@ netdev_vport_tunnel_register(void) .type = "gre", .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}} },