mirror-linux/drivers/staging
Vladimir Oltean a00dbc6dec net: vlan: introduce skb_vlan_eth_hdr()
[ Upstream commit 1f5020acb3 ]

Similar to skb_eth_hdr() introduced in commit 96cc4b6958 ("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: 9fc95fe95c ("net: fec: correct queue selection")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-20 17:00:16 +01:00
..
axis-fifo
board
emxx_udc
fbtft staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER 2023-09-13 09:42:23 +02:00
fieldbus
gdm724x net: vlan: introduce skb_vlan_eth_hdr() 2023-12-20 17:00:16 +01:00
greybus
iio
ks7010 staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext() 2023-08-03 10:24:12 +02:00
media media: cedrus: Fix clock/reset sequence 2023-11-20 11:52:14 +01:00
most
nvec
octeon
olpc_dcon
pi433
qlge
r8188eu
rtl8192e
rtl8192u
rtl8712 staging: rtl8712: fix race condition 2023-09-06 21:27:01 +01:00
rtl8723bs
rts5208
sm750fb
vc04_services
vme_user
vt6655
vt6656
wlan-ng
Kconfig
Makefile