diff options
author | David S. Miller <davem@davemloft.net> | 2020-05-24 02:37:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-24 02:37:00 +0300 |
commit | 46c54f9500afad6128e19138c7d97fa4900331f6 (patch) | |
tree | f38f5549a0e680df23d2115cd85c94be83ba2cb3 /include | |
parent | 07a7f30819475a6f058df6bba5150c50e7942cfb (diff) | |
parent | 582234b465edfa12835b20477c0aa2bc91a02e18 (diff) | |
download | linux-46c54f9500afad6128e19138c7d97fa4900331f6.tar.xz |
Merge tag 'mlx5-updates-2020-05-22' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux
Saeed Mahameed says:
====================
mlx5-updates-2020-05-22
This series includes two updates and one cleanup patch
1) Tang Bim, clean-up with IS_ERR() usage
2) Vlad introduces a new mlx5 kconfig flag for TC support
This is required due to the high volume of current and upcoming
development in the eswitch and representors areas where some of the
feature are TC based such as the downstream patches of MPLSoUDP and
the following representor bonding support for VF live migration and
uplink representor dynamic loading.
For this Vlad kept TC specific code in tc.c and rep/tc.c and
organized non TC code in representors specific files.
3) Eli Cohen adds support for MPLS over UPD encap and decap TC offloads.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bareudp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/bareudp.h b/include/net/bareudp.h index cb03f6f15956..dc65a0d71d9b 100644 --- a/include/net/bareudp.h +++ b/include/net/bareudp.h @@ -5,6 +5,7 @@ #include <linux/types.h> #include <linux/skbuff.h> +#include <net/rtnetlink.h> struct bareudp_conf { __be16 ethertype; @@ -17,4 +18,10 @@ struct net_device *bareudp_dev_create(struct net *net, const char *name, u8 name_assign_type, struct bareudp_conf *info); +static inline bool netif_is_bareudp(const struct net_device *dev) +{ + return dev->rtnl_link_ops && + !strcmp(dev->rtnl_link_ops->kind, "bareudp"); +} + #endif |