]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBrian Maly <brian.maly@oracle.com>
Tue, 8 Sep 2015 22:25:02 +0000 (18:25 -0400)
commit8e4cf26dac1fde655d6ca4505f50ef66d224a790
treeaac051df1c193288509776f959704deaa67e86c8
parent6b0ea6d7419bf8fdf32097ffc2a0a473ff5f3871
igb: Don't use NETDEV_FRAG_PAGE_MAX_SIZE in descriptor calculation

Orabug: 21792102

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>
(cherry picked from commit 2ee52ad4962b32797bac33fa29ec8159e64c4ee3)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/igb/igb_main.c