Skip to content
Commit d768b678 authored by Robert Richter's avatar Robert Richter Committed by David S. Miller
Browse files

net: thunderx: Cleanup duplicate NODE_ID macros, add nic_get_node_id()



There are duplicate NODE_ID macro definitions. Move all of them to
nic.h for usage in nic and bgx driver and introduce nic_get_node_id()
helper function.

This patch also fixes 64bit mask which should have been ULL by
reworking the node calculation.

Signed-off-by: default avatarRobert Richter <rrichter@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dda922c8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment