svn commit: r191566 - head/sys/dev/e1000

Jack Vogel jfvogel at gmail.com
Mon Apr 27 18:35:41 UTC 2009


DUH, thanks for catching it quickly, the build breaking would have sooner or
later though :)

Jack


On Mon, Apr 27, 2009 at 11:33 AM, Andreas Tobler <andreast-list at fgznet.ch>wrote:

> Jack F Vogel wrote:
>
>> Author: jfv
>> Date: Mon Apr 27 17:22:14 2009
>> New Revision: 191566
>> URL: http://svn.freebsd.org/changeset/base/191566
>>
>> Log:
>>  Thanks for Michael Tuexen for tracking down a path where
>>  the watchdog timer was not being rearmed in txeof, and also
>>  a missing case in the new code.
>>    MFC after:    2 weeks
>>
>> Modified:
>>  head/sys/dev/e1000/if_em.c
>>
>> Modified: head/sys/dev/e1000/if_em.c
>>
>> ==============================================================================
>> --- head/sys/dev/e1000/if_em.c  Mon Apr 27 16:57:19 2009        (r191565)
>> +++ head/sys/dev/e1000/if_em.c  Mon Apr 27 17:22:14 2009        (r191566)
>> @@ -1013,12 +1013,15 @@ em_transmit_locked(struct ifnet *ifp, st
>>        if (ADAPTER_RING_EMPTY(adapter) &&
>>            (adapter->num_tx_desc_avail > EM_TX_OP_THRESHOLD)) {
>>                if (em_xmit(adapter, &m)) {
>> -                       if (m && (error = drbr_enqueue(ifp, adapter->br,
>> m)) != 0) {
>> +                       if (m && (error = drbr_enqueue(ifp, adapter->br,
>> m)) != 0)
>>                                return (error);
>> -                       }
>> -               } else{
>> -                       /* Send a copy of the frame to the BPF listener */
>> +               } else {
>> +                       /*
>> +                       ** Send a copy of the frame to the BPF
>> +                       ** listener and set the watchdog on.
>> +                       */
>>                        ETHER_BPF_MTAP(ifp, m);
>> +                       addapter->watchdog_timer = EM_TX_TIMEOUT;
>>
>
> [deuterium_fbsd:sys/dev/e1000] andreast% svn diff  if_em.c
> Index: if_em.c
> ===================================================================
> --- if_em.c     (revision 191575)
> +++ if_em.c     (working copy)
> @@ -1021,7 +1021,7 @@
>                        ** listener and set the watchdog on.
>                        */
>                        ETHER_BPF_MTAP(ifp, m);
> -                       addapter->watchdog_timer = EM_TX_TIMEOUT;
> +                       adapter->watchdog_timer = EM_TX_TIMEOUT;
>                }
>        } else if ((error = drbr_enqueue(ifp, adapter->br, m)) != 0)
>                return (error);
>
>
> Should fix the build.
>
> Andreas
>
>


More information about the svn-src-head mailing list