]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb662d5cfdd97351060745beb3c826408ae83423a
treeeaf4dc4c387fb1456374f1633278eec29060f0c1
parent5b9c2ee1df6996d9d5a4dc718724d8ec71f40233
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