[ovs-dev] [PATCH V2 1/1] netdev-vport: Make ip6gre netdev type to use TC rules

Eli Britstein elibr at mellanox.com
Thu Jul 4 07:36:42 UTC 2019


The offload api functions already assigned to every tunnel class.
For ip6gre 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 <elibr at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
---
 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}}
         },
-- 
2.17.2



More information about the dev mailing list