Skip to content

Commit

Permalink
netdev-vport: Make gre netdev type to use TC rules
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
  • Loading branch information
Eli Britstein authored and shorman-netronome committed Oct 16, 2018
1 parent 3c02b73 commit 5e63eaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/netdev-vport.c
Expand Up @@ -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}}
},
Expand Down

0 comments on commit 5e63eaa

Please sign in to comment.