Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci xl(4) should use the aq command to access RX con...



details:   https://anonhg.NetBSD.org/src/rev/915fb53cd5b8
branches:  trunk
changeset: 744754:915fb53cd5b8
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Wed Feb 12 06:26:02 2020 +0000

description:
xl(4) should use the aq command to access RX control registers
if the device is X722 or others whose API version is upper than 1.5

diffstat:

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

diffs (25 lines):

diff -r 6a9bf8bad72e -r 915fb53cd5b8 sys/dev/pci/if_ixl.c
--- a/sys/dev/pci/if_ixl.c      Wed Feb 12 06:21:44 2020 +0000
+++ b/sys/dev/pci/if_ixl.c      Wed Feb 12 06:26:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ixl.c,v 1.39 2020/02/12 06:21:44 yamaguchi Exp $    */
+/*     $NetBSD: if_ixl.c,v 1.40 2020/02/12 06:26:02 yamaguchi Exp $    */
 
 /*
  * Copyright (c) 2013-2015, Intel Corporation
@@ -3965,13 +3965,12 @@
        if (sc->sc_mac_type == I40E_MAC_X722) {
                SET(sc->sc_aq_flags, IXL_SC_AQ_FLAG_NVMLOCK |
                    IXL_SC_AQ_FLAG_NVMREAD);
+               SET(sc->sc_aq_flags, IXL_SC_AQ_FLAG_RXCTL);
        }
 
 #define IXL_API_VER(maj, min)  (((uint32_t)(maj) << 16) | (min))
        if (IXL_API_VER(api_maj_ver, api_min_ver) >= IXL_API_VER(1, 5)) {
-               if (sc->sc_mac_type == I40E_MAC_X722) {
-                       SET(sc->sc_aq_flags, IXL_SC_AQ_FLAG_RXCTL);
-               }
+               SET(sc->sc_aq_flags, IXL_SC_AQ_FLAG_RXCTL);
                SET(sc->sc_aq_flags, IXL_SC_AQ_FLAG_NVMLOCK);
        }
 #undef IXL_API_VER



Home | Main Index | Thread Index | Old Index