]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: remove unnecessary reads of PCI_CAP_ID_EXP
authorJon Mason <jdmason@kudzu.us>
Mon, 27 Jun 2011 07:44:01 +0000 (07:44 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 08:19:29 +0000 (16:19 +0800)
commitebdbf67277be5b7defd3c640e5e6cd710a9ec08e
tree3a518332d9e5bf8dd3c7ba64d691d0c073fd8a28
parentac331a6e75844a5aadc761ca8d12d53665fe8a14
igb: remove unnecessary reads of PCI_CAP_ID_EXP

The PCIE capability offset is saved during PCI bus walking.  It will
remove an unnecessary search in the PCI configuration space if this
value is referenced instead of reacquiring it.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit bdaae04c65ef88645f50dabb43992033c754c4a7)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igb/igb_main.c