summaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa_priv.h
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-06-01 22:07:11 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-01 23:34:56 +0200
commit73a7ece8f70c955464080e434b5324bcdfdcb1b1 (patch)
tree7fe736c325597b74745ebe2cf828c9e209ebf70d /net/dsa/dsa_priv.h
parentmlxsw: spectrum: Add bridge dependency for spectrum (diff)
downloadlinux-73a7ece8f70c955464080e434b5324bcdfdcb1b1.tar.xz
linux-73a7ece8f70c955464080e434b5324bcdfdcb1b1.zip
net: dsa: comment hot path requirements
The DSA layer uses inline helpers and copy of the tagging functions for faster access in hot path. Add comments to detail that. Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r--net/dsa/dsa_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
index 7459d5735d8b..db2a7b9edfb8 100644
--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -73,6 +73,7 @@ struct dsa_device_ops {
};
struct dsa_slave_priv {
+ /* Copy of dp->ds->dst->tag_ops->xmit for faster access in hot path */
struct sk_buff * (*xmit)(struct sk_buff *skb,
struct net_device *dev);