]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Retrieve the switchdev id from the firmware only once
authorHadar Hen Zion <hadarh@mellanox.com>
Thu, 18 Aug 2016 18:09:08 +0000 (21:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 23:09:56 +0000 (16:09 -0700)
commitf741816b4b3a38a860b0e62d62b83f0d4e253235
treeadf7eed7c74e2e56bf5ae3c55382b3c085edf8fb
parentaa742602f373984961cd4aa6f324e806aaec06f8
net/mlx5e: Retrieve the switchdev id from the firmware only once

Avoid firmware command execution each time the switchdev HW ID attr get
call is made. We do that by reading the ID (PF NIC MAC) only once at
load time and store it on the representor structure.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h