Re: Prolific 2501 link cable
Oliver Neukum <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Am Freitag 05 Oktober 2007 schrieb Tobias:
> Sorry for this mail, it was sent inadvertently. The whole function now:
>
> static struct sk_buff *pl_tx_fixup(struct usbnet *dev, struct sk_buff *skb,
> gfp_t flags)
> {
> int padlen;
> int length = skb->len;
> int headroom = skb_headroom(skb);
> int tailroom = skb_tailroom(skb);
> u32 *packet_len;
>
> // FIXME: magic numbers, bleech
> padlen = ((skb->len + 4) % 64) ? 0 : 1;
This makes sense. Concerning the fixme you'll probably find that the device's
packet size is 64 and it can't deal with a zero packet and therefore needs an
additional byte.
Regards
Oliver
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel