mirror-linux/drivers/net/ethernet/stmicro/stmmac
Vladimir Oltean 1f5020acb3 net: vlan: introduce skb_vlan_eth_hdr()
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>
2023-04-23 14:16:44 +01:00
..
Kconfig net: stmmac: Add glue layer for StarFive JH7110 SoC 2023-04-18 13:13:41 +02:00
Makefile net: stmmac: Add glue layer for StarFive JH7110 SoC 2023-04-18 13:13:41 +02:00
altr_tse_pcs.c
altr_tse_pcs.h
chain_mode.c net: stmmac: Remove some unnecessary void pointers 2023-04-13 12:50:46 +02:00
common.h net: stmmac: Fix DMA typo 2023-04-13 12:50:46 +02:00
descs.h
descs_com.h
dwmac-anarion.c net: stmmac: dwmac-anarion: Always return struct anarion_gmac * from anarion_config_dt() 2023-04-07 20:06:04 -07:00
dwmac-dwc-qos-eth.c net: stmmac: dwc-qos: Make struct dwc_eth_dwmac_data::remove return void 2023-02-13 19:50:43 -08:00
dwmac-generic.c net: stmmac: generic: drop of_match_ptr for ID table 2023-03-15 08:02:45 +00:00
dwmac-imx.c net: stmmac: dwmac-imx: use platform specific reset for imx93 SoCs 2023-04-05 19:01:22 -07:00
dwmac-ingenic.c
dwmac-intel-plat.c
dwmac-intel.c net: stmmac: remove redundant fixup to support fixed-link mode 2023-03-31 09:23:41 +01:00
dwmac-intel.h
dwmac-ipq806x.c
dwmac-loongson.c stmmac: dwmac-loongson: fix missing of_node_put() while module exiting 2022-11-10 11:03:00 +01:00
dwmac-lpc18xx.c
dwmac-mediatek.c net: stmmac: Fix for mismatched host/device DMA address width 2023-03-19 10:56:03 +00:00
dwmac-meson.c
dwmac-meson8b.c net: stmmac: dwmac-meson8b: Avoid cast to incompatible function type 2023-04-19 18:40:03 -07:00
dwmac-oxnas.c
dwmac-qcom-ethqos.c net: stmmac: dwmac-qcom-ethqos: Add EMAC3 support 2023-04-13 12:50:47 +02:00
dwmac-rk.c net: ethernet: stmmac: dwmac-rk: fix optional phy regulator handling 2023-04-12 09:21:27 +01:00
dwmac-socfpga.c
dwmac-starfive.c net: stmmac: dwmac-starfive: Add phy interface settings 2023-04-18 13:13:41 +02:00
dwmac-sti.c net: ethernet: stmmac: dwmac-sti: remove stih415/stih416/stid127 2023-04-18 21:29:19 -07:00
dwmac-stm32.c net: stmmac: Make stmmac_dvr_remove() return void 2023-02-13 19:50:43 -08:00
dwmac-sun8i.c net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwmac-sunxi.c
dwmac-tegra.c net: stmmac: tegra: Add MGBE support 2022-12-05 09:44:42 +00:00
dwmac-visconti.c
dwmac4.h net: stmmac: dwmac4: Allow platforms to specify some DMA/MTL offsets 2023-04-13 12:50:46 +02:00
dwmac4_core.c net: stmmac: dwmac4: Allow platforms to specify some DMA/MTL offsets 2023-04-13 12:50:46 +02:00
dwmac4_descs.c net: stmmac: Remove some unnecessary void pointers 2023-04-13 12:50:46 +02:00
dwmac4_descs.h
dwmac4_dma.c net: stmmac: dwmac4: Allow platforms to specify some DMA/MTL offsets 2023-04-13 12:50:46 +02:00
dwmac4_dma.h net: stmmac: dwmac4: Allow platforms to specify some DMA/MTL offsets 2023-04-13 12:50:46 +02:00
dwmac4_lib.c net: stmmac: dwmac4: Allow platforms to specify some DMA/MTL offsets 2023-04-13 12:50:46 +02:00
dwmac5.c net: stmmac: fix order of dwmac5 FlexPPS parametrization sequence 2023-02-13 20:04:43 -08:00
dwmac5.h
dwmac100.h
dwmac100_core.c
dwmac100_dma.c net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwmac1000.h
dwmac1000_core.c net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwmac1000_dma.c net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwmac_dma.h net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwmac_lib.c net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwxgmac2.h
dwxgmac2_core.c net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwxgmac2_descs.c net: stmmac: Remove some unnecessary void pointers 2023-04-13 12:50:46 +02:00
dwxgmac2_dma.c net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwxlgmac2.h
enh_desc.c net: stmmac: Remove some unnecessary void pointers 2023-04-13 12:50:46 +02:00
hwif.c net: stmmac: add support for platform specific reset 2023-04-05 19:01:22 -07:00
hwif.h net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
mmc.h
mmc_core.c
norm_desc.c net: stmmac: Remove some unnecessary void pointers 2023-04-13 12:50:46 +02:00
ring_mode.c net: stmmac: Remove some unnecessary void pointers 2023-04-13 12:50:46 +02:00
stmmac.h net: stmmac: add Rx HWTS metadata to XDP receive pkt 2023-04-17 18:57:26 -07:00
stmmac_ethtool.c net: stmmac: remove set but unused mask in stmmac_ethtool_set_link_ksettings() 2023-04-07 20:04:03 -07:00
stmmac_hwtstamp.c stmmac: fix potential division by 0 2022-12-12 15:09:14 -08:00
stmmac_main.c net: vlan: introduce skb_vlan_eth_hdr() 2023-04-23 14:16:44 +01:00
stmmac_mdio.c net: stmmac: Remove unnecessary if statement brackets 2023-04-13 12:50:46 +02:00
stmmac_pci.c
stmmac_pcs.h
stmmac_platform.c net: stmmac: platform: Add snps,dwmac-5.20 IP compatible string 2023-04-18 13:13:40 +02:00
stmmac_platform.h
stmmac_ptp.c net: stmmac: add aux timestamps fifo clearance wait 2023-01-11 21:10:06 -08:00
stmmac_ptp.h stmmac: fix potential division by 0 2022-12-12 15:09:14 -08:00
stmmac_selftests.c net: stmmac: selftests: fix potential memleak in stmmac_test_arpoffload() 2022-12-09 10:49:39 +00:00
stmmac_tc.c net/sched: taprio: only pass gate mask per TXQ for igc, stmmac, tsnep, am65_cpsw 2023-02-06 10:06:44 +00:00
stmmac_xdp.c
stmmac_xdp.h