kernel_samsung_a53x/drivers/net/ethernet/hisilicon
Vladimir Oltean 39ce12db8b net: vlan: introduce skb_vlan_eth_hdr()
[ Upstream commit 1f5020acb33f926030f62563c86dffca35c7b701 ]

Similar to skb_eth_hdr() introduced in commit 96cc4b69581d ("macvlan: do
not assume mac_header is set in macvlan_broadcast()"), let's introduce a
skb_vlan_eth_hdr() helper which can be used in TX-only code paths to get
to the VLAN header based on skb->data rather than based on the
skb_mac_header(skb).

We also consolidate the drivers that dereference skb->data to go through
this helper.

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>
Stable-dep-of: 9fc95fe95c3e ("net: fec: correct queue selection")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:11:48 +01:00
..
hns net: hns: fix fake link up on xge port 2024-11-18 12:11:39 +01:00
hns3 net: vlan: introduce skb_vlan_eth_hdr() 2024-11-18 12:11:48 +01:00
hip04_eth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hisi_femac.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
hix5hd2_gmac.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
hns_mdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00