@@ -58,24 +58,26 @@ static inline struct mpls_dev *mpls_dev_get(const struct net_device *dev)
58
58
return rcu_dereference_rtnl (dev -> mpls_ptr );
59
59
}
60
60
61
- static bool mpls_output_possible (const struct net_device * dev )
61
+ bool mpls_output_possible (const struct net_device * dev )
62
62
{
63
63
return dev && (dev -> flags & IFF_UP ) && netif_carrier_ok (dev );
64
64
}
65
+ EXPORT_SYMBOL_GPL (mpls_output_possible );
65
66
66
67
static unsigned int mpls_rt_header_size (const struct mpls_route * rt )
67
68
{
68
69
/* The size of the layer 2.5 labels to be added for this route */
69
70
return rt -> rt_labels * sizeof (struct mpls_shim_hdr );
70
71
}
71
72
72
- static unsigned int mpls_dev_mtu (const struct net_device * dev )
73
+ unsigned int mpls_dev_mtu (const struct net_device * dev )
73
74
{
74
75
/* The amount of data the layer 2 frame can hold */
75
76
return dev -> mtu ;
76
77
}
78
+ EXPORT_SYMBOL_GPL (mpls_dev_mtu );
77
79
78
- static bool mpls_pkt_too_big (const struct sk_buff * skb , unsigned int mtu )
80
+ bool mpls_pkt_too_big (const struct sk_buff * skb , unsigned int mtu )
79
81
{
80
82
if (skb -> len <= mtu )
81
83
return false;
@@ -85,6 +87,7 @@ static bool mpls_pkt_too_big(const struct sk_buff *skb, unsigned int mtu)
85
87
86
88
return true;
87
89
}
90
+ EXPORT_SYMBOL_GPL (mpls_pkt_too_big );
88
91
89
92
static bool mpls_egress (struct mpls_route * rt , struct sk_buff * skb ,
90
93
struct mpls_entry_decoded dec )
@@ -626,6 +629,7 @@ int nla_put_labels(struct sk_buff *skb, int attrtype,
626
629
627
630
return 0 ;
628
631
}
632
+ EXPORT_SYMBOL_GPL (nla_put_labels );
629
633
630
634
int nla_get_labels (const struct nlattr * nla ,
631
635
u32 max_labels , u32 * labels , u32 label [])
@@ -671,6 +675,7 @@ int nla_get_labels(const struct nlattr *nla,
671
675
* labels = nla_labels ;
672
676
return 0 ;
673
677
}
678
+ EXPORT_SYMBOL_GPL (nla_get_labels );
674
679
675
680
static int rtm_to_route_config (struct sk_buff * skb , struct nlmsghdr * nlh ,
676
681
struct mpls_route_config * cfg )
0 commit comments