RE: [PATCH 1/2] qdisc_restart - readability changes, one bug fix.

2007-06-17 Thread Krishna Kumar
On Fri, 2007-06-15 at 11:01 -0700, Waskiewicz Jr, Peter P wrote: Hi Peter, > I agree that the case shouldn't happen, and will only surface if the > driver is indeed buggy. I've thought about this conditional being > removed for awhile, since it will protect against a poorly written > driver wrt

RE: [PATCH 1/2] qdisc_restart - readability changes, one bug fix.

2007-06-15 Thread Waskiewicz Jr, Peter P
> - "if (ret == NETDEV_TX_LOCKED && lockless)" is buggy, and > the lockless > check should be removed, since driver will return > NETDEV_TX_LOCKED only > if lockless is true and driver has to do the locking. In > the original > code as well as the latest code, this code can result in a bug

[PATCH 1/2] qdisc_restart - readability changes, one bug fix.

2007-06-13 Thread Krishna Kumar
- Converted to use switch/case code which looks neater. - "if (ret == NETDEV_TX_LOCKED && lockless)" is buggy, and the lockless check should be removed, since driver will return NETDEV_TX_LOCKED only if lockless is true and driver has to do the locking. In the original code as well as the la