mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-03 12:52:52 +00:00
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>
This commit is contained in:
parent
805a25f3a1
commit
59753ce8b1
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue