usbnet.c (415d2b3392d7a80903e0f97f051201aa02bf20e9) usbnet.c (2fc4aa59ab470f1d5124b33c05680e2b2f2c6f65)
1/*
2 * USB Network driver infrastructure
3 * Copyright (C) 2000-2005 by David Brownell
4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 1513 unchanged lines hidden (view full) ---

1522 entry = (struct skb_data *) skb->cb;
1523 switch (entry->state) {
1524 case rx_done:
1525 entry->state = rx_cleanup;
1526 rx_process (dev, skb);
1527 continue;
1528 case tx_done:
1529 kfree(entry->urb->sg);
1/*
2 * USB Network driver infrastructure
3 * Copyright (C) 2000-2005 by David Brownell
4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 1513 unchanged lines hidden (view full) ---

1522 entry = (struct skb_data *) skb->cb;
1523 switch (entry->state) {
1524 case rx_done:
1525 entry->state = rx_cleanup;
1526 rx_process (dev, skb);
1527 continue;
1528 case tx_done:
1529 kfree(entry->urb->sg);
1530 /* fall through */
1530 case rx_cleanup:
1531 usb_free_urb (entry->urb);
1532 dev_kfree_skb (skb);
1533 continue;
1534 default:
1535 netdev_dbg(dev->net, "bogus skb state %d\n", entry->state);
1536 }
1537 }

--- 654 unchanged lines hidden ---
1531 case rx_cleanup:
1532 usb_free_urb (entry->urb);
1533 dev_kfree_skb (skb);
1534 continue;
1535 default:
1536 netdev_dbg(dev->net, "bogus skb state %d\n", entry->state);
1537 }
1538 }

--- 654 unchanged lines hidden ---