mlxbf_gige: Enable the GigE port in mlxbf_gige_open
authorAsmaa Mnebhi <asmaa@nvidia.com>
Fri, 5 Jan 2024 16:00:14 +0000 (11:00 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Jan 2024 15:20:28 +0000 (15:20 +0000)
commita460f4a684511e007bbf1700758a41f05d9981e6
tree685521b0fc7bd525dab523c915e56a782b8c5cfc
parentef210ef85d5cb543ce34a57803ed856d0c8c08c2
mlxbf_gige: Enable the GigE port in mlxbf_gige_open

At the moment, the GigE port is enabled in the mlxbf_gige_probe
function. If the mlxbf_gige_open is not executed, this could cause
pause frames to increase in the case where there is high backgroud
traffic. This results in clogging the port.
So move enabling the OOB port to mlxbf_gige_open.

Fixes: f92e1869d74e ("Add Mellanox BlueField Gigabit Ethernet driver")
Reviewed-by: David Thompson <davthompson@nvidia.com>
Signed-off-by: Asmaa Mnebhi <asmaa@nvidia.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c