diff options
author | Alexander Lobakin <alobakin@pm.me> | 2021-03-14 11:11:41 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-14 14:48:02 -0700 |
commit | 59753ce8b196de60211a989c75ece8aeb0d9d57c (patch) | |
tree | ed1ee1f75512b693eeebb1ea732dbee5887202ff /net/ethernet | |
parent | 805a25f3a1bdf4aafd0af412ce1e47d0cb6c7628 (diff) |
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.c | 2 |
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; |