summaryrefslogtreecommitdiffstats
path: root/net/dsa/tag.h
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2023-04-21 01:56:00 +0300
committerDavid S. Miller <davem@davemloft.net>2023-04-23 14:16:45 +0100
commitf0a9d563064c3040a2d7b32317b37a6bcb1099b2 (patch)
treef3d6668f4f2742b7379274ca59f0945035f9f166 /net/dsa/tag.h
parentb5653b157e55a25ec76506e8cd31353e0ed4944c (diff)
downloadlinux-stable-f0a9d563064c3040a2d7b32317b37a6bcb1099b2.tar.gz
linux-stable-f0a9d563064c3040a2d7b32317b37a6bcb1099b2.tar.bz2
linux-stable-f0a9d563064c3040a2d7b32317b37a6bcb1099b2.zip
net: dsa: update TX path comments to not mention skb_mac_header()
Once commit 6d1ccff62780 ("net: reset mac header in dev_start_xmit()") will be reverted, it will no longer be true that skb->data points at skb_mac_header(skb) - since the skb->mac_header will not be set - so stop saying that, and just say that it points to the MAC header. I've reviewed vlan_insert_tag() and it does not *actually* depend on skb_mac_header(), so reword that to avoid the confusion. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/tag.h')
-rw-r--r--net/dsa/tag.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/tag.h b/net/dsa/tag.h
index 7cfbca824f1c..32d12f4a9d73 100644
--- a/net/dsa/tag.h
+++ b/net/dsa/tag.h
@@ -229,7 +229,7 @@ static inline void *dsa_etype_header_pos_rx(struct sk_buff *skb)
return skb->data - 2;
}
-/* On TX, skb->data points to skb_mac_header(skb), which means that EtherType
+/* On TX, skb->data points to the MAC header, which means that EtherType
* header taggers start exactly where the EtherType is (the EtherType is
* treated as part of the DSA header).
*/