Skip to content

Commit

Permalink
qeth: preallocated header account offset
Browse files Browse the repository at this point in the history
When a preallocated header qdio buffer is filled we have to account
the offset for the data length.

Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Frank Blaschka authored and Jeff Garzik committed Aug 27, 2008
1 parent 7db2266 commit bd8774c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/net/qeth_core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,7 @@ static inline void __qeth_fill_buffer(struct sk_buff *skb,
struct qdio_buffer *buffer, int is_tso, int *next_element_to_fill,
int offset)
{
int length = skb->len;
int length = skb->len - offset;
int length_here;
int element;
char *data;
Expand Down

0 comments on commit bd8774c

Please sign in to comment.