[PATCH] s390: qeth bug fixes
[patch 7/10] s390: qeth bug fixes. From: Frank Pavlic <pavlic@de.ibm.com> qeth network driver changes: - Removed redundant code, use the same qeth_fill_buffer_frag for TSO path either - Using skb->frags solely is not correct since skb->data still points to the beginning of the whole data, even when it is a small portion we have to fill the qdio buffer with it. Signed-off-by: Frank Pavlic <pavlic@de.ibm.com>
This commit is contained in:

committed by
Jeff Garzik

parent
5e39f2933f
commit
d801145d91
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
*
|
||||
* linux/drivers/s390/net/qeth_eddp.c ($Revision: 1.11 $)
|
||||
* linux/drivers/s390/net/qeth_eddp.c ($Revision: 1.12 $)
|
||||
*
|
||||
* Enhanced Device Driver Packing (EDDP) support for the qeth driver.
|
||||
*
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Author(s): Thomas Spatzier <tspat@de.ibm.com>
|
||||
*
|
||||
* $Revision: 1.11 $ $Date: 2005/03/24 09:04:18 $
|
||||
* $Revision: 1.12 $ $Date: 2005/04/01 21:40:40 $
|
||||
*
|
||||
*/
|
||||
#include <linux/config.h>
|
||||
@@ -202,17 +202,6 @@ out:
|
||||
return flush_cnt;
|
||||
}
|
||||
|
||||
static inline int
|
||||
qeth_get_skb_data_len(struct sk_buff *skb)
|
||||
{
|
||||
int len = skb->len;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < skb_shinfo(skb)->nr_frags; ++i)
|
||||
len -= skb_shinfo(skb)->frags[i].size;
|
||||
return len;
|
||||
}
|
||||
|
||||
static inline void
|
||||
qeth_eddp_create_segment_hdrs(struct qeth_eddp_context *ctx,
|
||||
struct qeth_eddp_data *eddp)
|
||||
|
Reference in New Issue
Block a user