diff options
author | Alexander Lobakin <alobakin@pm.me> | 2021-03-14 12:11:41 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-14 22:48:02 +0100 |
commit | 59753ce8b196de60211a989c75ece8aeb0d9d57c (patch) | |
tree | ed1ee1f75512b693eeebb1ea732dbee5887202ff /net/ethernet | |
parent | linux/etherdevice.h: misc trailing whitespace cleanup (diff) | |
download | linux-59753ce8b196de60211a989c75ece8aeb0d9d57c.tar.xz linux-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.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; |