|
@@ -127,6 +127,8 @@ struct dsa_switch_tree {
|
|
|
* protocol to use.
|
|
|
*/
|
|
|
struct net_device *master_netdev;
|
|
|
+
|
|
|
+ /* Copy of tag_ops->rcv for faster access in hot path */
|
|
|
struct sk_buff * (*rcv)(struct sk_buff *skb,
|
|
|
struct net_device *dev,
|
|
|
struct packet_type *pt,
|
|
@@ -465,6 +467,7 @@ struct mii_bus *dsa_host_dev_to_mii_bus(struct device *dev);
|
|
|
|
|
|
struct net_device *dsa_dev_to_net_device(struct device *dev);
|
|
|
|
|
|
+/* Keep inline for faster access in hot path */
|
|
|
static inline bool dsa_uses_tagged_protocol(struct dsa_switch_tree *dst)
|
|
|
{
|
|
|
return dst->rcv != NULL;
|