net: thunderx: Moved HW capability info from macros to structure
authorSunil Goutham <sgoutham@cavium.com>
Fri, 12 Aug 2016 11:21:24 +0000 (16:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 18:59:29 +0000 (11:59 -0700)
commita5c3d4985eeaddee795e5a4cd71be35e5e149896
treeabbe512983b6439ef1e57dc728c3bcb93446105b
parent2ce66f9c65baefbbf48812429b465deb75672c5a
net: thunderx: Moved HW capability info from macros to structure

Current driver has most of the HW maximums info like no of channels,
traffic limiters, RSS indices e.t.c in the form of macros. These have
been moved into a 'hw_info' structure so that support for VNIC on
newer chips with different set of HW maximums can be added.

Signed-off-by: Sunil Goutham <sgoutham@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