OSDN Git Service

net: sparx5: Move ifh from port to local variable
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Fri, 4 Mar 2022 11:08:52 +0000 (12:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 13:03:09 +0000 (13:03 +0000)
commit8f68f53a9325cf4413e262bc28d904a825e5f141
treef71575c8aa241fae6ac962ad77d119be464a896d
parenta972711d89aedf91a52468011651a3b033d7d4b9
net: sparx5: Move ifh from port to local variable

Currently the ifh is not changed, it is fixed for each frame for each
port that is sent out. Move this on the stack because this ifh needs to
be change based on the frames that are send out. This is needed for PTP
frames.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c