Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Fix a bug that TSO doesn't work correctly....



details:   https://anonhg.NetBSD.org/src/rev/f7d651905181
branches:  trunk
changeset: 822115:f7d651905181
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Mar 02 04:33:56 2017 +0000

description:
Fix a bug that TSO doesn't work correctly. This bug was added in
ix_txrx.c rev. 1.17.

diffstat:

 sys/dev/pci/ixgbe/ix_txrx.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 629d50b319ef -r f7d651905181 sys/dev/pci/ixgbe/ix_txrx.c
--- a/sys/dev/pci/ixgbe/ix_txrx.c       Thu Mar 02 04:31:51 2017 +0000
+++ b/sys/dev/pci/ixgbe/ix_txrx.c       Thu Mar 02 04:33:56 2017 +0000
@@ -59,7 +59,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 /*$FreeBSD: head/sys/dev/ixgbe/ix_txrx.c 301538 2016-06-07 04:51:50Z sephe $*/
-/*$NetBSD: ix_txrx.c,v 1.20 2017/02/13 10:13:54 msaitoh Exp $*/
+/*$NetBSD: ix_txrx.c,v 1.21 2017/03/02 04:33:56 msaitoh Exp $*/
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
@@ -745,10 +745,9 @@
        if (mp->m_pkthdr.csum_flags & (M_CSUM_TSOv4|M_CSUM_TSOv6)) {
                int rv = ixgbe_tso_setup(txr, mp, cmd_type_len, olinfo_status);
 
-               if (rv != 0) {
+               if (rv != 0)
                        ++adapter->tso_err.ev_count;
-                       return rv;
-               }
+               return rv;
        }
 
        if ((mp->m_pkthdr.csum_flags & M_CSUM_OFFLOAD) == 0)



Home | Main Index | Thread Index | Old Index