]> git.karo-electronics.de Git - linux-beck.git/commit
net: thunderx: Cleanup duplicate NODE_ID macros, add nic_get_node_id()
authorRobert Richter <rrichter@cavium.com>
Tue, 2 Jun 2015 18:00:18 +0000 (11:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jun 2015 19:49:26 +0000 (12:49 -0700)
commitd768b678a8d9c572ad3c2c6ba71d9e7029b867a2
treee8c5f6e3226756e0e69c1001bb8090f14e4ca22b
parentdda922c831d1661c11a3ae1051b7160236f6ffb0
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: Robert Richter <rrichter@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic.h
drivers/net/ethernet/cavium/thunder/nic_main.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h