summaryrefslogtreecommitdiffstats
path: root/net/ethernet
diff options
context:
space:
mode:
authorAlexander Lobakin <alobakin@pm.me>2021-03-14 11:11:41 +0000
committerDavid S. Miller <davem@davemloft.net>2021-03-14 14:48:02 -0700
commit59753ce8b196de60211a989c75ece8aeb0d9d57c (patch)
treeed1ee1f75512b693eeebb1ea732dbee5887202ff /net/ethernet
parent805a25f3a1bdf4aafd0af412ce1e47d0cb6c7628 (diff)
downloadlinux-stable-59753ce8b196de60211a989c75ece8aeb0d9d57c.tar.gz
linux-stable-59753ce8b196de60211a989c75ece8aeb0d9d57c.tar.bz2
linux-stable-59753ce8b196de60211a989c75ece8aeb0d9d57c.zip
ethernet: constify eth_get_headlen()'s data argument
It's used only for flow dissection, which now takes constant data pointers. Signed-off-by: Alexander Lobakin <alobakin@pm.me> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethernet')
-rw-r--r--net/ethernet/eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c
index 4106373180c6..e01cf766d2c5 100644
--- a/net/ethernet/eth.c
+++ b/net/ethernet/eth.c
@@ -122,7 +122,7 @@ EXPORT_SYMBOL(eth_header);
* Make a best effort attempt to pull the length for all of the headers for
* a given frame in a linear buffer.
*/
-u32 eth_get_headlen(const struct net_device *dev, void *data, unsigned int len)
+u32 eth_get_headlen(const struct net_device *dev, const void *data, u32 len)
{
const unsigned int flags = FLOW_DISSECTOR_F_PARSE_1ST_FRAG;
const struct ethhdr *eth = (const struct ethhdr *)data;