[ovs-dev,1/2] netdev-vport: Make gre netdev type to use TC rules

Message ID 1539241603-25218-2-git-send-email-roid@mellanox.com
State New
Headers show
Series
  • Add support to offload GRE tunnels
Related show

Commit Message

Roi Dayan Oct. 11, 2018, 7:06 a.m.
From: Eli Britstein <elibr@mellanox.com>

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 <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
---
 lib/netdev-vport.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

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}}
         },