]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: switchx2: Fix misuse of hard_header_len
authorYotam Gigi <yotamg@mellanox.com>
Tue, 4 Oct 2016 07:46:05 +0000 (09:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Oct 2016 00:27:54 +0000 (20:27 -0400)
commit981584917ae2a2d4a78a469a6a81d2154dd126a2
tree8306708465b3fa7376f9063b1e386d1456ac6d5a
parent9e1d305f58662d00e0831b794a65042ef0bea3f6
mlxsw: switchx2: Fix misuse of hard_header_len

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: 98d8057f0798 ("mlxsw: Introduce Mellanox SwitchX-2 ASIC support")
Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Acked-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/switchx2.c