diff options
author | Frank Blaschka <blaschka@linux.vnet.ibm.com> | 2013-03-18 20:04:44 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-19 10:09:40 -0400 |
commit | 271648b4c610eed540daaf9ff366209825757565 (patch) | |
tree | ee2c52b04d138bf6a2e0b837fc3187949c7d2066 /drivers/s390/net/qeth_l3_main.c | |
parent | 82e2e782a3e486e3bfcc6130f0ebc28453af9955 (diff) |
qeth: Fix scatter-gather regression
This patch fixes a scatter-gather regression introduced with
commit 5640f768 net: use a per task frag allocator
Now the qeth driver can cope with bigger framents and split a fragment in
sub framents if required.
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l3_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index b6da6cec9c3e..8710337dab3e 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c @@ -2903,7 +2903,9 @@ static inline int qeth_l3_tso_elements(struct sk_buff *skb) tcp_hdr(skb)->doff * 4; int tcpd_len = skb->len - (tcpd - (unsigned long)skb->data); int elements = PFN_UP(tcpd + tcpd_len - 1) - PFN_DOWN(tcpd); - elements += skb_shinfo(skb)->nr_frags; + + elements += qeth_get_elements_for_frags(skb); + return elements; } |