]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Don't use NETDEV_FRAG_PAGE_MAX_SIZE in descriptor calculation
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Thu, 7 May 2015 04:11:45 +0000 (21:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2015 14:39:26 +0000 (10:39 -0400)
commit0cbd9a3faab40c3cccc7f3949ef27c53b25edb60
treeda72a00a2bbd4f8bfe0dcb3fc4dfedb9b93bc80d
parentec3b8dcd8bf17440c496c9daf0a0d9d7e9372ad1
igb: Don't use NETDEV_FRAG_PAGE_MAX_SIZE in descriptor calculation

This change updates igb so that it will correctly perform the descriptor
count calculation.  Previously it was taking NETDEV_FRAG_PAGE_MAX_SIZE
into account with isn't really correct since a different value is used to
determine the size of the pages used for TCP.  That is actually determined
by SKB_FRAG_PAGE_ORDER.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/igb/igb_main.c