aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2021-08-10 13:13:55 +0000
committerDavid S. Miller <[email protected]>2021-08-11 13:44:58 +0000
commit5d928ff4865641309e39e9ec8eec1022f8a0c0ac (patch)
tree7d0e8c2a82f105cfb32f73f0167456abfe1ec443 /drivers/fpga/fpga-mgr.c
parentnet: dsa: create a helper which allocates space for EtherType DSA headers (diff)
downloadkernel-5d928ff4865641309e39e9ec8eec1022f8a0c0ac.tar.gz
kernel-5d928ff4865641309e39e9ec8eec1022f8a0c0ac.zip
net: dsa: create a helper for locating EtherType DSA headers on RX
It seems that protocol tagging driver writers are always surprised about the formula they use to reach their EtherType header on RX, which becomes apparent from the fact that there are comments in multiple drivers that mention the same information. Create a helper that returns a void pointer to skb->data - 2, as well as centralize the explanation why that is the case. Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions