ixgbe: make q_vectors dynamic to reduce netdev size
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 6 May 2009 10:43:28 +0000 (10:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2009 22:33:45 +0000 (15:33 -0700)
commit7a921c93626e7481b5d8788d8511995aa2d2b591
treeeaf4dc4c387fb1456374f1633278eec29060f0c1
parentdcb4ea2ea2ba990a59db5a4cc402df3c2bd389b3
ixgbe: make q_vectors dynamic to reduce netdev size

Currently the q_vectors are being allocated statically inside of the
adapter struct.  This increases the overall size of the adapter struct when
we can easily allocate the vectors dynamically.  This patch changes that
behavior so that the q_vectors are allocated dynamically and the napi
structures are automatically allocated inside of the q_vectors as needed.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe.h
drivers/net/ixgbe/ixgbe_dcb_nl.c
drivers/net/ixgbe/ixgbe_ethtool.c
drivers/net/ixgbe/ixgbe_main.c