Skip to content
Commit a5cc5dda authored by Yotam Gigi's avatar Yotam Gigi Committed by Greg Kroah-Hartman
Browse files

mlxsw: switchx2: Fix misuse of hard_header_len

commit 251d41c5 upstream.

In order to specify that the mlxsw switchx2 driver needs additional
headroom for packets, there have been use of the hard_header_len field of
the netdevice struct.

This commit changes that to use needed_headroom instead, as this is the
correct way to do that.

Fixes: 31557f0f

 ("mlxsw: Introduce Mellanox SwitchX-2 ASIC support")
Signed-off-by: default avatarYotam Gigi <yotamg@mellanox.com>
Acked-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent afcc40d0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment