Petr Machata d1b2a6c4be net: GRE: Add is_gretap_dev, is_ip6gretap_dev
Determining whether a device is a GRE device is easily done by
inspecting struct net_device.type. However, for the tap variants, the
type is just ARPHRD_ETHER.

Therefore introduce two predicate functions that use netdev_ops to tell
the tap devices.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-27 14:46:26 -05:00
..
2018-02-27 11:01:39 -05:00
2018-02-27 11:01:39 -05:00
2018-02-19 14:19:09 -05:00
2018-02-19 14:19:10 -05:00
2017-05-21 13:42:36 -04:00
2018-02-27 11:01:38 -05:00
2018-02-27 11:01:38 -05:00
2018-02-19 14:19:10 -05:00
2016-12-25 17:21:23 +01:00
2018-02-19 14:19:11 -05:00
2018-02-19 14:19:11 -05:00
2018-02-19 14:19:10 -05:00
2017-09-01 18:35:23 -07:00
2018-02-27 11:01:38 -05:00
2018-02-19 14:19:10 -05:00
2018-01-16 15:01:33 -05:00
2018-02-19 14:19:11 -05:00