commit | dbe413e3bb93e0634f6d8d00b01cda6f141e0acd | [log] [tgz] |
---|---|---|
author | Hadar Hen Zion <hadarh@mellanox.com> | Thu Aug 18 21:09:08 2016 +0300 |
committer | David S. Miller <davem@davemloft.net> | Fri Aug 19 16:09:56 2016 -0700 |
tree | adf7eed7c74e2e56bf5ae3c55382b3c085edf8fb | |
parent | 1dbd0d373ac338903d27fab5204b13122cc5accd [diff] |
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>